Google Chrome Repository on Debian

Having been an avid IE non-user as with most around the world (if you for some arbitrary reason do not believe… check here for the current and past statistics on the topic) I use Firefox and Chrome for anything unless the design is sufficiently IE focused to make using elsewhere a nightmare.

Having finally managing to move my work machine to a Linux base (Debian to be exact) I have been using Iceweasel (the Debian fork of Firefox) but I still find that I have reasons to use both Iceweasel and Chrome so I added Chrome to the repositories so that I can keep up to date with aptitude alone and not needing to manually download updates after setting up. I do this as much as possible of course. FYI, if you’re wanting to add chrome yourself, check here. The command line installation is nice and easy:

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

The one irritation recently was just that I had added x86 architecture for certain tool support and now when running apt-get update I started receiving:

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)

This of course being a far greater irritation than it needed to be, it was luckily a very easy fix. Google have just removed the 32bit support to the repository so all we need to do is tell apt to only look for 64bit data:

As announced back in December, Google has 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).

Source: Fix `Failed To Fetch` Google Chrome Repository After Google Dropped Support For Its Browser On Linux 32bit ~ Web Upd8: Ubuntu / Linux blog

Essentially, just update your sources list with [arch=amd64] which will leave your repository for chrome in the sources.list file as follows:

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

So for those doing this for the first time, use a text editor (I use Gedit when feeling lazy) and find where the rep line is. you should first check /etc/apt/sources.list or if you did not add the repository manually then likely /etc/apt/sources.list.d/google-chrome.list and so use the following to edit and update the line as mentioned above:

sudo gedit /etc/apt/sources.list.d/google-chrome.list

Now your apt updates are clean once more. Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *