Hacker News new | ask | show | jobs
by u10242 1709 days ago
And Firefox is a snap package now; the .deb will go away next release.

Canonical finally managed to make me switch back to Debian.

8 comments

As someone whose only experience with linux is servers and Raspberry Pi, can you tell me what's wrong with snaps? I've only used them on a self-hosted NextCloud and my experience with them has been decent, but I see a lot of dislike for them on HN.
There's pros and cons. It helps developers because they aren't restricted to the distro's shipped library versions, they can build against what they need. It also confines the app to a sandbox. The downsides are that the packages end up larger because they ship with all of the necessary bundled libraries (which can also increase memory usage of the application because it can't share the libraries loaded in RAM by the native operating system), and there's a lack of trust that the developer can keep up with bundled library security updates.
Also I think snap is an Ubuntu thing vs flatpak and appimage which are more distro agnostic. That's my issue with it/Ubuntu. They are doing good things, but at the same time I don't feel they are as "open" as other linux distros.

Also, snapd is installed by default on their servers and it's not as to remove as it should be.

This is one of the reason that I will always choose a different distro if I have the choice.

Snap is available for many distros https://snapcraft.io/docs/installing-snapd

It's great Canonical pays all the huge costs of Snap servers and bandwidth. I could not afford to host all that myself.

Does its sandbox work yet on distros that don't use apparmor? Last time I checked, snap apps were essentially unconfined on Fedora, and sandboxing is one of snap's most important selling points.
You have skipped quite a few downsides. Anyway, the biggest one is that what was previously an app is now a separate environment that is sometimes hard to control. If I wanted to run an app in a sandbox, I would have run it in a sandbox. People have run into all possible problems with snaps in the past, it has been discussed on HN ad naueseam [0] [1].

[0] https://news.ycombinator.com/item?id=24383341

[1] https://news.ycombinator.com/item?id=24129208

> Anyway, the biggest one is that what was previously an app is now a separate environment that is sometimes hard to control. If I wanted to run an app in a sandbox, I would have run it in a sandbox.

I see sandboxing as a major upside. Users expect sandboxing by default nowadays. Some game they downloaded shouldn't be able to intercept your online banking browser session. Yet, in the traditional Linux desktop model, they can.

Having app sandboxing by default is long overdue. Not having it makes the environment a second class citizen for user safety and security when compared to iOS and Android, for example.

In theory, if snap was mature software and had no other issues, this could work well. In practice, many people have problems.
> The downsides are that the packages end up larger because they ship with all of the necessary bundled libraries (which can also increase memory usage of the application because it can't share the libraries loaded in RAM by the native operating system), and there's a lack of trust that the developer can keep up with bundled library security updates.

This has basically been happening with browser debs anyway. Browser upstreams bundle their libraries, and distributions have increasingly been unable to unbundle them.

Background daemon that takes up CPU, proprietary store, slow startup, and automatic updates in the background. Flatpak is much better if you need some sort of sandboxing, or updates outside what your distro can provide.
Automatic updates are great, when I release security fixes like new Node.js version to Wekan https://wekan.github.io . It has worked well for me for many years.

Update install is very fast, with very small downtime, automatic database schema upgrades, etc.

Sandboxing is great, code can not write outside of app's own writeable directory.

Does Flatpak have any kind of automatic update ability?

Or is there any automatic update ability for some other package system on Linux/Windows/Mac ? Is Snap the only one?

Automatic updates are great until they kill your running app [1]. Flatpaks can be updated automatically through gnome-software or a cron job, but the user can decide whether to enable automatic updates. Snaps will forcibly update after 60 days even on metered connections.

[1] https://forum.snapcraft.io/t/disabling-automatic-refresh-for...

Yes, snap was what made move off Ubuntu on to PopOS.
My complaints (not looked real recently though):

Snaps are Ubuntu specific and the server side/repo is closed source.

Snaps pollute the df/mount points with per snap lines.

They rolled out in a LTS release with minimal testing. Caused quite a few problems like not being able to boot as multiple snaps drained /dev/random (instead of /dev/urandom) and waited on more entropy, which was god awful slow since the boot hadn't finished.

There was no automatic cleanup of older snaps.

Generally it just seemed like a silly proprietary setup that Canocial tried to claim had wide industry support, despite not having that support. I'm not against the ideas, but why not docker? Flatpak? AppImages?

> Snaps pollute the df/mount points with per snap lines.

My biggest complaint

Indeed, seems silly to list gimp, firefox, vlc, vscode, spotify, etc. Not to mention it's easy to end up with more than one of each.
I had some issues with one app not reading its config file, and wanted to strace it to see if it finds the config or not. Big surprise, cannot strace snap apps..
Is there an alternative source for non-snap Firefox? snapd is the first thing I nuke on fresh installs. I would like to stay with Ubuntu, if possible.
In the release notes (https://discourse.ubuntu.com/t/impish-indri-release-notes/21...):

The deb package remains available in the archive and will continue receiving updates for the lifetime of Ubuntu 21.10.

You can also use the Flatpak version:

https://flathub.org/apps/details/org.mozilla.firefox

Unfortunately the container breaks certain extensions (e.g. keepassxc-browser). And that's ignoring the fact that, at least on my machine, the flatpak fonts look terrible for some reason and I often run into issues with the Gnome theme not being properly inherited.

I've been using the Debian packages supplied by Ubuntuzilla (despite their being hosted on gag Sourceforge): https://sourceforge.net/projects/ubuntuzilla/

Try flatseal and see if you can tweak the permissions.

Re: terrible look, I face the same thing with Telegram (the mouse reverts to whatever is the default in Qt and ignores the system settings). I haven't been able to fix that.

This is what fixed the cursor for me (Linux Mint Cinnamon, HiDPI):

  sudo flatpak override --env XCURSOR_THEME=DMZ-White
  mkdir -p ~/.icons/default/cursors/
  cp -R /usr/share/icons/DMZ-White/cursors/. ~/.icons/default/cursors/
When installing distro, I usually remove some included packages and install newest Firefox, LibreOffice, Gimp, Inkscape etc from Flatpak, because Flatpak has newest versions. Many packages do not update .deb anymore, they have moved to Flatpak.
I had some weird performance issues. Tried it side by side and flakpak version ran significantly worse. Not sure why
I uninstalled the snap, then did apt install firefox, worked fine. In principle I am all in favor of more sandboxing for my browser, but when I opened FF on the machine I'd upgraded to Impish, it didn't import anything, open tabs, bookmarks, nada. Not what I'd call friendly onboarding...
Possibly getting Firefox from Debian Sid (unstable). Will require some advanced apt configuration to make sure that nothing else accidentally comes from sid, and might break or require further apt configuration changes if it starts requiring library versions that aren't in Ubuntu.

I use Ubuntu and I sometimes install Debian Sid packages by downloading them in a browser and installing them with dpkg.

Mozilla's own tarballs.
You can migrate to Debian if possible. Ubuntu was a derivative from it.
You can try Debian, from which Ubuntu was derived. No snap.
you can always just download it from the website, unpack it and make a .desktop file or put a symlink under ~/bin or whatever
As a 20+ years Debian user I've never seen the added value of Ubuntu. Why use a derivative if you can get the real thing?
First and foremost, package recency.

If you run stable, which is released as snapshots ala Ubuntu, the packages are ancient.

If you run testing, which is a rolling distro ala Arch, they're a lot newer and pretty solid, but security updates lag.

If you run unstable, which is also rolling, things can (rarely) break.

Additionally, Ubuntu has decided to incorporate non-free software and drivers right into the base product, which gives a better out-of-the-box experience. In Debian this is all opt-in and requires a bit more effort.

Now, I run Debian testing on my laptop, and I'm a huge fan of the distribution, not the least because Debian is the bedrock on which at least a half a dozen other distros are built. But I can acknowledge that their more conservative approach to packaging does have its downsides.

Exactly, Debian has you covered depending on your needs. I run Debian Stable on servers and Debian Sid on my desktop and laptop. Had 2 or 3 non-booting Sid systems over the course of 20 years, none or which weren't solved in 10 minutes after asking for help on IRC.

I doubt Ubuntu offers newer packages than my Debian Sid installation.

As for drivers and firmware etc as I've mentioned below I've installed a new state of the art desktop in recent weeks and everything simply worked. From the wifi to Bluetooth to the Nvidia gpu. I wouldn't call enabling the non-free repo "work" since it's just a question to answer during the installation...

> Exactly, Debian has you covered depending on your needs. I run Debian Stable on servers and Debian Sid on my desktop and laptop. Had 2 or 3 non-booting Sid systems over the course of 20 years, none or which weren't solved in 10 minutes after asking for help on IRC.

Oh sure, has Debian testing or unstable resulted in a non-booting system for me in the 15-20 years I've been using it? No. But that's an incredibly low bar to set. Issues absolutely pop up that, while not that catastrophic, remain problematic.

Just recently (like, in the past 2-3 weeks) the move from pipewire 0.3.36 to 0.3.37/38 broke bluetooth audio for me, which is a dealbreaker as I use a headset every single day for work. No idea why, but I had to go pull the previous package versions from /var/cache/apt/archives (thank goodness I didn't run a purge!), manually install them with dpkg, then pin them in my apt policy until the issue is fixed.

Similarly, the wifi drivers that ship with the kernel have periodically broken and worked again across major kernel versions.

These sorts of intermittent surprise issues are far less likely to happen with a snapshot distro due to the stability of the package set and the additional testing those snapshots undergo before being released.

The problem is the Debian snapshot distro is stable which, again, has an ancient package set.

Ubuntu strikes an interesting middle ground, giving you up-to-date packages that are vetted and then the whole distro is snapshotted which minimizes the potential for surprise breakage.

Now, again, I use Debian testing. I'm fine dealing with the intermittent issues that pop up. I know the system well enough to diagnose issues, manually downgrade packages if needed, pull things from sid if I have to, or even build packages by hand when absolutely necessary.

But that certainly isn't for everyone.

It works out of the box for most hardware, install proprietary things easily, including drivers and codecs, and have more up to date softwares. It also have lots of usability tweaks.

You can, have all that with debian, but then you have to do the work.

I don't want to do the work if canonical can do it for me.

I installed debian just a few weeks ago on my brand new desktop. AMD Ryzen 5800x, MSI B550 motherboard, MSI Nvidia RTX 3060 Ti. Everything worked, out of the box, without adding anything magical. Including Ethernet, wifi, Bluetooth and hardware accelerated graphics. Have been buying Nvidia gpu's since forever and their (proprietary) drivers have never let me down.

So I'm not sure what you're talking about. Also, more up to date software, I'm quite certain my Debian Sid has more recent versions of everything compared to what Ubuntu has.

Yeah, I've met those kind of comments for 15 years.

There is always somebody to say that in those kind of threads. Same as Vi is easy, try Manjaro, Nix, this latest implementation of LISP, that NoSQL db, this DSL, etc.

I used to give them the benefit of the doubt, spend some time testing the alternative the person talked about, came out disappointed, and wasted time.

Now I just trust numbers. When 100 people like you will tell me the same for 3 years, I will try.

Before that, I'll stay on what I know works.

I use Linux distributions since 1995, starting with Slackware 2.0, there is always someone that tells that.

Hence why I mostly run Linux on VMs nowadays, and Android/Linux.

Have you considered Fedora?

I recently moved from Arch to Fedora and I have all the same up to date vanilla packages without having to do any real work.

I tried so many distros. None of them fit the bill for a pro laptop.

I don't want to move out of ubuntu based distros, they get too many things right.

I'd rather try Elementary, Pop OS, Xubuntu, etc.

I have heard great things about PopOS but haven't tried it personally. Hopefully you find the right distro for you.
Go for it! Those are great choices, you'll do fine.
Ubuntu has a 10 year LTS support cycle and Debian has only 5 years.

While I often rebuild my servers much more frequently than that, it is nice to know that I could neglect things for a decade.

For Docker base image I use:

- If I use Debian, security scan at Quay.io shows included packages have vulnerabilities

- If I use Ubuntu, security scan at Quay.io shows included packages do not have vulnerabilities

In their mind it makes sense: firefox is a user facing app that is frequently updated and requires a lot of dependencies. Perfect candidate for a snap.

But yeah, up to now, snaps really sucked, and flatpak is winning.

Welcome back! I think it was 20.04 that really did it for me.

That being said, in general 21.10 looks like a good incremental update.

I've just completed apt upgrade -t testing on my pre-release impish. Good to be back again.
I don't notice a difference since upgrading from the deb to the snap.
> And Firefox is a snap package now

Oh, ouch!

Oh, snap!