Score:2

How to install Chromium from the Linux Mint repositories in Ubuntu?

us flag

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.

Score:5
in flag

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)

  2. Create an apt source file for the Mint repository:

    echo "deb http://packages.linuxmint.com una upstream" | sudo tee /etc/apt/sources.list.d/mint-una.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

us flag
`/etc/apt/sources.d/mint-una.list` --- You probably intended to write `sources.list.d`?
in flag
@ArchismanPanigrahi Yep
us flag
If I do this, would not Ubuntu upgrade all the packages from Linux Mint repo? I want to selectively upgrade chromium.
N0rbert avatar
zw flag
I have added the pin-file to prevent other package installation.
Score:0
dm flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.