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.
You can use Chromium from the Debian "buster" repository.
For example, if your Ubuntu release is Eoan (19.10):
Remove Ubuntu chromium packages:
Add Debian "buster" repository. Create a file
/etc/apt/sources.list.d/debian.list
with the following content:Add the Debian signing keys:
Store GPG keys in
/usr/share/keyrings
Configure apt pinning. Create a file
/etc/apt/preferences.d/chromium.pref
with the following content:Install Chromium again
This should install the latest chromium from the
debian-security
repository and look like this: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.If you can live with Chrome instead of Chromium, you can use the officially provided Debian package from Google:
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 ofdpkg
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.
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:
For completeness: Another option is to use
nix
: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. bygedit ~/.local/share/applications/chromium.desktop
) likeWhile 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.
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.
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.
Manually install
Go to → http://packages.linuxmint.com/pool/upstream/c/chromium/
Download package with
uma
in filename, it's the latest Mint releases.Wait for it to finish the download.
Open up a terminal, and run following command.
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.
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.
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.
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.
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:
Part One: Download Available Dependencies.
Part Two: Get .deb files of Chromium
download-only
flag IN 18.04!/var/cache/apt/archives
and the .deb files will be there.Part 3: Disable Updates in Update Manager or other Update Software
will disable the Updates.
You Can Also Get the .deb's from archive.ubuntu.com.
Go to http://archive.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/
Use CTRL+F to search for:
chromium-browser_[version]-0ubuntu0.18.04.2_amd64.deb
chromium-codecs-ffmpeg-extra_[version]-0ubuntu0.18.04.2_amd64.deb
chromium-browser-l10n_[version]-0ubuntu0.18.04.2_all.deb
Download Them and Install
Run
sudo apt-mark hold chromium-browser
to prevent it from updating to snap version.