Spyke
linux·Linuxbysourov

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.

View original on lemm.ee

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

94
sourovreply
lemm.ee

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.

9
Eugeniareply
lemmy.ml

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

10

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 default fwupd is a full deb.

3

Firefox now has instructions on their "Debian-based" install section about pinning their repo over Canonical's so that doesn't happen.

Because you're right, Canonical does think so highly of their product that they will constantly attempt to undermine other options against your will.

5
lemmy.ca

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.

-9
Baaahbreply
feddit.nl

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.

22

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

8

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.

10
lemmy.ml

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

42
lemmy.ca

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.

-2

I got a notification about it when I upgraded from 20.04 LTS that they will only serve it as a snap package.

6
IsoKieroreply
sopuli.xyz

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.

24
lemmy.world

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

8
IsoKieroreply
sopuli.xyz

True, 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.

4

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.

3
sourovreply
lemm.ee

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.

4
startrek.website

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.

11

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.

4

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.

3

I had it happen a few times. I moved away from Kubuntu as a result.

2
lemmy.world

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.

1

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.

5
jlai.lu

Or you can just remove snap. I have been running a up-to-date snap-free ubuntu for 2 years

0

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.

2

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.

2
lemmy.ca

I suggest Mint or straight Debian. I prefer Mint for anything graphical, Debian for headless

37

I've just found it's more polished right out of the box. Definitely more new-user-friendly, like Ubuntu, but with Snap gutted out.

I have been using the regular Mint (based on Ubuntu), but I'm probably going to use the Debian edition next time I install a new system

18
lemmy.world

Not a secret, but annoying as hell. I usually replace it with a Flatpak and uninstall Snap.

36
MangoCatsreply
feddit.it

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.

-11
MangoCatsreply
feddit.it

Too late, they own my soul already. I have successfully resisted Meta, X, Microsoft, and any number of lesser daemons, but the one true G has shown me their light and I am unable to look away.

-12
MangoCatsreply
feddit.it

They delivered their promise: they were at least not evil, at first.

-4
inetknghtreply
lemmy.ml

Why would you use an inferior product? Firefox via Snap is shit but it's still better than any version of Chrome

10

Definitely not you, they absolutely do this with snaps and have for a while. This was the main reason I stopped using Ubuntu.

27
lemmy.world

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.

22
lemmy.ml

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.

1

That’s why I recommend mint. You have all the benefits of ubuntu but without the corporate stuff. And flatpak instead of snap.

7
lemmy.ml

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

20

Unfortunately it's my only option at work because my employer wants the security of Ubuntu pro

3
lemmy.world

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

-6
lemmy.ca

While I get that, Debian fits that role extremely well.

20
lemmy.world

I was waiting for this! Debian is great. I used it for years. But IMO it's not polished enough for normies. The website is fugly and the onboarding funnel assumes too much knowledge. The installer, last time I tried it, was glitchy and unintuitive. I think that techies underestimate how offputting even ostensibly minor issues like this will be to ordinary users. Also, Debian has a ton of unmaintained packages (altho I gather that something is being done about this). Debian is fundamentally amateur in the best and unfortunately worst senses. I think a Linux flagship distro needs to be more pro and systematically thought out. For that, it's always going to help to have a big company or organization behind it.

2
technocritreply
lemmy.dbzer0.com

The installer, last time I tried it, was glitchy and unintuitive.

I used it a few months ago and it was pretty smooth.

3

I used it decades ago (using the CLI installer for a Sid install I eventually fucked up beyond repair) and it was okay for a slightly tech savvy teenager, even then.

I suspect a lot of these issues are down to hardware compatibility more than anything else.

1

I have a laptop that needs a proprietary wifi driver. I just "love" it when the debian net installer works out of the box, but after first boot wifi dies because the driver is missing in the installed instance :D I need to find a lan cable, do some athletics to get to the router, then install the driver and only then I can connect via wifi :D

3

Was a kubuntu person for a long time, I haven't really loved the default Ubuntu DE for a while, but that's personal preferences. At the end of the day, use what you like.

I personally like debian (swapped from Kubuntu over time) but keep mint on my thumb drive for family who needs something on older hardware, especially those used to windows it seems to be an easy jump. I love that there are so many options available to people with various levels of prepackaging and configurations.

1
pebblesreply
sh.itjust.works

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.

1

I think fedora is best for user that want a recent kernel and reasonably fast update cycle (like not a year behind) but are not interested in rolling (for whatever reason ever).

I love rolling and had no issues due to rolling yet

5
lemmy.world

Exactly. But I would go further. I think Linux needs flagship distros with big solid institutions behind them, and it needs us to support those distros by using them. I know this is not an popular opinion here.

