Google Chrome didn’t add apt source list
So I just installed the latest Chrome in my new Ubuntu 16.10 installation. But I just checked the «additional software» source list but I couldn’t find the entry for Google Chrome that it normally creates. So at this point, Google Chrome won’t be auto-updated. Is there someone who can give me the correct source list entry for the stable channel of Google Chrome? Or what can I do to make the Google deb add it automatically again? Thanks!
3 Answers 3
From Google chrome download page:
Note: Installing Google Chrome will add the Google repository so your system will automatically keep Google Chrome up to date. If you don’t want Google’s repository, do “ sudo touch /etc/default/google-chrome ” before installing the package.
sudo rm /etc/default/google-chrome
sudo dpkg-reconfigure google-chrome-stable
sudo dpkg -r google-chrome-stable sudo dpkg -i google-chrome-stable_current_*.deb
Otherwise add it manually
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
echo "deb [arch=i386] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
Thanks for the answer! But that didn’t seem to work 🙁 When I open «software & updates» and look in the «additional software» tab it still isn’t listed there.
@Gladen, Check grep -r google /etc/apt/sources.list.d/ , not in addition software tab but should be in other software tab.
Nope, also doesn’t return anything 🙁 Sorry, I am translating it from Dutch so the names I wrote may not be like they are in English :p
I used the manual method and that seems to work for now.. looks like the deb is bugged in some way or something.. At least thanks for all the support! 🙂
The bug report for this can be found at https://bugs.chromium.org/p/chromium/issues/detail?id=663069 and the cause is:
In prior versions of Ubuntu/Debian the Dir::Etc apt-config variable contained a trailing slash by default. The cronjob at /etc/cron.daily/google-chrome was concatenating that variable into a path, assuming the trailing slash. But in Ubuntu 16.10, the trailing slash is gone. That breaks the path to the list file, and the cronjob fails to fix it.
This bug has been fixed since November 8. To fix the problem, you can simply download Google Chrome again from https://www.google.com/chrome/browser/desktop/index.html and reinstall it using dpkg . In my case, since I am using Google Chrome on the dev channel, I run:
sudo dpkg -i google-chrome-unstable_current_amd64.deb
How to Install Google Chrome on Debian the Easy Way
In this tutorial, I will show you how to install Google Chrome browser on Debian. It’s very easy to do. You just need to copy and paste a few simple commands.
Google Chrome is the fastest browser. I like Firefox. It’s open source and trusted by countless people in the world. But sometimes Firefox can be very slow on my computer. The default web browser on Debian is iceweasal. It’s Firefox browser under the hood but with a different name. And it’s running very slow on my Debian 8 Gnome Desktop. So Let’s install Google Chrome.
Add Google Chrome Repository on Debian
Open a terminal window and run this command to edit sources.list file.
sudo nano /etc/apt/sources.list
Copy the following line and paste it at the end of the file.
deb http://dl.google.com/linux/chrome/deb/ stable main
Then save and close the file. Next use wget to download Google’s signing key and use apt-key to add it to your keyring so the package manager can verify the integrity of Google Chrome package.
wget https://dl-ssl.google.com/linux/linux_signing_key.pub sudo apt-key add linux_signing_key.pub
Now update local pacakge index and install the stable version of Google Chrome.
sudo apt-get update sudo apt-get install google-chrome-stable
If you want to install the beta or unstable version of Google Chrome, use the following commands:
sudo apt-get install google-chrome-beta sudo apt-get install google-chrome-unstable
As you can see, installing Google Chrome browser on Debian is very easy !
Install Chromium Browser on Debian
Chromium is an open source browser and project backed by Google. If you don’t like that fact that Google Chrome contains some non-free code, then you can install Chromium browser on Debian. Run the following two commands and you are done.
sudo apt-get update sudo apt-get install chromium chromium-l10n