I need to install google-chrome on debian stable. Is there any way I can add the google's repos and have always the recent version of chrome installed?
4 Answers
From Google's Linux Repostory Page:
Add Google's key,
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - Then install package from the chrome site, which should add the file '/etc/apt/sources.list.d/google-chrome.list' that will contain the following,
### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. deb http://dl.google.com/linux/chrome/deb/ stable main E.g., installing the package from Google should just auto-configure your sources.list for you.
- I don't have a browser currently installed and it won't download through links. I just need to add the google repo stuff to my repos and apt-get update and then install the package.tux_drummer– tux_drummer2012-11-01 13:17:03 +00:00Commented Nov 1, 2012 at 13:17
- IMO worth noting that you can also get their key off a keyserver instead, ie: apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys A040830F7FAC5991tianon– tianon2016-01-26 23:58:32 +00:00Commented Jan 26, 2016 at 23:58
- 3
https://dl.google.com/linux/chrome/deb/returns 404 for meInline– Inline2017-08-07 07:31:34 +00:00Commented Aug 7, 2017 at 7:31
A new bug has just arisen with this. The file etc/apt/sources.list.d/google-chrome.list automatically gets generated and this clobbers the previous version to wipe out your '[arch=amd64]' so then apt-get raises an error. See https://www.reddit.com/r/chrome/comments/48oje6/linux_how_to_fix_failed_to_fetch/ So the answer to the original question is that there is no fully working method at present but hopefully Google will fix the bug.
setup repo
$ echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google.list >/dev/null $ wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo tee /etc/apt/trusted.gpg.d/google.asc >/dev/null update and install
$ sudo apt-get update $ sudo apt-get install --no-install-recommends google-chrome-stable alternatively with dearmor as noted in https://www.google.com/linuxrepositories/
$ wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/google.gpg >/dev/null I am also experiencing the problem of the disappearing edit [arch=amd64] vanishes. File comments read "automatically configured", but I don't know by what it is automatically configured. So I put a chattr +i on google-chrome.list.
- The disappearing edit .. vanishes. Does that mean it reappears?Anthon– Anthon2016-03-06 15:57:21 +00:00Commented Mar 6, 2016 at 15:57