203

I just discovered that chromium will only be released as a snap package.

How can I continue to get chromium, without snap? Is this possible without building from source?

Notes:

  • Please let's keep to the question as stated - not "what do you have against snap?"
  • I'm not asking how to remove snap - just how to use chromium as it is now, a deb.

Update

No, this is not a duplicate of that linked question. I don't need to know "why it's a snap". I want to know how to use it without snap.

Right now there is building from source, and some random PPA mentioned below. I hope someone can advise us of trustworthy alternatives.

lonix
  • 2,728

17 Answers17

103

This answer is for Ubuntu 19.10 and 20.04. For 22.04, use the package from Debian bullseye instead of buster, as described below. For Ubuntu 24.04, see this answer.


You can use Chromium from the Debian "buster" repository.
For example, if your Ubuntu release is Eoan (19.10):

  1. Remove Ubuntu chromium packages:

    sudo apt remove chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra
    
  2. Add Debian "buster" repository. Create a file /etc/apt/sources.list.d/debian.list with the following content:

    deb [arch=amd64 signed-by=/usr/share/keyrings/debian-buster.gpg] http://deb.debian.org/debian buster main
    deb [arch=amd64 signed-by=/usr/share/keyrings/debian-buster-updates.gpg] http://deb.debian.org/debian buster-updates main
    deb [arch=amd64 signed-by=/usr/share/keyrings/debian-security-buster.gpg] http://deb.debian.org/debian-security buster/updates main
    
  3. Add the Debian signing keys:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A
    
  4. Store GPG keys in /usr/share/keyrings

    sudo apt-key export 77E11517 | sudo gpg --dearmour -o /usr/share/keyrings/debian-buster.gpg
    sudo apt-key export 22F3D138 | sudo gpg --dearmour -o /usr/share/keyrings/debian-buster-updates.gpg
    sudo apt-key export E562B32A | sudo gpg --dearmour -o /usr/share/keyrings/debian-security-buster.gpg
    
  5. Configure apt pinning. Create a file /etc/apt/preferences.d/chromium.pref with the following content:

    # Note: 2 blank lines are required between entries
    Package: *
    Pin: release a=eoan
    Pin-Priority: 500
    

    Package: * Pin: origin "deb.debian.org" Pin-Priority: 300

    Pattern includes 'chromium', 'chromium-browser' and similarly

    named dependencies:

    Package: chromium* Pin: origin "deb.debian.org" Pin-Priority: 700

  6. Install Chromium again

    sudo apt update
    sudo apt install chromium
    

This should install the latest chromium from the debian-security repository and look like this:

$ sudo apt install chromium
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  chromium-common chromium-sandbox libjpeg62-turbo libminizip1 libre2-5
Suggested packages:
  chromium-l10n chromium-shell chromium-driver
The following NEW packages will be installed:
  chromium chromium-common chromium-sandbox libjpeg62-turbo libminizip1 libre2-5
0 upgraded, 6 newly installed, 0 to remove and 9 not upgraded.
Need to get 56,6 MB of archives.
After this operation, 202 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://de.archive.ubuntu.com/ubuntu eoan/universe amd64 libminizip1 amd64 1.1-8build1 [20,2 kB]
Get:2 http://ftp.de.debian.org/debian buster/main amd64 libjpeg62-turbo amd64 1:1.5.2-2+b1 [134 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu eoan/universe amd64 libre2-5 amd64 20190801+dfsg-1 [162 kB]
Get:4 http://ftp.de.debian.org/debian-security buster/updates/main amd64 chromium-common amd64 79.0.3945.130-1~deb10u1 [257 kB]
Get:5 http://ftp.de.debian.org/debian-security buster/updates/main amd64 chromium amd64 79.0.3945.130-1~deb10u1 [55,9 MB]
Get:6 http://ftp.de.debian.org/debian-security buster/updates/main amd64 chromium-sandbox amd64 79.0.3945.130-1~deb10u1 [141 kB]

As you can see, only Chromium related packages are fetched from the Debian repository, but all others like libminizip1 still come from your Ubuntu repository.

pruflyos
  • 1,170
