Fix failed to fetch Google Chrome packages under Debian

Google decided to drop 32bit support for Chrome lately my Debian Jessie is giving me following errors when doing apt-get update

W: 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)

To fix the issue you need to edit following file: /etc/apt/sources.list.d/google-chrome.list and change the line:

deb http://dl.google.com/linux/chrome/deb/ stable main

to

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Save your file and do normal apt-get update.

It seems that the change in google-chrome.list gets overwritten somehow, so I recommend you to set read only permissions on the file with:

chmod 444 /etc/apt/sources.list.d/google-chrome.list

Remember just next time if you need to modify this file to add write permissions back.