Is it me or Ubuntu secretly replaces DEB Firefox with Snap Firefox?
After creating a fresh installation of Ubuntu 24.04, I installed DEB Firefox from APT by following Mozilla's instructions from here. But I noticed that it was secretly replaced with Snap Firefox. I was able to verify this by checking the About Firefox page. This is the third time I noticed this.
Agreed, not a secret, and not wanted. I uninstall Firefox and install Google Chrome from a .deb - disadvantage: you have to update it manually. Advantage: it doesn't update itself automatically.
I must have hit that 1% last time. I assembled a new PC, wanted to install debian and could not get a login screen after installation. At that point I wanted something that just works. I installed Xubuntu and had the machine ready right away.
I'm aware that when the user runs(without adding Mozilla's apt repository),
sudo apt install firefox
the snap version of Firefox is installed. But I never heard that, though APT is configured to install Firefox from Mozilla's repository, the DEB version will be uninstalled and the Snap version will be installed.
I agree Ubuntu is the easy choice. You can totally find a desktop you don't have to baby sit, but Ubuntu has the marketing to help you find them and feel safe.
I've had no issues with fedora, I've been running it for about a year.
But it's not obvious either. When I say 'apt install firefox', specially after adding their repository to sources.list, I'd expect to get a .deb from mozilla. Silently overriding my commands rubs me in a very wrong way.
Since when this became a known thing? I'm aware that the snap version is installed when the user is trying to install the deb version of Firefox by running,
sudo apt install firefox
But I never heard that the installed DEB version of Firefox is replaced by Snap version of Firefox.
The deb version is a pointer to the snap in their repos. Nothings being replaced, it no longer exists. The deb version of Firefox in Ubuntu repos is a wrapper that installs snap and has no binaries in it. Has been for 3 years or so.
Well then you haven't been following it closely. As someone else said, the reason is simple: the Snap version is more recent (like it or not) and in Ubuntu apt is configured to take into account Snap packages.
I suspect that what's happened is you installed the apt version, then at some point upgraded it and there was a version in the main repo that had a higher version number and installed the snap version. If two repositories both have a package with the same name, and no other rules in place, the higher version number wins.
It just occured to me that if you want to use Ubuntu without snap, you could uninstall the snap package itself (I'm not on Ubuntu, so you might need to find it), then put a 'hold' on the package to prevent it being reinstalled. That should, in turn, prevent any package versions that use snap from being installed.
Initially uninstalling snap might require removing any packages that use it, but that'll tell you what you need non-snap versions of.
It's a dilemma; most Windows and Mac users would benefit from that kind of locked-down, idiot-proof format. Even having the choice of multiple repos is too much for them. So while I personally hate it, that's what most people (i.e. non-Linux users) want and need.
I recommend Ubuntu as the beginner distro for everyone, but with the hope that they eventually drop the training wheels and switch to Debian.
My problem is not like that. I’m aware that when the user runs(without adding Mozilla’s apt repository),
sudo apt install firefox
the snap version of Firefox is installed. But I never heard that, though APT is configured to install Firefox from Mozilla’s repository, the DEB version will be uninstalled and the Snap version will be installed.
Yes, that's the exact issue. Ubuntu does that for years. You use apt to install deb, but Ubuntu installs silently the Snap version. The article I linked was talking about that almost 4 years ago and talks about how to stop that. It's an old issue not many are aware off.
How did you get snap on mint?! 😆I once tried it as a noob and mint was always “snap bad! Don’t do this! You will regret” even on try to circumvent it 🤣
I’m aware that when the user runs(without adding Mozilla’s apt repository),
sudo apt install firefox
the snap version of Firefox is installed. But I never heard that, though APT is configured to install Firefox from Mozilla’s repository, the DEB version will be uninstalled and the Snap version will be installed.
The whole apt ecosystem is kind of a mess, if you ask me. Debian stable updates on archeological timescales, Debian testing just isn't a very good rolling release disto, you're better off with Arch or OpenSuse Tumbleweed if you want to actually use a rolling release as a daily driver, Ubuntu is a mess of annoying corporate decisions I hate from Canonical, and all the others are all just kind of disjointed in how they try to fix those issues.
My personal favorite is Mint. They just try to make Ubuntu with some classic, boring desktop design and minus the more controversial Canonical decisions, but obviously that's not everyone's cup of tea. I dunno, there is no perfect distro, you just have to find the one that for you it takes the least amount of effort to fix. Ubuntu really just kind of makes it a pain in the butt to fix all their weirdness though.
It's not as up to date as other rolling releases, unlike stable it doesn't get security patches right away, it gets frozen for months during the switch from one stable to the next, and in my fairly limited experience it just has more bugs. It's not bad, but it's a testing branch. It's not intended as a daily driver, and it shows.
One of the reason I moved to MX Linux, it is Debian based, always latest everything, like 6.12.11 kernel, my FF just got updated to 135.0, and it is no systemd, no flatpak, no snap, everything is DEB, and stable.