7

I want to install Chromium from the Linux Mint repositories in Ubuntu 20.04, to avoid snap.

This answer describes how to install Chromium from the Debian repository.

However, the Linux Mint repository usually hosts an updated version of Chromium compared to Debian (as of 12th January 2022, LM 20 repository contains Chromium 97, whereas Debian 11 repository has Chromium 90), and also, Debian security team might soon discontinue maintaining Chromium.

0

2 Answers 2

12

There are a couple of steps required to make this work and, fortunately, it's not too crazy. Here's how you can do this:

  1. Open Terminal (if it's not already open), and remove chromium snap package if you already have not.

    sudo apt purge chromium-browser
    
  2. Create an apt source file for the Mint repository:

    For Ubuntu 20.04:

    echo "deb http://packages.linuxmint.com una upstream" | sudo tee /etc/apt/sources.list.d/mint-una.list
    

    For Ubuntu 22.04 (and newer):

    echo "deb http://packages.linuxmint.com victoria upstream" | sudo tee /etc/apt/sources.list.d/mint-victoria.list
    
  3. To prevent NO_PUBKEY you have to add the GPG key by this:

    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A1715D88E1DF1F24 40976EAF437D05B5 3B4FE6ACC0B21F32 A6616109451BBBF2
    
  4. Then update package lists by apt:

    sudo apt update
    
  5. Prevent installation of other packages by pin-file:

    cat <<EOF | sudo tee /etc/apt/preferences.d/pin-chromium
    Package: *
    Pin: release o=linuxmint
    Pin-Priority: -1
    
    Package: chromium
    Pin: release o=linuxmint
    Pin-Priority: 1000
    EOF
    
  6. Install chromium:

    sudo apt install chromium
    
  7. Open chromium and check the About: Mint's Chromium in 20.04 Note: You may want to change the landing page, which is all about Mint Una 😉

This will give you what you're looking for 👍🏻

11
  • 1
    /etc/apt/sources.d/mint-una.list --- You probably intended to write sources.list.d? Commented Jan 12, 2022 at 15:14
  • @ArchismanPanigrahi Yep 🤐
    – matigo
    Commented Jan 12, 2022 at 15:17
  • 1
    If I do this, would not Ubuntu upgrade all the packages from Linux Mint repo? I want to selectively upgrade chromium. Commented Jan 12, 2022 at 16:33
  • 5
    I have added the pin-file to prevent other package installation.
    – N0rbert
    Commented Jan 12, 2022 at 16:36
  • 1
    It works, thanks.
    – fsevenm
    Commented Jul 16, 2022 at 0:30
0

These directions are not necessarily incorrect. I do recommend using the vanessa repositories though. You can do this by doing the following:

  1. Open a Terminal.

  2. echo "deb http://packages.linuxmint.com vanessa upstream" | sudo tee /etc/apt/sources.list.d/mint-vanessa.list

  3. sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A1715D88E1DF1F24 40976EAF437D05B5 3B4FE6ACC0B21F32 A6616109451BBBF2

NOTE: These same keys DO work. You may get a slight warning saying "W: http://packages.linuxmint.com/dists/vanessa/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.", but as you probably know by now "W:" or warning signs aren't a big deal for the most part.

  1. sudo apt update (or "sudo nala update" if you use nala.)

  2. Again... prevent installation of other Linux Mint Repositories' packages by running the code above.

  3. sudo apt install chromium (or "sudo nala install chromium" if you use nala.)

Disclaimer: By using this process, you are pulling chromium as a .deb package. If you ever want to return to the snap format, you can either run the installation via snap or reverse this process.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .