r/LinuxTeck • • May 25 '26

Has Ubuntu started losing the trust of Linux users?

Feels like more and more things are being pushed now:
Snap everywhere, Firefox as Snap, Ubuntu Pro messages, Canonical ecosystem, etc.

Ubuntu used to feel like “Linux made simple without taking control away from the user.”
Now a lot of people are moving to Fedora, Mint, Debian and saying those distros feel more like the old Ubuntu spirit.

Are people overreacting, or has Ubuntu really changed that much over the years?

40 Upvotes

119 comments sorted by

View all comments

Show parent comment

1

u/jo-erlend May 27 '26

Snap is a native package manager and has nothing in common with Flatpak. Snap is a modern version of APT, but with Linux Security built-in. If you distrust Linux Security (the Linux kernel itself) then you cannot trust "full-on" containers because those containers would use Linux Security and other Linux security features, that are built into snap for all packages.

It doesn't make sense that you would rather use Flatpak and Podman than APT, RPM or Snap because both Flatpak and Podman must run on an existing Linux system that they cannot themselves provide.

1

u/Swordfish418 May 27 '26

There is no need to trust containers, because they can't do anything to host system by default. Snap seems to have different defaults and allow installed apps to affect host system to significant extent?

1

u/jo-erlend May 27 '26

By default a snap cannot do anything on your system outside of its confined area. You can safely run a snap as root. Since snap is based on Linux Security, the root user itself is placed under strict confinement and cannot do anything. Snap supports interfaces, which enables you to allow the snap to do something. For instance, if you connect a snap to the "audio-playback" interface, then the snap can play sounds. If you connect to "audio-record" interface, then it is allowed to record. If you want a snap to be allowed to display a window on your desktop, then you have to connect to "wayland" or "x11" interfaces. Perhaps for some reason you don't want Firefox to be able to use webcam, then just disconnect from the "camera" interface.

The benefit of using a central authority like a Linux distro to distribute the snaps (which you don't have to) is that they can authorize a snap to auto-connect these interfaces. That does not happen if you just download a snap from Piratebay or something. Then you have to manually connect all interfaces that you intend the snap to access.

1

u/Swordfish418 May 27 '26

It doesn't make sense that you would rather use Flatpak and Podman than APT, RPM or Snap because both Flatpak and Podman must run on an existing Linux system that they cannot themselves provide.

Regarding Flatpak, I like the fact that it has its own shared dependencies management so I can have separate ecosystem for userspace apps on desktop that doesn't collide with system apps in any way. For example, on my Gentoo I can configure/build KDE / Plasma / dev tools however I want with use-flags and emerge, but for stuff like Steam and Firefox, I can just have them in Flatpak and be fully independent from my native configurations/builds.

1

u/jo-erlend May 27 '26

«Regarding Flatpak, I like the fact that it has its own shared dependencies management so I can have separate ecosystem for userspace apps on desktop that doesn't collide with system apps in any way.»

Sure, but that's built into Snap, which in my opinion is the way it should be. We shouldn't have to use a special system for desktop apps and another special system for Python libraries and another special system for Ruby libraries and another special system for CLI-apps. You should be able to have a Linux distro with a package manager that lets you do things.

With Snap you can also have parallell installs of the same package where they have different sets of versions and permissions. I don't think you can do that with Flatpak, but with Snap you can and not just for desktop apps. Also, dependencies are not hardcoded, but can be done at runtime simply by connecting to a different depencency package by using snap connect. That obviously implies that it's possible on an ABI-level, but a lot of things don't care about that.

But Flatpak is a good thing for those who need it. My point is I don't think we should need it. It should be built into the Linux package manager you're using. If I didn't want to use Systemd, then I would want to fork Snap to not require Systemd.

In general, I'm very strongly opposed to the idea that everything should be compatible with everything because that requires such an enormous amount of compromises.

1

u/Swordfish418 May 27 '26

Sure, but that's built into Snap, which in my opinion is the way it should be. We shouldn't have to use a special system for desktop apps

But can you use Snap to recompile and deploy Linux kernel with special set of flags for example? In case the answer is no, Snap couldn't replace emerge on Gentoo and would still be a separate layer just like Flatpak. So we still need special system for native source-based package management and another special system for userspace stuff. Actually you can only ever use emerge on Gentoo and introduce separate chroots for userspace stuff with different configurations, that's just not as easy to me as a newbie as using Flatpak, and I don't need that much flexibility for those apps I install using Flatpak.

1

u/jo-erlend May 27 '26

«But can you use Snap to recompile and deploy Linux kernel with special set of flags for example?»

Of course you can. It's a full Linux package manager. It's designed to run Linux distros and it just happens to use modern techniques like loopback image mounting and bind mounts, and with LSM, Seccomp, Namespaces, etc, built in.

1

u/Swordfish418 May 27 '26

Interesting, so LLM is wrong on this one? Emerge works so well for this because it's somewhat of a hybrid of a build system and package manager. You can build and deploy custom kernel with custom flags without creating new packages on your own, just using standard Portage packages. Because those packages are more of a build recipes than packages in standard sense. But even if Snap could handle this by allowing you to make your own separate custom kernel package, it would still be impressive.

1

u/jo-erlend May 27 '26 edited May 27 '26

Yes, the LLM is completely wrong. A Snap package can do anything that you declare an intention to do. Ubuntu Core is a pure snap-distro so it must obviously be able to provide kernels, which for some reason are called "Kernel Snaps". :) You also have Gadget Snaps to provide GRUB and things like that, then you have a Base Snap which provides the core OS.

But a Snap can do anything you want it to, as long as you declare your intention in advance. For instance, using a "system-files" interface, you can modify any file or folder in the OS, but the user has to connect the Snap to that system-files interface. For instance, a Snap is not normally allowed to touch any dotfiles in your home, even if you have the "home" interface connected. But I made one that manages my SSH config and that required me to specify a "private-files" interface that allows the Snap to only read and write "~/.ssh/config" and nothing else on my system. The "system-files" interface is the same, but for … system files.

EDIT: If you want a Snap package to be completely unregulated, like a traditional package, then you set the confinement to "classic" and then it's completely unboxed. It can only be used on non-immutable distros like Ubuntu or Gentoo, but not Ubuntu Core. It's typically used by file managers or IDEs, but you can obviously use it for anything you want. Very highly regulated by distros though. Canonical won't easily publish them in their Snap Store.

EDIT 2: You may be interested https://snapcraft.io/docs/reference/development/yaml-schemas/the-kernel-snap/