101

What is the right way to update chrome on Ubuntu 20.04. My installation was with .deb file

I started getting update chrome warning messages on my chrome now. I do not want to uninstall and then reinstall to save my bookmarks and saved credentials.

is Google Sync a safe option for this?

Ajeetkumar
  • 1,113
  • 1
    Chrome should get updates automatically when you update your system. It seems that you disabled that. – Pilot6 Sep 18 '20 at 06:26
  • Google sync is good for bookmarks and extensions. If by credentials you mean passwords, I myself would not use any browser password keeper, but do use a separate password manager. – crip659 Sep 20 '20 at 11:18

4 Answers4

190

These are a couple of ways to update Google Chrome on Ubuntu 20.04 when the installation is done through the .deb file:

  1. Open Software Updater. Select and install the available Google Chrome update.
  2. Through Terminal. Type sudo apt-get update and then sudo apt-get --only-upgrade install google-chrome-stable.
Priyank
  • 2,030
  • 5
    In my first try, the 2nd command failed as I haven't noticed that the command wraps on the next line. – thanos.a Sep 14 '21 at 17:43
  • 1
    Do not forget to close / reopen Chrome after the update has installed – Julien Oct 01 '21 at 09:22
  • 19
    google-chrome-stable is already the newest version (91.0.4472.77-1) -- but still chrome issues warning that Upgrade needed. – sureshvv Oct 10 '21 at 05:36
  • 1
    This answer did not work for me like the other reply above that has 8 up votes. The next solution below with not nearly as many upvotes solved it – zawy Oct 02 '22 at 20:27
  • Worked for me, on Ubuntu 18.04. – ComputerScientist Oct 22 '22 at 18:39
  • If the second command fails because of a lock fail, you can try "sudo killall apt apt-get" and then retry. – Conjecture Dec 16 '23 at 09:43
  • @zawy, I installed chrome using deb file and whenever there is an update for the chrome (a warning message added to Chrome browser for update), I use the solution given above, and It always works without close the browser or restart laptop. – Abhishek Kamal Jan 10 '24 at 04:12
46

Hope this helps:

Add Key:

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

Set repository:

echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list

Install package:

sudo apt update 
sudo apt install google-chrome-stable
Pablo Bianchi
  • 15,657
31

context: you've already installed Chrome and can't seem to update it - where the command line tells you that you already have the latest, Chrome keeps complaining you need to update - and when you relaunch Chrome it fails to update.

Try the following...

Check /etc/apt/sources.list.d/google-chrome.list

If it looks like this:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

uncomment the last line, so that it looks like this:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Then do:

sudo apt update

And then:

sudo apt-get --only-upgrade install google-chrome-stable
user12345
  • 4,481
  • 3
    Thank you! Can confirm this is the answer that worked. After uncommenting that line I was able to sudo apt-get update and sudo apt-get install google-chrome-stable and it actually worked. – Digs Apr 24 '22 at 07:44
  • 1
    Thank you, worked for me as well – cjohansson May 10 '22 at 06:17
  • 2
    Clear and straightforward, this should be the accepted answer !!! – HanniBaL90 Sep 22 '22 at 09:09
  • This worked indeed. The entry contained a comment in my case that the repository was disabled during the upgrade from my previous version to 22.04. Enabling it again allowed updates as part of the regular update and upgrade procedure (the second step of (re-)installing google-chrome-stable was not needed). – Marijn Dec 11 '22 at 16:27
9
  1. Download .deb (for example) from: https://www.google.com/chrome/
  2. In your download directory, you need to find: google-chrome-stable_current_amd64.deb
  3. Run: sudo dpkg -i google-chrome-stable_current_amd64.deb.

It works for me.

doox911
  • 224