28

If you can live with Chrome instead of Chromium, you can use the officially provided Debian package from Google:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb

You can get the download URL from the normal Chrome download page, then scroll to the very bottom of the page and select "other platforms". The URL is not directly displayed but you can see it in your download history.

apt instead of dpkg also takes care of installing all dependencies – which snap is not one of.

From reading a few files in that package, I have the impression that it installs a cron job that automatically updates the Chrome installation, just like we know it from Windows. So this looks like a pretty solid solution to me, without tinkering with package sources from other distributions or even personal PPAs. And it might even be available for longer, no need for procedure updates with a new distro version.

I've installed this in Ubuntu 20.04 LTS and it works for me, but I'm only using it headless on a web server. The package includes config files for graphical desktop environments, too, though.

ygoe
  • 1,058
17

For the time being, the chromium-beta PPA also works fine & does not require snap: https://launchpad.net/~saiarcot895/+archive/ubuntu/chromium-beta

To add this PPA:

sudo add-apt-repository ppa:saiarcot895/chromium-beta
sudo apt-get update
Sec
  • 294
14

24.04 will always use the snap version even when using apt.

There is a PPA for Chromium version:

sudo add-apt-repository ppa:xtradeb/apps -y
sudo apt update
sudo apt install chromium

enter image description here

Rinzwind
  • 309,379
8

Chromium is now available in Flatpak packaging format on Flathub: https://flathub.org/apps/details/org.chromium.Chromium

Although Flatpak is similar to Snap, I think it matches the freedom standards that many Linux users are usually looking for, much better than Snap.

user2366867
  • 429
  • 4
  • 5
7

For completeness: Another option is to use nix:

# Install nix
curl -L https://nixos.org/nix/install | sh
. /home/$USER/.nix-profile/etc/profile.d/nix.sh
nix-env --install chromium
chromium

Unfortunately, for getting chromium into your launcher, you'll need to execute whereis chromium and, supposed the outcome is /nix/store/bpmjh6lpsfn3fwrkqx9kp1013x4hqk2y-user-environment/bin/chromium, create ~/.local/share/applications/chromium.desktop (e.g. by gedit ~/.local/share/applications/chromium.desktop) like

[Desktop Entry]
Name=chromium
Exec=/nix/store/bpmjh6lpsfn3fwrkqx9kp1013x4hqk2y-user-environment/bin/chromium
Comment=
Terminal=false
Icon=gnome-panel-launcher
Type=Application

While this basically works, chromium sometimes hangs with this solution, I have no clue why. So if you are ok with the Debian-solution, stick to it.

7

There is no reason to get crazy with flatpak, adding repositories, and other weird stuff. There are official Chromium binaries.

Just download the binary directly from the source and run it.

https://download-chromium.appspot.com/

https://www.chromium.org/getting-involved/download-chromium/

Unzip in to your $HOME/bin directory or /opt or /usr/local/ whatever you want. The binary can be run from chrome-linux/chrome.

The only better option is simply to use something other than Ubuntu so you don't have snap and get automatic updates.

CR.
  • 326
6

In Ubuntu 22.04 you can use Rob Savoury's repository and follow the instructions from here.

First remove the snap.

sudo snap remove chromium

Then install the repo and then install chromium again.

  sudo add-apt-repository ppa:savoury1/ffmpeg4
  sudo add-apt-repository ppa:savoury1/chromium
  sudo apt-get update
  sudo apt-get install chromium-browser

Note: I don't know Rob personally and installing software from other people's repos is always a risk.

Tipi
  • 109
4

Another option would be fetching from Linux mint repository, as they have build their own Chromium as opposed of using snap, and you can install it right away.

enter image description here

[Downloads]$ apt-cache policy chromium
chromium:
  Installed: 96.0.4664.45~linuxmint1+uma
  Candidate: 96.0.4664.45~linuxmint1+uma
  Version table:
 *** 96.0.4664.45~linuxmint1+uma 100
        100 /var/lib/dpkg/status
     90.0.4430.212-1~deb10u1 500
        500 http://kartolo.sby.datautama.net.id/debian-security buster/updates/main amd64 Packages
     89.0.4389.114-1~deb10u1 500
        500 http://kartolo.sby.datautama.net.id/debian buster/main amd64 Packages

Manually install

  1. Go to → http://packages.linuxmint.com/pool/upstream/c/chromium/

  2. Download package with uma in filename, it's the latest Mint releases.

  3. Wait for it to finish the download.

  4. Open up a terminal, and run following command.

    cd ~/Downloads
    sudo apt install ./chromium_96.0.4664.45~linuxmint1+uma_amd64.deb
    

    This assume your download directory is /home/user/download.

Install from terminal

This snippet is valid as of today (28 November, 2021). If newer version has been released, you have to change the command accordingly.

wget http://packages.linuxmint.com/pool/upstream/c/chromium/chromium_96.0.4664.45%7elinuxmint1%2buma_amd64.deb
sudo apt install ./chromium_96.0.4664.45~linuxmint1+uma_amd64.deb

The only drawback of this method is that you have to install it manually if a newer chromium version has been released, you can however opt in using their ppa, so you can receive update automatically.
Liso
  • 15,677
3
You can download latest official .deb build for Ubuntu 20.04 LTS (Focal), 21.04 (Hirsute) and 21.10 (Impish) here: https://launchpad.net/~phd/+archive/ubuntu/chromium-browser/

This is a PPA repository with official Ubuntu packages released originally for Ubuntu 18.04 LTS (Bionic) and updated as soon as a new version is released.-

UPDATE:

Since April 2023 Canonical does no longer provide Chromium .deb packages for any version of Ubuntu.
Hence THIS REPOSITORY WILL NO LONGER BE UPDATED.
You may want to switch to:
https://freeshell.de/phd/chromium

3

Here are the steps to get this working for Ubuntu 22.04 based on the current accepted answer. I did not edit existing answer, because there are too many deltas. SO to @pruflyos for doing the heavy lifting.

  1. Remove chromium packages (regular and snap):
sudo apt remove chromium chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg
sudo snap remove --purge chromium-browser
sudo snap remove --purge chromium
  1. Add older bullseye deb sources (see Ubuntu codenames here), by creating /etc/apt/sources.list.d/debian.list with contents:
deb http://deb.debian.org/debian bullseye main
deb http://deb.debian.org/debian bullseye-updates main
deb http://deb.debian.org/debian-security/ bullseye-security main
  1. Add the deb signing keys:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 6ED0E7B82643E131
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 605C66F00D6C9793
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 0E98404D386FA1D9
  1. Configure apt pinning. Create a file /etc/apt/preferences.d/chromium.pref with the following content:
# Note: 2 blank lines are required between entries
Package: *
Pin: release a=eoan
Pin-Priority: 500

Package: * Pin: origin "deb.debian.org" Pin-Priority: 300

Pattern includes 'chromium', 'chromium-browser' and similarly

named dependencies:

Package: chromium* Pin: origin "deb.debian.org" Pin-Priority: 700

  1. Install Chromium again:
sudo apt update
sudo apt install chromium
  1. Test:
root@<host>:~# chromium --version
Chromium 120.0.6099.224 built on Debian 11.8, running on Debian bookworm/sid

as another user

root@<host>:~# /bin/su - ubuntu ubuntu@<host>:~$ chromium --version Chromium 120.0.6099.224 built on Debian 11.8, running on Debian bookworm/sid

Note: This also works on AWS Graviton arm64 arch.

rynop
  • 171
2

Get rid of snap & any old chrome browser:

sudo snap remove chromium chromium-browser
sudo apt purge snapd

Use the official beta Chromium PPA (from the Chromium team):

sudo add-apt-repository ppa:chromium-team/beta
sudo apt-get update
sudo apt install chromium-browser 

UPDATE:

Since April 2023 Canonical does no longer provide Chromium .deb packages for any version of Ubuntu. Hence THIS REPOSITORY WILL NO LONGER BE UPDATED. You may want to switch to: https://freeshell.de/phd/chromium

source /etc/lsb-release

