Install Firefox from .deb (not from snap) on Ubuntu
The latest Ubuntu LTS ships Firefox as a snap instead of a deb package. But if you prefer to install the browser in the traditional way like me, here is how you can do it.
The first step is to block the package from the Ubuntu repository:
1
2
3
4
$ cat /etc/apt/preferences.d/firefox-no-snap
Package: firefox*
Pin: release o=Ubuntu*
Pin-Priority: -1
Then make sure you remove Firefox:
1
2
sudo apt purge firefox
sudo snap remove --purge firefox
Now, let’s add the Mozilla PPA to our system:
1
2
sudo add-apt-repository ppa:mozillateam/ppa
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
Now we can install the deb package:
1
2
sudo apt update
sudo apt install firefox
And Voilà!
Enjoyed this article? Support my work!
If you found this content helpful, consider buying me a coffee to show your appreciation.
Buy me a coffee