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.
From a security standpoint? Not even close. From a software-release validation requirement, not even in the same galaxy. If they look the same, it's only due to Clarke's law.
It's a joke based of the fact that when you type apt install firefox on ubuntu, it will install the snap instead of the deb package, which is what you would expect when you use apt to install something.
You are missing the attribution. The person you are replying to is making a joke that Canonical says they are the same, not that they are actually the same.
In Ubuntu they are the same. firefox version 1:1snap1-0ubuntu5 is a deb that literally runs the command snap install firefox in the preinst script. Check line 77 in firefox-1snap1/debian/firefox.preinst in the source tarball: https://launchpad.net/ubuntu/+source/firefox/1:1snap1-0ubuntu5
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.
And pin other repos so Ubuntu doesn't replace it. And change the apt.conf rules that alias out apt install commands for the snap install equivalent. And whatever the countermeasure is for the next sneaky ploy they put into action.
I like my operating system to work for me not against me. So no. I'll just never use their shitty spin of Linux and rely on someone that makes a quality distro. Not one that forced it's users to use their pile of shit proprietary nonsense.
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 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 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.
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.
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.
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.