echo "deb https://freeshell.de/phd/chromium/${DISTRIB_CODENAME} /"
| sudo tee /etc/apt/sources.list.d/phd-chromium.list

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 869689FE09306074

sudo apt install chromium

0

Chromium browser is available in deb for Ubuntu 16.04 (xenial) and 18.04 (bionic).

Ubuntu offers chromium in snap packages only for 19.x and 20.x versions.

That said, you should normally find chromium updates in Ubuntu repos for xenial and bionic.

Normally? It seems that the updated version is available several days (weeks!) before it appears in repos. Today 18 April, the chromium version in bionic repos is 89.4389.90, while versions 89.4389.114, 89.4389.128 and 90.4430.72 are available here: https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+builds?build_state=built

Click on the url of the version you want corresponding to your distribution and processor; then download chromium-browser, language pack and one of the codecs deb. Open your downloads directory in a terminal session, then sudo dpkg -i *.deb.

For Ubuntu versions 19.x and 20.x, you have two solutions:

  • download chromium-browser from debian buster repos (see former answers),
  • or download an ungoogled-chromium-browser for debian buster from here: https://github.com/ungoogled-software/ungoogled-chromium-debian. Enjoy! (answer done using amd64 build of chromium-browser 90.0.4430.72-0ubuntu0.18.04.1 from Linux Mint 19.3 Mate).
Zanna
  • 72,312
MikeNavy
  • 17
  • 1
0

Remove ALL snap rubbish and install Debian Chromium. Install ONLY Chromium and not any Debian Updates. After installing Chromium turn off Debian 11 'Bullseye' in Software & Update > Other Software. It is not necessary, but if a Chromium update is available, turn it on again, but do not just update it. Go to the terminal and sudo apt update && sudo apt install --only-upgrade chromium. Then turned it off againb. You are now using chromium and not chromium-browser. You cannot use the chromium-codecs*. Around a chromium-codecs run via snap. If you first delete snap, it will be restored again. Netflix will not run, but YouTube (1080p @ 30fps) will run perfectly.

enter image description here

Wobbo
  • 357
-3

Part One: Download Available Dependencies.

  1. Download these:
sudo apt install libgcc1 libmpx2 gcc-8-base

Part Two: Get .deb files of Chromium

  1. Install VirtualBox
  2. Run Ubuntu 18.04 in it
  3. Download Chromium (and dependencies) with the download-only flag IN 18.04!
sudo apt-get --download-only install chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra
  1. Go to /var/cache/apt/archives and the .deb files will be there.
  2. Copy the deb files into a shared folder between the guest and the host OS.
  3. Download and install the packages. ON 20.04!!!

Part 3: Disable Updates in Update Manager or other Update Software

  1. Running
sudo apt-mark hold chromium-browser

will disable the Updates.

You Can Also Get the .deb's from archive.ubuntu.com.

  1. Go to http://archive.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/

  2. Use CTRL+F to search for:

    1. chromium-browser_[version]-0ubuntu0.18.04.2_amd64.deb
    2. chromium-codecs-ffmpeg-extra_[version]-0ubuntu0.18.04.2_amd64.deb
    3. chromium-browser-l10n_[version]-0ubuntu0.18.04.2_all.deb
  3. Download Them and Install

  4. Run sudo apt-mark hold chromium-browser to prevent it from updating to snap version.

-9

Without getting into the why, what you're asking for is someone, somewhere to maintain the deb of Chromium. There is a time and resource commitment to do that work, providing the build for you. There's a couple of options.

You specified a way of getting Chromium without building from source. So you're after binary packages which are not packaged as a snap. One option is to get the builds from the upstream Chromium project themselves via https://www.chromium.org/getting-involved/download-chromium

Another would be to use an older release of Ubuntu - such as Ubuntu 18.04 LTS - which still ships a binary deb of Chromium. At the time of writing 18.04 has Chromium 79 - the same as the version in 16.04, and is the latest.

popey
  • 24,549
-9

You'd use a PPA.

sudo add-apt-repository ppa:system76/pop
sudo apt update
sudo apt install chromium

And that's all.

Eliah Kagan
  • 119,640