Hacker News new | ask | show | jobs
by LukaD 4 days ago
I've never used Snap because I haven't used Ubuntu in ages. Is it so difficult to avoid Snap on Ubuntu, and if so, why not just ditch the distro?
5 comments

Ubuntu has generally been making it difficult to avoid for a while now (maybe 4+ years or so?)

The one I found most frustrating was that they made it a dependency of the 'minimal' metapackage, so in order to remove the snap package, you also have to remove the minimal package, which then tends to mean you need to manually massage a bunch of other things.

Although it should be noted that I think in more recent releases, the 'minimal' profile has morphed a bit, and I think Canonical intend 'minimal' to be used as a base for containers now, rather than a server OS.

But you can just leave it twiddling its thumbs in the background, I think it's more lightweight than it originally was.

The cluttering of "mount" output was pretty criminal last time I used Ubuntu without purging snap. If it still does that, I still want nothing to do with it.
It does, but also snaps are less than half of the output. A ton of other stuff also clutters it up, like 14 mount points under /sys/, 3 systemd entries, 4 different tmpfs, so on and so forth.

Back when I first switched to linux (Ubuntu 7.10), when there were only around 5-6 total entries.

The VFS is a powerful feature of modern operating systems. Not cluttering mount output is a weak reason for tools to shy away from using its features.

This isn't an opinion on Snaps though, to be clear.

I just looked at mount output on my simple Bazzite laptop - 38 lines.
They were ultimately the reason I tried Opensuse Tumbleweed, many years ago. I've never looked back.
After years of stressful years on Tumbleweed, the that a nob-critical Btrfs metadata corruption leads to single-user mode + their repair tool containing a bug worsening the problem + the high churn of a rolling distro has taken me straight to Ubuntu 26.04 LTS a couple of weeks ago.

I'm glad to see my OS finally be out of my way, and not having to stress about regressions on every update.

The churn leads to larger updates whenever you update, but in many years I had just one breaking update (issue on a modern laptop) that was fixed by booting the previous snapshot.
"years", really?
Yes, i could never get used to it. Was looking for a no hassle linux distro.

Got confused by their marketing saying that Tumbleweed is great for development, while i would likely have been better off with Leap.

But could never find the right time to reinstall my system. Until i was forced to by btrfs lol

Not that difficult but it does require some command line fiddling.
Ubuntu has quit shipping non-snap versions of what were standard desktop apps. This leaves you with funny issues, like a broken default Firefox installation that is not fixable, due to snap missing the knobs to do so. (compared to say a flatpak Firefox)
Not quite. The default apt meta package (the one that will install from snap) can be blacklisted and Mozilla's own repository added and installed from.

It is ridiculous that this has to be done, but it is possible.

Mint does this out of the box. Good option if you want the sane distilled good out of Ubuntu without the nonsense
I just install Firefox from Deb.
You can have it easier than that, there's an official apt repo with an official guide that just requires you to copy and paste a few things in a terminal. (You will need to know how to reactivate custom apt repositories after Ubuntu distro upgrades.)

https://support.mozilla.org/en-US/kb/install-firefox-linux#w...

If you mean you manually downloaded a deb then you might be fine.

If you did

    sudo apt install firefox
be prepared for a few surprises. Ubuntu basically hijacks apt to force snap on you.

snap as an alternative package distribution would have been ok, but what Ubuntu does just shows that you can't trust them.

Yeah my guy I know, the distro package is a shim that installs the snap. So one has to apt pin so the package doesn’t install, nuke all snaps, then install Firefox from a ppa or other repo. Been there done that.
I don't use Ubuntu so I'm out of the loop, but gosh, who in their right mind thought it would be a good idea? I would assume that your users shelling into apt know what they want and know what they are doing. That comes across as so malicious and unnecessary.
I used conda to do my initial Firefox install. From there it has been updating itself.
I tried removing it at one point and it was painful and broke things.
For now. Canonical appears to be slowly sinking snap's claws ever more deeply into Ubuntu. Nudging their users toward their proprietary app store is core to their business strategy. Their corporate messaging is trying to recast the decentralization of the Linux application ecosystem as a liability and extol Apple's model of a single, centrally controlled app store.
My fondest memory with snaps was when some package I was relying on turned out to be from a snap, which was installed on a forward deployed box we installed at a customer and managed remotely. That thing decided to auto-update (outside of apt get update), and nuked the ssh configs on the box, bricking the box, and making remote login impossible.

Fixing that was fun, and involved phoning up a non-technical person at the site, and having him connect an usb keyboard and monitor, and typing in hieroglyphics over a Teams call to log what happened, and then do a factory reset.

Snaps broke me and brought me to Debian. It's like Ubuntu without the suck!