Quantcast

How to Install Google Chrome on MX Linux 21

Google Chrome is the most used Internet Explorer software on the earth, with a recent update in 2021 that Chrome is currently the primary browser of more than 2.65 billion internet users; as you would know, installing MX Linux, like most Linux distributions, only install Mozilla Firefox. However, installing Google Chrome on Chrome is a straightforward task.

In the following tutorial, you will learn how to install Google Chrome on MX Linux 21 release series in three alternative ways: stable, beta, or unstable versions, along with some essential command tips for users.

Update MX Linux

First, update your system to ensure all existing packages are up to date.

sudo apt update && sudo apt upgrade

Install Required Packages

To successfully install the browser, you must install the following packages; run this command if you are unsure; it will not harm your system.

sudo apt install 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.

Install Google Chrome Browser

Import Google Chrome GPG Key

The first step in installing Google Chrome is to import the GPG key for the digital signature; without this, your installation will not complete successfully.

Import the GPG key, and use the following command.

sudo wget -O- https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg

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 Browser

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 with MX Linux.

Taskbar > Internet > Google Chrome {version}

Example:

launch google chrome browser stable beta or unstable mx linux 21
launch google chrome browser stable beta or unstable mx linux 21

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 to make Google Chrome the default browser for your MX desktop with the standard asking for consent to send data back to Google.

Example:

default first time question google chrome browser mx linux 21
default first-time question google chrome browser MX Linux 21

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:

google chrome browser mx linux 21
google chrome browser MX Linux 21

Congratulations, you have installed Google Chrome on your desktop.

How to Update/Upgrade Google Chrome Browser

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 (Remove) Google Chrome Browser

Remove Google Chrome Stable

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 Google Chrome Beta

sudo apt autoremove google-chrome-beta --purge

Remove Google Chrome Unstable (Nightly Build)

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.

sudo rm /usr/share/keyrings/google*

Troubleshooting Multiple Sources.list

Please note you can install all three. However, 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.

Comments and Conclusion

Overall, Chrome is the most used browser, with 70% of users using it. Remember, it is probably one of the most targeted Internet Browsers for zero-day exploits. Keep it up to date, and you will be fine.



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!