this post was submitted on 05 Feb 2025
57 points (95.2% liked)

Linux

49544 readers
999 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

all 34 comments
sorted by: hot top controversial new old
[–] SatanClaus@lemmy.dbzer0.com 7 points 45 minutes ago

Solve the problem. Drop ubunutu

[–] doubtingtammy@lemmy.ml 5 points 41 minutes ago (1 children)

Yes. That was the last straw for me. I switched to debian stable, and haven't looked back since

[–] fine_sandy_bottom@discuss.tchncs.de 2 points 39 minutes ago

Hah! Me too, exactly this.

[–] notabot@lemm.ee 4 points 46 minutes ago (1 children)

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.

If that is the case, you need to pin the firefox package to the mozilla repository. You can find more details here: https://wiki.debian.org/AptConfiguration

[–] Morphit@feddit.uk 2 points 24 minutes ago
[–] GrumpyDuckling@sh.itjust.works 5 points 1 hour ago (1 children)

For awhile I was getting firefox crashes in Mint all the time. Turns out it was the snap version being unstable.

[–] GoodEye8@lemm.ee 1 points 7 minutes ago

Why even enable snaps? It's like asking to have headaches.

[–] phar@lemmy.ml 2 points 53 minutes ago (1 children)

At this point, why is anyone using Ubuntu for desktop? You have soooo many options

[–] JubilantJaguar@lemmy.world 1 points 11 minutes ago

Because not everyone wants to spend their time babysitting an OS and Ubuntu has a 20-year track record of dependability.

[–] bjoern_tantau@swg-empire.de 40 points 3 hours ago

It is one of the reasons many people turn away from Ubuntu.

[–] dbkblk@lemmy.world 11 points 2 hours ago

Switch to Debian and you'll be fine :)

[–] Strit@lemmy.linuxuserspace.show 50 points 3 hours ago (2 children)

They started doing that in a couple of years back. Saw quite a bit of backlash in the Linux news media at the time.

[–] Amaterasu@lemmy.world 2 points 31 minutes ago

No defending Ubuntu but wasn't this clarified to be Mozilla's deploying it via Snap and requesting to remove the apt installation?

[–] sourov@lemm.ee 3 points 1 hour ago (1 children)

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.

[–] eugenia@lemmy.ml 2 points 57 minutes ago

Yes, this is known. They do the same for Chromium. If you want a browser from ubuntu, it's going to be a snap.

[–] MyNameIsRichard@lemmy.ml 28 points 3 hours ago (3 children)
[–] JubilantJaguar@lemmy.world 1 points 9 minutes ago

Exactly. Enough with the inane conspiracism.

[–] IsoKiero@sopuli.xyz 10 points 1 hour ago (1 children)

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.

[–] BluescreenOfDeath@lemmy.world 1 points 11 minutes ago* (last edited 10 minutes ago)

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: 1000

Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1' | sudo tee /etc/apt/preferences.d/mozilla

[–] sourov@lemm.ee 1 points 1 hour ago (2 children)

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.

[–] Routhinator@startrek.website 6 points 1 hour ago (1 children)

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.

[–] JuxtaposedJaguar@lemmy.ml 1 points 5 minutes ago

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.

[–] gonzo-rand19@moist.catsweat.com 1 points 37 minutes ago

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.

[–] LainTrain@lemmy.dbzer0.com 16 points 2 hours ago

Jesus Christ this is Windows-tier insane computing behaviour from Ubuntu. Fuck Ubuntu.

[–] accideath@lemmy.world 18 points 3 hours ago

Wasn’t that one of the main critiques of snap/ubuntu/canonical a few years ago already?

Among my personal dislike for its shade of purple, that has been my primary reason to not recommend ubuntu for a while, at least.

[–] yozul@beehaw.org 1 points 1 hour ago

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.

[–] thingsiplay@beehaw.org 16 points 3 hours ago (1 children)

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)

[–] sourov@lemm.ee 3 points 1 hour ago (1 children)

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.

[–] thingsiplay@beehaw.org 4 points 1 hour ago

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.

[–] Dirk@lemmy.ml 8 points 2 hours ago (2 children)

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.

[–] Scrollone@feddit.it 4 points 1 hour ago

Thanks. I hate snaps. I'll probably just stop using Ubuntu.

[–] sourov@lemm.ee 4 points 1 hour ago

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.

[–] Frederic@beehaw.org 1 points 1 hour ago

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.