How to Install Chromium on Linux Mint

In this easy tutorial, we'll see how to install Chromium on Linux Mint 20 by using the terminal from Debian Buster repository. The package is not available anymore in Linux Mint 20 from the Software manager.

Step 1: Remove old chromium packages

To start, go and clean old packages in order to prevent possible problems of other versions. In this case:

sudo apt update
sudo apt remove chromium-browser

Step 2: Add Debian Buster repository

Next as root, add the following - this will add new repository - Debian Buster for Chromium:

deb https://deb.debian.org/debian buster main
deb https://deb.debian.org/debian buster-updates main
deb http://security.debian.org/ buster/updates main

to:

/etc/apt/sources.list.d/debian.list

You can use Nano in order to create new file and save it:

sudo nano /etc/apt/sources.list.d/debian.list

Step 3: Add the Debian signing keys

Now Debian signing keys should be added by:

sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys DCC9EFBF77E11517
sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 648ACFD622F3D138
sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 112695A0E562B32A

Note: This step add trusted set of keys which can be used for Chromium

Step 4: Create /etc/apt/preferences.d/chromium.pref file

To install Chromium we need to create file /etc/apt/preferences.d/chromium.pref with the following content:

# Don't install anything other than chromium from the Debian repos
Package: *
Pin: origin "deb.debian.org"
Pin-Priority: -10

# Don't install anything other than chromium from the Debian repos
Package: *
Pin: origin "security.debian.org"
Pin-Priority: -10

# Exclude the game chromium-bsu
Package: chromium-bsu*
Pin: origin "deb.debian.org"
Pin-Priority: -10

# Exclude the game chromium-bsu
Package: chromium-bsu*
Pin: origin "security.debian.org"
Pin-Priority: -10

# Pattern includes 'chromium'
Package: chromium*
Pin: origin "deb.debian.org"
Pin-Priority: 700

# Pattern includes 'chromium'
Package: chromium*
Pin: origin "security.debian.org"
Pin-Priority: 700

# Chromium dependencies only in buster
Package: /libevent-2.1-6/ /libicu63/ /libjpeg62-turbo/ /libvpx5/
Pin: origin "deb.debian.org"
Pin-Priority: 1

# Chromium dependencies only in buster
Package: /libevent-2.1-6/ /libicu63/ /libjpeg62-turbo/ /libvpx5/
Pin: origin "security.debian.org"
Pin-Priority: 1

Step 5: Install Chromium

Once all steps are completed then we can install Chromium by running next commands in the terminal:

sudo apt update
sudo apt install chromium

Finally we can test is the Chromium installation on Linux Mint 20 successful by starting the browser: chromium-browser

Note: In case of upgrade of Linux Mint 19 to LM20 programs like Chromium, Radio Tray will be deleted and all information lost. So back up any information before the upgrade.

Source

Linux Mint User Guide - Chromium

Note 1: Latest Chromium can be downloaded from Download Chromium

Note 2: You can use alternatives like Google Chrome from: Install Google Chrome in Ubuntu 18