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.
It’s a known and documented issue that Ubuntu does. They secretly install the Snap version, even if you tried to install the Deb package. This is an issue since years: https://askubuntu.com/questions/1345385/how-can-i-stop-apt-from-installing-snap-packages (posted 3 years and 7 months ago)
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.
Definitely not you, they absolutely do this with snaps and have for a while. This was the main reason I stopped using Ubuntu.
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.
Debian testing just isn’t a very good rolling release disto
What makes you say that?
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.
Ubuntu uses Snap as first-class method to install software. So if a piece of software is available as DEB or Snap, Ubuntu will always use Snap.
Thanks. I hate snaps. I’ll probably just stop using Ubuntu.
Why?
They’re slower than a native app, and they don’t integrate as well with the rest of the system.
thanks! didn’t know about 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.
Solve the problem. Drop ubunutu
You could compile it from source yourself, and you won’t even have to worry about packaging and package managers.
Yup. They also did this with Docker, and it broke my setup (and was a bitch to debug).
This was a couple of years ago, and I haven’t used Ubuntu unless absolutely necessary (and then usually in a container).
Docker in a snap is too meta for me.
Just wait for snap 2.0 which actually runs everything inside docker containers /s
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.
It is one of the reasons many people turn away from Ubuntu.
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.
In Ubuntu they are the same.
firefox
version1:1snap1-0ubuntu5
is a deb that literally runs the commandsnap install firefox
in the preinst script. Check line 77 infirefox-1snap1/debian/firefox.preinst
in the source tarball: https://launchpad.net/ubuntu/+source/firefox/1:1snap1-0ubuntu5There’s no magic there.
That is not the same thing as “snap and apt Firefox are the same”. They just hijacked apt to force snap in.
So both commands do the same thing… right? I’m not saying snap and apt are the same in general.
Yeah for sure, I read your comment as excusing canonical screwing with user intent but I see that’s not what you meant.
Yeah, I really dislike snap and have puppet clean it out and add in the real mozilla repo for me. If I wanted sandboxed apps I’d probably look at flatpak but I think there’s still work to be done there also.
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.
Well, yes, except Canonical have made them actually do the same thing in the case of Firefox. I’m not aware of any other packages that have the deb install just run the snap install.
Chromium too iirc
Yup,
apt install chromium-browser
callssnap install chromium
. Looks like thunderbird is the same. There’s a fwupd-snap deb but fwupd seems to be the default.
Yep, I am agreeing with you. The statement was never snap and deb are identical, its that canonical is making them do identical things.
Yeah, I just liked that bit of the meme. In the prank the meme is based on, they really are the same.
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.
Clearly they’re cosplaying as a Canonical engineer whose internal explanation and pleas for them to not take this approach fell upon deaf ears /j
This is why i switched to Debian. It’s 99% of Ubuntu, without the crap.
I… I… I don’t know why I haven’t done that myself. (Am now on NixOS btw) but for work maybe I ask for Debian cloud box.
For work, you could also try Fedora Workstation or Linux Mint Debian Edition. Debian is pretty barebones, but if that isnt a bother then do whatever.
I like gnome, but i guess i could look at fedora.
I would like to stay with apt as package manager so the package names stay the same to what I know, or is yum/dnf/etc gonna use the same for most?
Mostly the same, and if not all it has taken for me to figure it out was searching “fedora $pkgname”
It’s not barebones. I use it as my main desktop and barely notice any difference from Ubuntu, it has every package I’ve ever needed. I think that mentality of Debian being “bare” is outdated.
@[email protected] this is for you, too.
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.
Thats… odd. The installer packages aren’t really that different. When was this?
I battled that for about a year and then ditched Debian based diatros altogether.
OpenSUSE ftw
They started doing that in a couple of years back. Saw quite a bit of backlash in the Linux news media at the time.
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, this is known. They do the same for Chromium. If you want a browser from ubuntu, it’s going to be a snap.
w3m
is a proper deb 😛Looks like only firefox, chromium-browser and thunderbird are these dummy transitional packages. There’s a
fwupd-snap
, but the defaultfwupd
is a full deb.
Not defending Ubuntu but wasn’t this clarified to be Mozilla’s deploying it via Snap and requesting to remove the apt installation?
Source: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
It was a collaboration, although I’m having trouble finding a source for who wanted it first.
Not secretly, no.
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.
At least a few years. I switched to Linux a year ago and that was a huge consideration for me when choosing Debian over Ubuntu.
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.
It’s more than that. Ubuntu copies the Debian repos and then applies their own changes on top. Debian has a native (DEB) Firefox package, so Ubuntu specifically has to remove it for every new version.
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.Canonical added an epoch prefix to the firefox version number. Because that epoch (1) is higher than the implicit default (0), the official ubuntu dummy package is always considered to be a higher version than the official Mozilla package. apt doesn’t look at snap packages, it installs the deb, but the ubuntu deb just runs
snap install firefox
and basically nothing else.
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.
It takes a little more than just adding a different repository to your package manager, you have to tell apt which to prefer:
echo ’
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1’ | sudo tee /etc/apt/preferences.d/mozillaTrue, but more often than not mozilla should have newer packages on their repository than any distribution. And the main problem still is that Ubuntu changed apt and threw snap in to the mix where it doesn’t belong.
I’m not disagreeing with anything you’ve said?
I’m saying that just adding Mozilla’s PPA to your sources won’t change apt’s behavior when installing Firefox unless you tell apt to prefer the package offered by the Mozilla PPA.
As someone who uses Kubuntu as a daily driver, I’m well aware of the snap drama and have worked around it using the method I pasted above.
Even though it’s an underhanded move by Cannonical, I’m still glad the OS is open source since it makes the workaround so trivial.
Exactly. Enough with the inane conspiracism.
Yes. That was the last straw for me. I switched to debian stable, and haven’t looked back since
Hah! Me too, exactly this.
Me too
Debian will have snaps and flatpaks and all the same insecure black-box drek.
Given how much they violate ISO27002, I can’t see them ever being run in a regs-compliant shop.
I feel like snaps are black boxier tho.