Firefox replaced by snap

I had Firefox installed as a deb from the mozilla repository.
This morning I switched on, and firefox appears as though freshly installed, all bookmarks and customsations etc gone.

snap list
shows it is installed as a snap package, which I never did.

I'm aware this has cropped up from time to time, eg

If I reinstall from the apt repository, whats the best way to ensure it won't be overwritten again? There are a couple of apps I use which are snap, as thats the only available source, so I can't completely remove snap as some have suggested.

Its bad behaviour, in my view, and something team zorin should 100% have something in place for. If a user installs software from whatever source, it should remain in place.

You should have in /etc/apt/preferences.d/ a File simply called mozilla. Check if the File looks like this:

Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000

Package: firefox
Pin: release o=Ubuntu
Pin-Priority: -10

If not, open the Terminal and type sudo nano /etc/apt/preferences.d/mozilla to work on this File and change the File so that it looks like above.

Then press ctrl+o to save the Changes, Enter to confirm and ctrl+x to exit. Then type sudo apt update && sudo apt upgrade and then the Mozilla Repo should have higher Priority and Firefox from Ubuntu a lower one.

2 Likes

Brilliant, thank you.

I added the 3 lines for ubuntu firefox as suggested and updated. My installed version has reappeared. I'm happy!

3 Likes

Good to hear. But to be fair: It isn't my Brilliance. I've read this as an Addition somewhere. But I don't know anymore where it was.

2 Likes

If in doubt install via tarball:

2 Likes

For anyone checking this later: the Firefox APT pin and the Firefox profile are separate things. After sudo apt update, apt-cache policy firefox shows the installed version, candidate and source priorities; check that the candidate comes from packages.mozilla.org. This does not require removing snapd, so other Snap apps can remain.

If Firefox opens with a blank-looking profile after switching packages, don't delete the old profile. Close all Firefox instances and back up the profile folders first. Mozilla documents using Sync or copying a Snap profile into the deb profile location, then running firefox -P to select it. That migration is only needed if the data you want is in the Snap profile; first check the existing profiles before copying anything.

Mozilla: Client Challenge
Ubuntu apt-cache manual: https://manpages.ubuntu.com/manpages/noble/man8/apt-cache.8.html

2 Likes