Skip to content

Instantly share code, notes, and snippets.

@twistedpair
Last active April 10, 2024 05:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twistedpair/3f4ec4bb11042a733e8dd9c60b631602 to your computer and use it in GitHub Desktop.
Save twistedpair/3f4ec4bb11042a733e8dd9c60b631602 to your computer and use it in GitHub Desktop.
Install Google Chrome in Ubuntu Linux with apt-get
# Installing google chrome via APT (sadly no SNAP available from Google, like there is for Chromium)
# Setup the Google signer and repo
curl -O https://packages.cloud.google.com/apt/doc/apt-key.gpg && sudo apt-key add apt-key.gpg
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
# Install
sudo apt-get update
sudo apt-get install google-chrome-stable
@kstawiski
Copy link

I have an issue with the key. Adding sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B should solve it.

@SvenBunge
Copy link

apt-key has been deprecated and will raise a warning on every apt usage. You can use instead:

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo tee /etc/apt/trusted.gpg.d/google.asc >/dev/null

See the official documentation: https://www.google.com/linuxrepositories/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment