Install Google Chrome on Ubuntu 26.04

Install Google Chrome on Ubuntu 26.04

Google Chrome is a cross-platform, fast, secure web browser developed by Google. Chrome is a free software, but is not open-source. Chrome is based on the open-source Chromium project. This tutorial shows how to install Google Chrome on Ubuntu 26.04.

Install Google Chrome

Add the official Google Chrome repository and signing key:

sudo tee /etc/apt/sources.list.d/google-chrome.sources >/dev/null <<EOF
Types: deb
URIs: https://dl.google.com/linux/chrome/deb
Suites: stable
Components: main
Signed-By:
$(curl -sS https://dl.google.com/linux/linux_signing_key.pub | sed "s/^/ /")
EOF

Update the package lists:

sudo apt update

Install the Google Chrome:

sudo apt install -y google-chrome-stable

When installation is completed, we can check Google Chrome version:

google-chrome --version

Testing Google Chrome

We can run the Google Chrome in a headless environment. The following command captures a screenshot of a page. The screenshot is saved as a test.png file in the current working directory.

google-chrome --headless --disable-gpu --screenshot=test.png --window-size=1920,1080 https://www.google.com

Uninstall Google Chrome

If you want to completely remove Google Chrome and related dependencies, execute the following command:

sudo apt purge --autoremove -y google-chrome-stable

Remove the repository configuration file:

sudo rm -rf /etc/apt/sources.list.d/google-chrome.sources

Leave a Comment

Cancel reply

Your email address will not be published.