How to Install Google Chrome on Pop!_OS 22.04/20.04

Google Chrome is the most popular web browser in the world, and for a good reason. It’s fast, feature-rich, and compatible with nearly every website and online service. And for Pop!_OS users, Chrome is an especially great choice. That’s because it’s faster than Firefox, the default browser installed on your desktop. The following tutorial will demonstrate how to install Google Chrome on your desktop using the command line terminal.

The following tutorial will demonstrate how to import the official Google APT repository and install three options of Google Chrome on Pop!_OS 22.04 or 20.04 LTS using cli commands.

Recommended Steps Before Installation

Before proceeding with the tutorial, ensuring your system is up-to-date with all existing packages is good.

sudo apt update

Optionally, you can list the updates for users who require review or are curious.

sudo apt --list upgradable

Proceed to upgrade any outdated packages using the following command.



sudo apt upgrade

#1st Method – Pop!_OS Repository

Pop!_OS team includes in their repository Google Chrome stable, which is well maintained and updated and is often the best choice for users to ensure absolute system stability with your system.

Open your terminal and run the following command.

sudo apt install google-chrome-stable

And that is it; for users that prefer grabbing the latest updates for stable as soon as available, use the following method, which also allows you to install Google Chrome beta and nightly versions for those that like using edge software.

#2nd Method – Google APT Repository

Install Required Packages

First, ensure that the following packages are installed; most likely, these will be as they are very commonly installed.

sudo apt install curl software-properties-common apt-transport-https wget ca-certificates gnupg2 -y

These are pretty generic dependencies that may be already installed. Run the command regardless if unsure, as many other installations will require these on your system.

Import Google Chrome GPG Key

The first step in installing Google Chrome is to import the GPG key for the digital signature.



Import the GPG key, and use the following command.

curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg > /dev/null

Import Google Chrome Repository

Once the GPG import is complete, you must import the Google Chrome repository.

echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list

Install Google Chrome – Stable

The next step is to update the repository list using the apt update command to reflect the new additions to the apt sources list.

sudo apt update

Next, install the Google Chrome stable edition, the recommended option for most users.

sudo apt install google-chrome-stable -y

Install Google Chrome Beta / Unstable

Alternatively, you can install Google Chrome Beta or Unstable. These two versions are not recommended for daily use, especially not on a main desktop or production server. However, you can install alternative versions for those who want to live on the edge.

Install Google Chrome Beta

sudo apt install google-chrome-beta -y

Install Google Chrome Unstable (Nightly Build)

sudo apt install google-chrome-unstable -y

How to Launch Google Chrome

If your terminal is open with Google Chrome installed, use the following command to launch the browser.



google-chrome

For most desktop users, you would launch the browser using the following path to the application icon, which may vary depending on the desktop environment you originally installed.

Applications > Search > Google Chrome {version}

Example:

launch google chrome browser stable, beta or unstable option example on pop os

The first time you open Google Chrome, you will be greeted by the following pop-up asking to assign a new password to a keychain, along with making Google Chrome the default browser for your desktop with the standard asking for consent to send data back to Google.

Example:

first time prompt when launching google chrome browser on pop os

Untick or leave as is by setting Chrome to the default Browser over what is typically Firefox, along with the option of sending Google data and crash reports.



Click the OK button to continue.

Next, you will be prompted to sign in, skip this, or sign in optionally.

Click on the X in the Chrome Browser tab to skip.

Example:

example of google chrome launched on pop os

Congratulations, you have installed Google Chrome on your desktop.

How to Update Google Chrome

Ideally, you should check for updates using the terminal often; sometimes, the GUI update notifications may update Google Chrome; run the APT update command in your terminal.



sudo apt update

If one is available, use the upgrade option:

sudo apt upgrade

Note this will update all packages (recommended), for example, to upgrade the Chrome package.

sudo apt upgrade google-chrome-stable

How to Uninstall Google Chrome

Remove stable version

Remove the browser using the following command for users no longer interested in the stable Google Chrome Browser.

sudo apt autoremove google-chrome-stable --purge

Users who have installed the non-stable versions use the following command to suit your installation.

Remove beta version

sudo apt autoremove google-chrome-beta --purge

Remove the unstable (nightly) version

sudo apt autoremove google-chrome-unstable --purge

Next, remove the repository that was imported with the following commands.

sudo rm /etc/apt/sources.list.d/google*

Lastly, remove the GPG key for users that will never use Chrome again; remember this is optional and just for good housekeeping.



sudo rm /usr/share/keyrings/google*

Troubleshooting Multiple Sources.list

For users who install the Google APT version and happen to install two or more versions, you will notice each installation will create a new sources list in your /etc/apt/sources.list.d/ directory. When you use the apt update command, you will have multiple sources.list for Google Chrome, and some will be ignored.

Just remove the extras and keep the original one. If you accidentally delete them, copy the import directory code in this tutorial.

Example of a quick fix.

sudo rm /etc/apt/sources.list.d/google*

Then re-add the one repository.

echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list

Remember to run an APT update.

sudo apt update

This should fix the issue in the future, and you will still receive updates for all three browsers.




Not what you were looking for? Try searching for additional tutorials.

Leave a Comment