I am wondering whether or not there is a way to completely remove Snap from Ubuntu 21.10 (Impish Indri) without losing the ability to install Ubuntu's default browser Firefox.
When I just recently updated to the newest Ubuntu release I realized that the installer programmatically reinstalled Snap, although I had manually removed it before. Additionally the installer removed Firefox, which was installed via the repositories, and reinstalled it via snap.
As I don't want snap to be installed on my machines for various reasons, my question is: Is there a safe way to remove it, and to get the Firefox DEB back to the sources?
Is there a PPA? Could I use a source of an Ubuntu flavor additionally, which didn't remove the Firefox Deb from its sources?
You can combine two measures.
Start by removing Snap package of Firefox by
snap remove firefox --purge
.Then follow the steps:
prevent Snap installation by purging and pinning it with negative priority:
Then install Firefox from
official repositories as simple as
Update april 2022: This option is not anymore applicable in Ubuntu 22.04 and up. Installing the
.deb
package causes installation of the snap version.some third-party (but trusted) repositories
a. deb-packaged Firefox from UbuntuZilla - regular or ESR
Add UbuntuZilla repository with its signing key by
Note: if one needs ESR version - then replace last command with
sudo apt-get install firefox-esr-mozilla-build
.Removal is possible by the following commands:
b. deb packaged Firefox ESR version from Mozilla Team PPA
To get Firefox ESR version installed from Mozilla Team PPA use commands below:
Additional locales may be installed by using packages like
firefox-esr-locale-it
(example for Italian).To remove deb-packaged Firefox one can use commands like:
Locally extracted Firefox archive
If one needs to download and install Firefox to the home folder, then it is possible in the following way:
then logout and login back.
To remove such local installation use commands below:
Discussion and notes:
My personal choice will be one of deb-based.
I would prefer ESR (2b) to get my Firefox behavior stable as it is needed for enterprise level application.
You can download the latest official .deb builds for Ubuntu 22.04 LTS (Jammy) here: https://launchpad.net/~phd/+archive/ubuntu/firefox/
This is a PPA repository with official Ubuntu packages released originally for Ubuntu 20.04 LTS (Focal) and updated automatically as soon as a new version is released.
Remember to backup your
~/.mozilla
directory (or the snap equivalent).