I see those flagship distros precisely as Fedora and Ubuntu.

0

I'm a bit of an anarchist so I disagree on principal lol, but I do agree that that would help Linux usurp windows.

My fear is that it would just then become windows within a decade or less. Getting big and institutional may work out. I've just seen a lot of cases go sour.

To me the beauty of Linux is that it is less connected to large impersonal capitalistic structures. That's why it feels different from Windows.

3

There is RedHat and SUSE. Which are also the only two certified distros for running corporate/enterprise CAD/CAM/FEA and PLM software. They both provide rock solid stability.

1
lemmy.nowsci.com

This is why i switched to Debian. It's 99% of Ubuntu, without the crap.

17
ritchiereply
lemmy.world

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.

6
fmstratreply
lemmy.nowsci.com

Thats... odd. The installer packages aren't really that different. When was this?

4
lemmy.ca

My guess is: prior to Bookworm, when they started including non-free firmware on installation media by default.

2
beengreply
discuss.tchncs.de

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.

5
N.E.P.T.Rreply
lemmy.blahaj.zone

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.

2
fmstratreply
lemmy.nowsci.com

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.

4
N.E.P.T.Rreply
lemmy.blahaj.zone

I had a friend jump ship from Windows and they said that Debian felt barebones. I personally dont have any problem with it, I use it all the time for VMs, server, and I used to main it. I still think it is missing a lot of user-friendly small things that i never noticed on my own because I am very comfortable with Linux.

1
fmstratreply
lemmy.nowsci.com

They do install less by default, but I'd love to pick their brain to understand what they meant. Oh well ¯_(ツ)_/¯

2
N.E.P.T.Rreply
lemmy.blahaj.zone

Linux just isnt transparent about some things. Beginners most have problems when they use a GUI tool and then have to still edit a file. Like dirt example, adding a new drive using GUI disk utility and then sometime in the future disconnecting the drive and being forced into emergency mode.

2

I'd suggest the KDE flavor of Debian, then. Its settings manager is divine, and its software management platform ties every other package management system in (apt/dpkg for Debian, yum for Redhat, pacman for Arch, plus flatpak, nixpkg, and even snaps if you absolutely must). By default starting in Plasma 6.0.

More to @fmstrat's point, and to suggest a possible cause your friend had that impression: if you install the Minimal flavor of any distro, you're going to get a minimal experience.

1

Uhh, that's a thing in any modern distro? I plug and unplug SATA drives all the time.

1
beengreply
discuss.tchncs.de

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?

2

Mostly the same, and if not all it has taken for me to figure it out was searching "fedora $pkgname"

4

You can get Gnome on Fedora. It won't have Apt.
Packages will have a different naming scheme based on the maintainers' preferences, even between Debian and Ubuntu (though those are usually pretty minor).
Your muscle memory is gonna trip you up for a while though.

1
lemmy.world

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).

14

Just wait for snap 2.0 which actually runs everything inside docker containers /s

4
lemm.ee

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

12

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.

1
lemmy.ml

I battled that for about a year and then ditched Debian based diatros altogether.

OpenSUSE ftw

9

You could have gone pure Debian. There are no snap shenanigans over there :)

OpenSuse is also a great pick tho!

7

This isn't Debian's fault! It's purely an Ubuntu/Canonical problem. Debian's only apt by default, no snap.

1

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

7
Petter1reply
lemm.ee

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 🤣

4

Maybe it was that i had to install the snap version (or maybe flatpak?) and uninstall theirs, which fixed the crashes. I thought it was a hardware issue for awhile because it was so random.

1

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

2
lemmy.ml

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.

7
Scrollonereply
feddit.it

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

5
Scrollonereply
feddit.it

They're slower than a native app, and they don't integrate as well with the rest of the system.

2

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.

4

I've had it happen too. In fact it is what prompted me to move away from Kubuntu.

6

They have been doing this for a while.

Would recommend you to stick to MX,Mint or if you care only about stability and not Updates debian.

5

My work cannot manage permissions well so I cannot remove snap Firefox cos its in use by another user.

Meanwhile current snap version of Firefox is crashing on my profile

5
lemmy.world

Is KDE Neon still broken? For awhile it was the only Ubuntu based distro I'd recommend. Yes, I know about Mint but no HDR or Wayland.

3

I'm reasonably happy with XFCE/Xubuntu - it's not as slick of a desktop as KDE or Gnome, and in some ways that's a great thing.

2
feddit.org

Have you correctly set your apt preferences? I didn't have any issues anymore since I've done that.

1

I'm sure that I've set the apt preferences according to Mozilla's article. I'll have to wait and see until a new update arrives to Firefox.

1

You could compile it from source yourself, and you won't even have to worry about packaging and package managers.

-1