I recently noticed while installing some packages and using the command apt-get update
that I ran into the following error:
Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
As mentioned in THIS recent question on Ask Ubuntu, Chrome will no longer be supported by 32 bit systems, however I am currently running 64 bit Ubuntu 14.04, with libc6:i386
libncurses5:i386
libstdc++6:i386
installed for 32 bit application support.
Am I seeing this error because dpkg is looking for the i386 packages as a result of the aforementioned install of libc6:i386
libncurses5:i386
libstdc++6:i386
?
How do I resolve this error?
EDIT - (I was not able to resolve this question with simply updating Chrome as mentioned in the other thread, and not all the information in the other answer was present at the time I posted this).
Open a new Terminal window and run the following command:
In the text file that opens edit the file so that the line reads:
The only addition you need to make is entering the [amd64] architecture after
deb
but preceding thehttp
. Do not edit or replace any other text in this file.Hit Save. Close the Gedit window.
Now return to the Terminal and refresh your package list by running:
The 'failed to fetch' APT error should no longer appear.
To prevent the above change being lost,
[arch=amd64]
needs to be added to the configuration that generates the file edited above:Run the following command:
In the text file that opens search for deb and once again edit the file so that deb http becomes:
Do not edit or replace any other text in this file.
Hit Save. Close the Gedit window.
Sources: