User Agents

Web browsers and everyday web tech, explained

Install Google Chrome on Ubuntu 20.04 via Official Repo

· 4 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Installing Google Chrome on Ubuntu 20.04 via the official repository ensures you get the latest stable version directly from Google, with automatic updates and verified security. This method avoids third-party sources and keeps your system clean and secure. Chrome is not included in Ubuntu’s default repositories, so you must manually add Google’s official repository to install and update it properly. This guide walks you through the entire process, from setup to verification, including troubleshooting common issues.

What You'll Need

  • Ubuntu 20.04 LTS (64-bit) with administrative (sudo) access
  • Active internet connection
  • Terminal access (Ctrl+Alt+T opens it)
  • Basic familiarity with command-line operations

Step-by-Step

  1. Open the terminal by pressing Ctrl+Alt+T or searching for "Terminal" in the Applications menu.
  2. Update your system’s package list to ensure all existing software sources are current. Run:
    sudo apt update
  3. Install necessary dependencies that allow Ubuntu to handle HTTPS repositories and manage keys:
    sudo apt install apt-transport-https curl gnupg
  4. Download Google’s signing key to verify the authenticity of packages from their repository. Enter:
    curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/google-chrome-keyring.gpg
  5. Add Google Chrome’s official repository to your system’s sources list. Use this command to create a dedicated sources file:
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome-keyring.gpg] https://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
  6. Update the package list again to include the newly added Google Chrome repository:
    sudo apt update
  7. Install Google Chrome. You have two options:
    sudo apt install google-chrome-stable
    This installs the stable version. If you prefer the beta or unstable versions, use google-chrome-beta or google-chrome-unstable, but these are not recommended for regular use.
  8. Once installation completes, launch Google Chrome from the Applications menu or by typing google-chrome in the terminal.
  9. On first launch, Chrome may prompt you to set it as the default browser and sign in with a Google account. These are optional.
  10. Verify the installation by checking the version:
    google-chrome --version
    This should display the installed version number, confirming Chrome is working.

Common Mistakes

  • Skipping dependency installation: Forgetting to install apt-transport-https or curl can cause repository errors. Always install required tools first.
  • Using outdated commands: Some guides suggest using sudo apt-key add, which is deprecated. The current best practice uses gpg --dearmor with a keyring in /usr/share/keyrings.
  • Incorrect repository URL: Typing the wrong URL in the sources list prevents package retrieval. Always copy the exact URL from Google’s official documentation.
  • Not updating after adding repo: Failing to run sudo apt update after adding the repository means apt won’t see Chrome as installable.
  • Installing from .deb without adding repo: Downloading a .deb file from the website installs Chrome once but disables automatic updates. Using the repository ensures future updates are handled by apt.

Tips

  • Use the stable channel: Stick with google-chrome-stable unless you need experimental features. The beta and unstable versions can be buggy.
  • Keep the keyring secure: Store the GPG key in /usr/share/keyrings, which is the standard location for trusted keys and is protected from accidental changes.
  • Check repository integrity: After adding the source, verify it exists by running:
    cat /etc/apt/sources.list.d/google-chrome.list
    It should show the correct deb line with the signed-by path.
  • Uninstall cleanly: If you later remove Chrome, also remove the repository:
    sudo rm /etc/apt/sources.list.d/google-chrome.list
    And delete the keyring:
    sudo rm /usr/share/keyrings/google-chrome-keyring.gpg
  • Automate updates: Since Chrome is now in the repository, it will update automatically when you run sudo apt upgrade, just like any other system package.

Troubleshooting

If Chrome fails to install or launch, try these steps:

  • "Package not found" error: Run sudo apt update again. If the error persists, check the repository file for typos using cat /etc/apt/sources.list.d/google-chrome.list.
  • GPG key errors: If you see warnings about missing or invalid signatures, re-import the key using the exact curl command. Ensure your system clock is correct, as GPG validation depends on time accuracy.
  • Dependency issues: If apt reports broken dependencies, run:
    sudo apt --fix-broken install
    Then retry the Chrome installation.
  • Chrome won’t launch: Run google-chrome --no-sandbox temporarily to test if sandboxing is the issue. If it works, reinstall Chrome or check system security settings. Never run Chrome permanently with --no-sandbox.
  • Repository conflicts: If you previously installed Chrome via .deb, remove it first:
    sudo apt remove google-chrome-stable
    Then purge config files:
    sudo apt purge google-chrome-stable
    Now follow the repository method.

Frequently Asked Questions

Why can’t I install Chrome with just apt install?

Ubuntu does not include Google Chrome in its default repositories due to licensing and policy reasons. You must add Google’s official repository first.

Is it safe to add Google’s repository?

Yes, as long as you use the official URL and verify the GPG key. This method is safer than downloading .deb files from random websites.

Will Chrome update automatically?

Yes, once installed via the repository, Chrome updates alongside system packages when you run sudo apt update && sudo apt upgrade.

Can I install Chrome without a terminal?

Not reliably. While you can download a .deb file from Chrome’s website, only the repository method ensures ongoing updates and proper integration.

What’s the difference between stable, beta, and unstable?

Stable is fully tested. Beta includes upcoming features with minor bugs. Unstable is for developers and may crash. Use stable for daily browsing.

Does this work on other Ubuntu versions?

Yes, this method works on Ubuntu 20.04 and later, including 22.04 and 24.04, as long as the system is 64-bit and supports apt.