Fix `Failed To Fetch` Google Chrome Repository After Google Dropped Support For Its Browser On Linux 32bit

As announced back in December, Google stopped supporting Google Chrome on 32-bit Linux starting this month. Users running a 32bit Linux distribution are advised to stop using Google Chrome because, while it will continue to work, it will no longer receive any updates (including no security fixes).
The 32-bit build configurations for Chromium continues to be supported, so you can still use Chromium browser on 32-bit Linux distributions.

Because the official Google Chrome repository no longer provides 32-bit packages, 64-bit Ubuntu/Debian users will notice an error when updating the software sources, which looks as follows:

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) 
Some index files failed to download. They have been ignored, or old ones used instead.

To fix this error on Ubuntu/Debian 64-bit, the repository must be specifically set for 64-bit only – this can be done by adding “[arch=amd64]” after “deb” in the /etc/apt/sources.list.d/google-chrome.list and /opt/google/chrome/cron/google-chrome files. To do this automatically, you can use the following commands:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list"
sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/opt/google/chrome/cron/google-chrome"

(Update: The article was modified with the addition of a second command that adds “[arch=amd64]” to the script that generates the .list file – thanks to +Adam Gunklach)
On 32-bit, you should remove the repository and stop using Google Chrome since it won’t receive any security updates:

sudo rm /etc/apt/sources.list.d/google-chrome.list
sudo apt-get remove google-chrome

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.