Getting below error message while issuing :
sudo apt-get update
Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [95.8 kB]
Ign:2 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 InRelease
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://ppa.launchpad.net/canonical-x/vulkan/ubuntu xenial InRelease
Hit:5 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 Release
Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease
Ign:7 http://dl.google.com/linux/talkplugin/deb stable InRelease
Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:9 http://linux.dropbox.com/ubuntu wily InRelease
Hit:10 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease
Get:12 http://dl.google.com/linux/chrome/deb stable Release [782 B]
Hit:13 http://dl.google.com/linux/talkplugin/deb stable Release
Ign:14 https://apt.dockerproject.org/repo ubuntu-wily InRelease
Hit:15 https://apt.dockerproject.org/repo ubuntu-wily Release
Get:16 http://dl.google.com/linux/chrome/deb stable Release.gpg [181 B]
Hit:17 http://linux.dropbox.com/ubuntu wily Release
Get:20 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,191 B]
Fetched 98.0 kB in 0s (118 kB/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
This cuts across various releases of ubuntu
I tracked down offending repo (any for Google chrome in this dir)
or more generally
Now do same as below for each repo file which matches above
SOLUTION : limit to just 64 bit by introducing the [arch=amd64]
ROOT CAUSE : Google dropped support for 32-bit Chrome on Linux triggering an error when updating apt in 64-bit systems (with multi arch enabled) ... details here : http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu
To confirm you are using 64 bit ubuntu with multiarch enabled issue
if it says
then you have added 32 bit support, this will list your native arch ... issue
if you are native 64 you will see this output so do SOLUTION shown above
Here is the command to remove multi architecture ( only if you have no 32 bit applications )
(this solution is for Ubuntu Bionic Beaver)
First, shame on Google for letting this issue linger so long!!
Here's how to fix it:
As already mentioned above, editing files in
/etc/apt/sources.list.d
seems to work... but only temporarily. The next day, the problem is back.Here's why:
The file
/etc/cron.daily/google-earth-pro
runs daily and overwrites what you have in/etc/apt/sources.list.d/google-earth-pro.list
.To fix it once and for all, edit
/etc/cron.daily/google-earth-pro
.Find this line:
...and change it to:
Changing
to
in each of
/etc/apt/sources.list.d/google-musicmanager.list
/etc/apt/sources.list.d/google-musicmanager.list.save
/etc/apt/sources.list.d/google-musicmanager.list.distUpgrade
seems to fix the issue for Google Music Manager for Play Music too. Not sure if it will revert these changes at some point as the files are automatically configured.
Although Google has fixed this issue for Chrome, it still appears for e.g. Google Earth.
Adding
[arch=amd64]
fixes the issue, but it needs to be added over and over again.After making the file immutable as proposed by a webupd8 article and running into issues because of that, my current solution is to add a cronjob to apply the fix automatically once every hour:
(Replace
google-earth.list
if necessary).Though this question has been marked solved, I was unable to solve this issue with any of the above answers. I used an another method. Go to 'software & updates' > ubuntu software > download from > select best server. Now wait for some time for the system to find it out. Once this gets done, try your command again. This worked for me.
I add my 2 cent. Sorry If I have a Debian 10 and not an Ubuntu, but my answer is in-topic.
I had the same problem due to mariadb repo. It was added to
sources.list
asI simply removed
i386
andppc64el
Note that the above answers give accurate solutions for the
ONE-LINE-STYLE
format.list
files; however, the verboseDEB822-STYLE FORMAT
needs to use the fullArchitectures
option instead of the abbreviatedarch
option to restrict the repo's packages to your desired architecture.For example:
Details on this option and others can be found with
man sources.list
Even if this question is marked solved, for me, on Ubuntu 18.04, changed a line in
/etc/apt/sources.list
fromdeb http://dl.google.com/linux/chrome/deb/ stable main
todeb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
.There was no file named
/etc/apt/sources.list.d/google-chrome-unstable.list
. Making the same changes in/etc/apt/sources.list.d/google-chrome.list
gave warnings saying that target package is configured multiple times. (insources.list
andgoogle-chrome.list
)Change my source list
to