You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ "$(lsb_release -si 2>/dev/null)"="Ubuntu" ];then
93
-
sed -i "s/deb http/deb [arch=i386,amd64] http/" /etc/apt/sources.list
94
-
sed -i "s/deb mirror/deb [arch=i386,amd64] mirror/" /etc/apt/sources.list
94
+
if [ -e /etc/apt/sources.list.d/ubuntu.sources ];then
95
+
sed -i 's|Types: deb|Types: deb\nArchitectures: amd64 i386|g' /etc/apt/sources.list.d/ubuntu.sources
96
+
else
97
+
sed -i "s/deb http/deb [arch=i386,amd64] http/" /etc/apt/sources.list
98
+
sed -i "s/deb mirror/deb [arch=i386,amd64] mirror/" /etc/apt/sources.list
99
+
fi
95
100
if [ "${linux_arch}"!="amd64" ] && [ "${linux_arch}"!="i386" ];then
96
101
echo"deb [arch=${linux_arch}] http://ports.ubuntu.com/ubuntu-ports ${release} main restricted universe multiverse"| tee -a /etc/apt/sources.list
97
102
echo"deb [arch=${linux_arch}] http://ports.ubuntu.com/ubuntu-ports ${release}-updates main restricted universe multiverse"| tee -a /etc/apt/sources.list
0 commit comments