News for hackers. Stuff that matters.
Re:Ubuntu stops shipping Flatpak by default by bayesian_horse on Wednesday March 29, 2023 @06:04AM (#35354945)
What you are really saying is you want all software developers to publish Debian packages (no such thing as "apt" packages) compatible with your particular Debian distribution, even though they might be using a different Debian based distribution, a completely different altogether, maybe even a different architecture, even though that compatibility isn't their primary concern.
Re:Ubuntu stops shipping Flatpak by default by wongarsu on Wednesday March 29, 2023 @06:21AM (#35355071)
The original model is that software developers don't package their software for distributions at all, at best they provide helper scripts that the distribution maintainers can use to do that. That's why distributions are typically either giant volunteer-run organizations like Debian or companies like RedHat or Canonical.
Re:Ubuntu stops shipping Flatpak by default by zorr on Wednesday March 29, 2023 @06:34AM (#35355165)
The problem with that model is that it puts the burden on the distro maintainers to package every possible application for their distro. And application developers have to essentially wait for each distro to repackage their app before it becomes available on that distro. Or start messing with alternate repositories for each distro they want to support.

The old model works for established software, but breaks down a little now that it becomes easier to write software applications.

Personally I use my distro packages for foundational stuff (DE, systemd, tools and utilities) but I use an alternative package manager (flatpak) for most other applications.

What Flatpak, Snap and AppImage try to achieve is to limit the packaging burden for both distro maintainers and application developers, so that end-user applications can become immediately available on a wide variety of distros.

Re:Ubuntu stops shipping Flatpak by default by dTal on Wednesday March 29, 2023 @06:44AM (#35355243)
AppImage is not like the other two, it is fundamentally just a way to make a self-contained binary directory into a single runnable file - a way to avoid having to tell the user to extract a tarball and run a particular file inside. Convenience, nothing more. The other two define entire alternate runtimes.
Re:Ubuntu stops shipping Flatpak by default by bionade24 on Wednesday March 29, 2023 @07:11AM (#35355459)
No, an Appimage still ships a dynamically linked executable + lots of dynamically linked libraries, that only link against system libraries when strictly needed, e.g glibc and libGL. Those files are bundled in a squashfs and have a script setting a custom LD_LIBRARY_PATH to the squashfs content for the binary. Snap does use this technique, too, but does more, for worse.

AppImages are not comparable with statically linked binaries.

Re:Ubuntu stops shipping Flatpak by default by dTal on Wednesday March 29, 2023 @07:41AM (#35355718)
You seem to be arguing against something I didn't say. The point is that the contents of an AppImage - "a dynamically linked executable + lots of dynamically linked libraries" - works just as well without all the squashfs backflips. If you can ship an AppImage, you can ship a regular ol' tarball with a binary named "RunMe" inside. The purpose of an AppImage is simply to condense such a tarball to a single runnable file, for convenience - nothing more.

Meanwhile, Snap and Flatpak are package managers - what's more, they're invasive heavyweights with permanent costs that are even worse than distro package managers. Snap permanently runs a daemon, and Flatpak requires you to run programs with "flatpak run" - yuck! They are both trying to impose some dubious vision of sandboxed apps that require bureaucracy to communicate with each other, instead of just tackling the core issue of software distribution.

Re:Ubuntu stops shipping Flatpak by default by Kinrany on Wednesday March 29, 2023 @08:19AM (#35356132)
> But I've seen no justification why that should be co-mingled with package management.

Building sandboxing on top of package management makes a lot of sense because you want sandboxing to work by default, and for that you need to identify the sandboxable things without making the user point to each one individually.

Re:Ubuntu stops shipping Flatpak by default by simon_o on Wednesday March 29, 2023 @09:00AM (#35356604)
> want sandboxing to work by default

Yeah, wake me up when Flatpak is remotely close to doing this. Most "apps" simply disable the sandbox.

Not to mention I'm not going to trust "app" developers setting their own permissions. That's the job of package maintainers.

Re:Ubuntu stops shipping Flatpak by default by bionade24 on Wednesday March 29, 2023 @09:41AM (#35357151)
Afaik they disable filesystem sandboxing, not process namespaces. Still better if programs can't ptrace around, although this is indeed a big issue.

If someone knows why this sandboxing is better/worse than SELinux or AppArmor access rules, can you pls elaborate? I'd really like to know.

Re:Ubuntu stops shipping Flatpak by default by simon_o on Wednesday March 29, 2023 @10:16AM (#35357616)
I'm not comparing sandboxing against SELinux/AppArmor. It's a social problem, not a technical one.

I'm comparing "app developers holding themselves accountable" to "package maintainers dish out consequences for misbehavior".

I have absolutely zero trust in the former, and lots of trust in the latter.

Re:Ubuntu stops shipping Flatpak by default by account42 on Wednesday March 29, 2023 @10:16AM (#35357629)
You don't need any fancy packaging to restrict ptrace: https://www.kernel.org/doc/Documentation/security/Yama.txt
Re:Ubuntu stops shipping Flatpak by default by Kinrany on Friday March 31, 2023 @08:39AM (#35386189)
What do you mean? If package developers don't specify permissions correctly, their code doesn't work when sandboxed.
Re:Ubuntu stops shipping Flatpak by default by bionade24 on Wednesday March 29, 2023 @09:39AM (#35357128)
First of of all, I don't like Snap or Flatpak. I'm only really interested rpm-ostree as used in Fedora CoreOS and Silverblue. I don't hate Appimages, you're claim that they're "fundamentally different" is just hypocritical.

> The purpose of an AppImage is simply to condense such a tarball to a single runnable file, for convenience - nothing more.

This still forces the user to learn the internals if the AppImage doesn't work. E.g. if MATLAB would use Appimage, I'd have to extract squashfs contents, fix the broken libraries inside and the repackage it. Or I would have to write a script to start the executable outside. It's a simpler from a pure technical standpoint when it's a tarball + wrapper script.

> Snap permanently runs a daemon, and Flatpak requires you to run programs with "flatpak run" - yuck!

Snap has many issues Canonical just refuses to solve (e.g. users without home under /home), so I just ignore that. What flatpak does is arguably exactly what Appimage does, a wrapper script. Maybe more complex, but with additional features and the it's the same script for all packages. If you have 100 AppImages installed, you have the same thing as "flatpak run" in up to 100 slightly different versions. I can't see how that reduces complexity.

Re:Ubuntu stops shipping Flatpak by default by PlutoIsAPlanet on Wednesday March 29, 2023 @10:15AM (#35357610)
> Flatpak requires you to run programs with "flatpak run" - yuck

To begin with Flatpak makes .desktop files so no one should be needing to use that command manually.

Secondly, Flatpak has an option folder you can add to your path that lets you run applications by running their FQDN. e.g. org.gnome.Gimp myFile.png rather than gimp myFile.png

Re:Ubuntu stops shipping Flatpak by default by the_why_of_y on Thursday March 30, 2023 @10:06AM (#35372911)
The problem with AppImage is that it doesn't tackle the core issue of software distribution: how to build the software so that it runs on all the systems you want it to run on.

Flatpak and Snap have SDKs for this purpose, but with AppImage an ISV is forced to guess which libraries need to be bundled and which may be dynamic link dependencies from the OS.

Not to mention the requirement for fuse2, which is being replaced with fuse3.

Re:Ubuntu stops shipping Flatpak by default by phkahler on Wednesday March 29, 2023 @08:04AM (#35355924)
>> The problem with that model is that it puts the burden on the distro maintainers to package every possible application for their distro.

That's kinda what the distros ARE. Also, if you're debian based and debian packages are not compatible with your distribution you're actively fucking something up for "reasons" - stop doing that.

If an app can't use a standard .deb or .rpm then the distro is doing something wrong. If dependency version management is too hard, someone is doing something wrong - not sure who, could be a library maintainer or an app maintainter. Let's not ship half an OS with every app to avoid this stuff.

Re:Ubuntu stops shipping Flatpak by default by veeti on Wednesday March 29, 2023 @08:38AM (#35356340)
Have you ever actually worked on distribution packaging? There is no such thing as a "standard" .deb or .rpm. Unless you're statically linking against distro policy they have dependencies on the particular version of the distribution they are built for.

You can't take a "standard" .rpm from the Fedora repositories and install it on CentOS. You can't take a .deb from Debian 11 and install it on Debian 10.

Re:Ubuntu stops shipping Flatpak by default by Nursie on Wednesday March 29, 2023 @08:50AM (#35356485)
> You can't take a .deb from Debian 11 and install it on Debian 10.

I mean, you can, if you also install its dependencies. And you may end up with a weird franken-system, but you can. You can even automate it and set preferred distros with pinning, it's how people run things like hybrid testing-unstable distros.

Re:Ubuntu stops shipping Flatpak by default by biorach on Wednesday March 29, 2023 @09:10AM (#35356722)
Yes, but the difficulty and franken-nature of the resulting system means that it's not for the faint of heart.
Re:Ubuntu stops shipping Flatpak by default by phkahler on Wednesday March 29, 2023 @09:18AM (#35356842)
So upgrade the whole thing. It's open source so in most cases that's possible.
Re:Ubuntu stops shipping Flatpak by default by PlutoIsAPlanet on Wednesday March 29, 2023 @10:11AM (#35357553)
You're shifting more work onto distros and users that shouldn't be work in the first place, and basically preventing non-linux literate people from using their OS.

If I install software on MacOS or Windows, I don't have to care if it was packaged for an older version etc, or that my distro may not package a dependency.

Re:Ubuntu stops shipping Flatpak by default by Nursie on Wednesday March 29, 2023 @10:56AM (#35358192)
Maybe you should, those dependencies may contain vulnerabilities.
Re:Ubuntu stops shipping Flatpak by default by diffeomorphism on Wednesday March 29, 2023 @12:55PM (#35359955)
> shouldn't be work in the first place.

It seems very much intentional. You could just keep multiple different, vulnerable versions around and keep everything working. Instead distros say "Nope. We support exactly one version. Update or die."

That is also why you have runtimes, grafting, support sunset,... . I agree that a different trade off makes much more sense for desktops. For servers though...

Re:Ubuntu stops shipping Flatpak by default by charcircuit on Wednesday March 29, 2023 @03:10PM (#35361809)
Most updates aren't security updates. Not all vulnerabilities in a library affect all consumers of that library. Distros don't have every library packaged. Distros often are not often willing shipping patched versions of dependencies. Distros often offer out of date versions of libraries.
Re:Ubuntu stops shipping Flatpak by default by diffeomorphism on Wednesday March 29, 2023 @05:14PM (#35363756)
No. The libraries are not "out of date" but intentionally static. These static foundations are what companies pay lots of extra money for with windows ltsc, red hat, oracle, SuSE etc.

> distros don't have every library packaged.

Exactly. And for those that are packaged they say "these are the versions we support. If you want to us to do the support work, use these". Again for stuff like windows ltsc that means I install version X now and want this to be supported for the next 5 years. If I instead install a consumer version of windows it means X will be out if support by then and I am expected to have upgraded to X+1, X+2, X+3 during these 5 years.

Case in point, Firefox has multiple current versions: 102 ESR and 111. Both get regular updates and neither is "out of date".

Re:Ubuntu stops shipping Flatpak by default by AnIdiotOnTheNet on Wednesday March 29, 2023 @09:17AM (#35356813)
That's the point though: this sort of thing is not ridiculous on most OSs. I should be able to use old versions of software (or new ones for that matter) without having to worry about causing my system to catch fire and explode.
Re:Ubuntu stops shipping Flatpak by default by phkahler on Wednesday March 29, 2023 @04:45PM (#35363319)
That just requires the ability to have multiple versions of a dll, or to install specific versions with an app, or to statically link. Lots of ways to deal with that, don't distributions support any of those options?

Oh, not all libraries support that. They need to...

Re:Ubuntu stops shipping Flatpak by default by planede on Wednesday March 29, 2023 @10:20AM (#35357684)
> I mean, you can, if you also install its dependencies.

You will very likely bump into conflicts. Or you you need to upgrade a lot of fundational libraries (like libc), at which point why stay on Debian 10?

Backports exist for a reason.

Re:Ubuntu stops shipping Flatpak by default by Nursie on Wednesday March 29, 2023 @10:55AM (#35358175)
You might, you might not!

Backports do indeed exist for a reason, I just felt like challenging “can’t”

Re:Ubuntu stops shipping Flatpak by default by Ferret7446 on Thursday March 30, 2023 @04:00AM (#35369507)
If you automate it and work out the kinks, you basically get flatpak.
Re:Ubuntu stops shipping Flatpak by default by phkahler on Wednesday March 29, 2023 @09:22AM (#35356910)
>> There is no such thing as a "standard" .deb or .rpm. Unless you're statically linking against distro policy they have dependencies on the particular version of the distribution they are built for.

If you're using a "Debian based" distribution, the "standard" .deb is the one shipping with Debian. If it doesn't work on the derivative distro, they are doing something wrong. Or like I said, maybe the dependencies are doing something wrong.

Re:Ubuntu stops shipping Flatpak by default by PlutoIsAPlanet on Wednesday March 29, 2023 @10:10AM (#35357544)
Find a deb packaged for an older version of Debian and see if it runs, there's no guarantee, if the software was closed-source you're basically out of luck, unless people statically link all of glibc, ssl etc into their application which is a big no no.

This is the problem that Flapak, Snap etc try and solve. I won't put AppImage onto that list because it actually doesn't solve the problem it just makes it worse.

Re:Ubuntu stops shipping Flatpak by default by tremon on Wednesday March 29, 2023 @11:07AM (#35358346)
So, Flatpak and Snap solve the problem of wanting to run stale software? That ought to be a very niche requirement, I would think.

I was under the impression that Debian already solved that problem by allowing you to deploy an older Debian version in a chroot with debootstrap? As long as the Linux kernel is binary compatible, that should work fine. Although I have to admit I don't use stale software that often, so I have little experience in that area.

Re:Ubuntu stops shipping Flatpak by default by zorr on Wednesday March 29, 2023 @11:25AM (#35358620)
They solve the problem of being able to run software against a known set of dependencies instead of depending on the versions that come with the distro. Older packages can still run even when the dependency version the distro provides has changed in a breaking way (as parent suggests), but also the other way, new packages can ship features using newer dependency versions that the distro might not have yet.
Re:Ubuntu stops shipping Flatpak by default by dizhn on Wednesday March 29, 2023 @11:10AM (#35358381)
Distrobox is an option too.
Re:Ubuntu stops shipping Flatpak by default by ninkendo on Wednesday March 29, 2023 @11:02AM (#35358281)
> Unless you're statically linking against distro policy they have dependencies on the particular version of the distribution they are built for.

The irony here is that we’re discussing flatpak/snap, which take the idea of static linking to the absolute extreme by doing something closer to a container where every dependency is part of the package. Maybe static linking being “against distro policy” is tossing the baby with the bath water by causing maintainers to reach to a much worse packaging method (snap) because the distro policy is just too obnoxious.

There’s no good reason you couldn’t just statically link (or relocatably copy) your dependencies into your .deb except the distro maintainers being purists. It would make the process of building a deb (or RPM or whatever) trivial because you’re using it as a dumb archive format for your build artifacts, similar to how a container works.

Re:Ubuntu stops shipping Flatpak by default by ranger207 on Wednesday March 29, 2023 @11:23AM (#35358586)
Static vs dynamic linking is the core of the packaging debate isn't it? Like, distro maintainers say that dynamic linking is better because it lets them swap out libraries underneath the app in case of like security vulnerabilities and stuff. Devs don't like that because inevitably minor version changes break stuff unexpectedly, plus devs prefer to use shiny and new libraries that distros often don't have. Containers were IMO primarily a packaging and deployment solution, and container-style package formats like flatpak and snap are efforts to force distros to use static linking and stop breaking the app's libraries. IMO distro maintainers should realize that their advantages in security aren't as useful as claimed, and their claimed advantages in distro coherence are only relevant to maintainers, not devs and rarely users.
Re:Ubuntu stops shipping Flatpak by default by JohnFen on Wednesday March 29, 2023 @02:21PM (#35361148)
As both a dev and a user, I prefer dynamic linking over static linking. Usually.
Re:Ubuntu stops shipping Flatpak by default by the_why_of_y on Thursday March 30, 2023 @09:41AM (#35372562)
Technically there is such a thing as a standard RPM, as specified by LSB.

https://refspecs.linuxfoundation.org/lsb.shtml

These are, of course, not distro packages, but ISV packages and most RPM features cannot be used.

Re:Ubuntu stops shipping Flatpak by default by mikae1 on Wednesday March 29, 2023 @08:12AM (#35356022)
> That's kinda what the distros ARE.

What things are can change, sometimes for the better. Imagine if distros maintainers could spend their time doing something more productive than doing the same work as hundreds of others are doing.

Re:Ubuntu stops shipping Flatpak by default by mulmen on Wednesday March 29, 2023 @08:24AM (#35356184)
But if hundreds of distro maintainers don’t do it then millions of users have to do it.
Re:Ubuntu stops shipping Flatpak by default by tapoxi on Wednesday March 29, 2023 @08:44AM (#35356420)
No, users don't do it. The application developers do it in their CI pipelines. Application developers should be the ones building and testing the app, not distro maintainers responsible for a dozen other applications.
Re:Ubuntu stops shipping Flatpak by default by moreresearchplz on Wednesday March 29, 2023 @09:28AM (#35356988)
Why should a developer of a free and open-source application, provided free of charge and without any guarantees, have any obligations to package and even test their software on random, thirdparty distributions?

If a distro wants to include their application they have every right in the world to do so. So its up to them to do what ever is necessary to enhance their product with the freely available product of the unpaid developer who created it.

Re:Ubuntu stops shipping Flatpak by default by esarbe on Thursday March 30, 2023 @09:59AM (#35372821)
That's the point of flatpaks - you don't.

You build one flatpak and it will work for all distributions.

Re:Ubuntu stops shipping Flatpak by default by prmoustache on Wednesday March 29, 2023 @09:23AM (#35356917)
History has shown that application developers are very bad at releasing good deliverable without too much security holes in the packaged libraries or bad practices. And the sandboxing in flatpak is actually meant to protect users from harm done by clueless devs but it fails because devs can actually build non sandboxed flatpaks and they will do it because they don't care
Re:Ubuntu stops shipping Flatpak by default by doublepg23 on Wednesday March 29, 2023 @10:28AM (#35357792)
Why would you use software if you think the dev is too incompetent to package it?
Re:Ubuntu stops shipping Flatpak by default by tremon on Wednesday March 29, 2023 @11:09AM (#35358375)
Because I trust that distro maintainers catch the most obvious errors before packaging and releasing the software.
Re:Ubuntu stops shipping Flatpak by default by ninkendo on Wednesday March 29, 2023 @04:14PM (#35362788)
Package it for what? There are a lot of distros. Should the dev be packaging it for every one of them? Debian, red hat, suse, arch, other more esoteric ones? Which distro versions? How many years back should they be maintaining the packages?
Re:Ubuntu stops shipping Flatpak by default by doublepg23 on Friday March 31, 2023 @12:05AM (#35382413)
…the context was Flatpaks and snaps which directly address it by simplifying the process… the developer would explicitly avoid that confusion.
Re:Ubuntu stops shipping Flatpak by default by curt15 on Wednesday March 29, 2023 @11:11AM (#35358418)
How often do distribution maintainers actually audit the package source code?
Re:Ubuntu stops shipping Flatpak by default by prmoustache on Thursday March 30, 2023 @05:23AM (#35370073)
I wasn't talking about audit but dependency lifecycle.
Re:Ubuntu stops shipping Flatpak by default by ranger207 on Wednesday March 29, 2023 @11:31AM (#35358694)
History has shown that distro maintainers aren't perfect at patching security vulnerabilities either and that sandboxing is useful regardless. It also shows that user want working software and will go through the effort of inventing new package formats like flatpak to work around distro maintainers. Maintainers now have a choice between complaining that everyone else is doing it wrong and eventually becoming irrelevant, or getting with the program and maybe even offering their expertise to accomplish what people want to do
Re:Ubuntu stops shipping Flatpak by default by prmoustache on Wednesday March 29, 2023 @03:50PM (#35362401)
Flatpak hasn't been invented by users but by distro maintainers.
Re:Ubuntu stops shipping Flatpak by default by dizhn on Wednesday March 29, 2023 @11:11AM (#35358405)
You can't have distro specific policies using this methodology.
Re:Ubuntu stops shipping Flatpak by default by mulmen on Wednesday March 29, 2023 @03:42PM (#35362286)
It’s called a distribution. Literally distributing the software. The distro deals with integrating all the packages into a single compatible system. This includes setting options to maintain system compatibility.

Packaging is not required for testing individual applications. That happens at build time and the developer writes the tests. These ate not distribution specific.

The separation of concerns is very clear. If a distribution doesn’t package the code then the user is left to build the application themselves. It’s impractical that a developer would build and maintain their own packages for every flavor of every distribution.

Re:Ubuntu stops shipping Flatpak by default by zorr on Wednesday March 29, 2023 @05:10PM (#35363712)
The discussion is mostly about what a distribution should contain. I don't think a distribution has to contain all the possible software applications in existence.

Instead, I think distros have to provide the base packages like desktop environments and related software. All configured for compatibility and complying with the distro philosophy.

But third party desktop applications that are not directly related to the desktop environment are a different category. There is an endless amount of them with varying quality and resources. You cannot expect distro maintainers to spend time on all these random applications.

However, if a third party app is not included in a distro, it does not mean users have to build the software by themselves. That is the problem that Flatpak and Snap and others are trying to solve. They provide sets of distro-agnostic libraries that developers can target instead of having to target each distro separately.

This way a developer can only package the app once, distro maintainers don't have to do extra work, and users can install applications without having to manually configure and build them. Everyone is happy.

Re:Ubuntu stops shipping Flatpak by default by mulmen on Wednesday March 29, 2023 @06:28PM (#35364755)
That’s a reasonable position but it puts developer experience ahead of user experience.

Flatpak and friends are a pain in the ass to use and offer a shitty UX. Having a single point of contact and well understood mechanism for software management is a feature for users.

I don’t expect my distribution to have every software package ever. I do expect it to fulfill my needs. As long as there are applications in the repository that do what I need I am happy.

Re:Ubuntu stops shipping Flatpak by default by matheusmoreira on Wednesday March 29, 2023 @07:48PM (#35365642)
No. I trust distribution maintainers a lot more than I trust other developers.
Re:Ubuntu stops shipping Flatpak by default by vinyl7 on Wednesday March 29, 2023 @08:36AM (#35356310)
Arch Linux would like to have a word
Re:Ubuntu stops shipping Flatpak by default by lapinot on Wednesday March 29, 2023 @08:47AM (#35356460)
This. Also void and alpine. Which have simple, no-nonsense package formats. We get it that deb and rpm are a hassle to learn and write, but it's completely a false dichotomy to say snap or flatpak are the only alternative. In fact they push a widely different model of software distribution, one that completely destroys "user unions" which is a crucial aspect of what distributions are.
Re:Ubuntu stops shipping Flatpak by default by vetinari on Wednesday March 29, 2023 @08:58AM (#35356576)
> We get it that deb and rpm are a hassle to learn and write,

They solve problems that arch/pacman didn't start even thinking about. Like reliably updating an installation, that wasn't kept in a tight loop with the upstream repo.

> false dichotomy to say snap or flatpak are the only alternative

we are slowly moving into the world of immutable base systems, like fedora silverlight for example. The last thing you want is for a random app package to modify your base system. Separating system and apps is a good thing.

Re:Ubuntu stops shipping Flatpak by default by mestelan on Wednesday March 29, 2023 @10:17AM (#35357637)
silverblue ;-)
Re:Ubuntu stops shipping Flatpak by default by vetinari on Wednesday March 29, 2023 @10:52AM (#35358131)
you are right, brainfart ;)
Re:Ubuntu stops shipping Flatpak by default by wootland on Wednesday March 29, 2023 @02:14PM (#35361059)
> They solve problems that arch/pacman didn't start even thinking about. Like reliably updating an installation, that wasn't kept in a tight loop with the upstream repo.

So they've decided to degrade the baseline UX because they want to optimize for people who don't keep their system up to date? As someone who has no problem keeping my system fresh, this isn't a use-case I want prioritized in my package manager.

> we are slowly moving into the world of immutable base systems, like fedora silverblue for example. The last thing you want is for a random app package to modify your base system. Separating system and apps is a good thing.

The "last thing I want" is a package manager that's invasive to use, doesn't have the latest software and is slow. Immutable systems can be a nightmare to actually use. Wrote your own software? Copying to /usr/local/bin is no longer an option, hope you like packaging up your one-off tool!

Re:Ubuntu stops shipping Flatpak by default by vetinari on Wednesday March 29, 2023 @02:33PM (#35361303)
> So they've decided to degrade the baseline UX because they want to optimize for people who don't keep their system up to date? As someone who has no problem keeping my system fresh, this isn't a use-case I want prioritized in my package manager.

So, they decided that the update path is always defined, from any state to the latest, without having to update the packages in specific order, where some steps needed may disappear. You know, being robust.

If the year of linux desktop has to happen, not borking the system during updates is a requirement. You don't have a problem with daily updates? Congratulation, but your grandma probably has.

> mmutable systems can be a nightmare to actually use. Wrote your own software? Copying to /usr/local/bin is no longer an option, hope you like packaging up your one-off tool!

Immutable system does not prevent writable /usr/local/bin. Your one-off tool has no business messing with /usr/bin or /usr/lib.

Immutable systems are also minimal; they don't care about your additional software, as it is separated from the base system. You can update your software at any pace you want; nightlies if you want. It just cannot touch anything in /usr (with /usr/local being exception).

Re:Ubuntu stops shipping Flatpak by default by wootland on Wednesday March 29, 2023 @02:43PM (#35361438)
I actually don't want a package manager tuned for "my grandma" (the white whale of the linux community). I'm a professional dev, Arch perfectly suits my needs where as Flatpak/Snap... cause excruciating pain every time I'm forced to interact with them (something I go out of my way to avoid at this point).

> Immutable system does not prevent writable /usr/local/bin.

I can't speak to the others, but Nix most definitely does not make /usr/local/bin writable. You have to package up your tools to use them.

Re:Ubuntu stops shipping Flatpak by default by vetinari on Wednesday March 29, 2023 @04:51PM (#35363427)
> I'm a professional dev

So you have particularly skewed perspective; you should try a bit of operations, or at least devops, to normalize it.

> Arch perfectly suits my needs

Good for you. You just need to realize that you are minority. Do you notice that Arch is not the dominant distro? There's a reason for that.

> where as Flatpak/Snap... cause excruciating pain every time I'm forced to interact with them

You are holding it wrong ;)

> but Nix

Nix is not exactly a typical immutable system; it has strong opinions about many things, that other systems don't. You can't evaluate other systems through assuming they are like nix.

Nowadays, even MacOS is immutable and people live with it just fine.

Re:Ubuntu stops shipping Flatpak by default by wootland on Wednesday March 29, 2023 @05:00PM (#35363550)
> So you have particularly skewed perspective; you should try a bit of operations, or at least devops, to normalize it.

I didn't say that you should use Arch on the server, but it's great for the desktop.

You can refer to this entire thread to see how well Flatpak/Snap... are working out. Pretty much universally reviled by developers (people who actually use Linux on the desktop).

Re:Ubuntu stops shipping Flatpak by default by vetinari on Wednesday March 29, 2023 @05:14PM (#35363761)
> I didn't say that you should use Arch on the server, but it's great for the desktop.

And I said that apt/dnf solve problems that pacman didn't start thinking about yet. So we are in agreement here.

Flatpak seems to be working out pretty fine.

> Pretty much universally reviled by developers (people who actually use Linux on the desktop).

Two things:

1) Reviled by some very conservative types, often not willing to consider things from different perspective than what they are used to. If they would build the desktop, it would end up like Homer's dream car.

2) Don't you think that it is a problem when only developers use the desktop as it is? (Not really true, but let's consider that for the sake of argument).

Re:Ubuntu stops shipping Flatpak by default by wootland on Wednesday March 29, 2023 @05:37PM (#35364102)
> 1) Reviled by some very conservative types, often not willing to consider things from different perspective than what they are used to. If they would build the desktop, it would end up like Homer's dream car.

I would consider my self non-conservative to the extreme, which is exactly why I don't like Snap since it's built out of fear of problems that I simply don't have. I want the latest versions of any given piece of software and I want my package manager to be performant. I don't think those are conservative values.

> 2) Don't you think that it is a problem when only developers use the desktop as it is? (Not really true, but let's consider that for the sake of argument).

I don't think developers having a great computing environment is a problem at all, quite the opposite. I think it's very desirable and I think efforts that hamper that for the mythical "grandma" are indicative of the core UX problems that plauge the "desktop linux" community.

Re:Ubuntu stops shipping Flatpak by default by CoolCold on Thursday March 30, 2023 @02:51PM (#35377297)
People who actually use Linux on the desktop en masses is Chromebook users. Immutable OS is just fine as we see, let's people reach their goals.
Re:Ubuntu stops shipping Flatpak by default by KyeRussell on Wednesday March 29, 2023 @08:14AM (#35356061)
Ah, a bunch of “you’re holding it wrong”s, completely devoid from reality. This certainly is an argument about Linux.
Re:Ubuntu stops shipping Flatpak by default by zorr on Wednesday March 29, 2023 @11:16AM (#35358489)
> That's kinda what the distros ARE

For the base system and libraries, yes. But why should the distro maintainers be burdened with additional work for every possible enduser application out there? If I write a GTK app and want to make it available for Ubuntu/Debian users through official repositories, I need to make sure it gets added to the official package list, and every time I make a new release, someone else somewhere else has to do additional work just to repackage the application so it is available in the repository.

Maybe a far-fetched analogy, but imagine if browser maintainers have to perform additional work every time a new website launches before it is available to its users.

Also, in this system, the application developer has a lot of extra work for making the application run and build against older versions of its dependencies. If I want to make my app available for Ubuntu 22.04 LTS which has libadwaita 1.1, I cannot use any of the new widgets in libadwaita 1.2 (released 6 months ago) or 1.3 (released earlier this month). I can use those widgets but I'll have to write ifdefs and provide fallback behavior/widgets when building/running against these older versions. I will also have to manually track the various distro versions to detect when I can remove the fallbacks from my codebase.

This is what Flatpak is for. Using Flatpak I can target a specific GNOME SDK version and make use of all the new code immediately, without having to write fallbacks. The downside is that when a user downloads my application through Flathub or another Flatpak repository, it might have to download the additional libraries as well, but they will be the correct versions and they won't be downloaded if that SDK is already available due to other Flatpak applications already installed.

Essentially, something like Flatpak is a middle-ground solution that trades of some disk space for the benefit of less work for distro maintainers (so they can focus on core packages) and less work for application developers (that can use more recent dependency versions and don't have to worry about the versions in other distro's)

Re:Ubuntu stops shipping Flatpak by default by JohnFen on Wednesday March 29, 2023 @05:21PM (#35363886)
> If I write a GTK app and want to make it available for Ubuntu/Debian users through official repositories, I need to make sure it gets added to the official package list, and every time I make a new release, someone else somewhere else has to do additional work just to repackage the application so it is available in the repository.

Yes, and that's a good thing for a whole bunch of reasons.

If you don't want to leave it up to the distro maintainers, nothing's stopping you from standing up your own repo to distribute your software to a particular distro. It's a one-liner for users to add your repo to their list so they can use their package manager to install and update your software as usual.

> Essentially, something like Flatpak is a middle-ground solution

Yes, I get that it's convenient for maintainers. But it kinda sucks for users (at least for me), which is why I avoid using software packaged that way.

I'll give flatpack this much credit, though -- it's not a nightmare like snaps are.

Re:Ubuntu stops shipping Flatpak by default by wander_homer on Thursday March 30, 2023 @01:54AM (#35368615)
> Yes, I get that it's convenient for maintainers. But it kinda sucks for users (at least for me), which is why I avoid using software packaged that way.

My browser, mail client, rss reader, music player, video player, image viewer, steam, ... all have been working incredibly well as Flatpaks. I also get free sandboxing for all of them, so for example Steam and its games, don't have access to my ssh and gpg keys or documents.

The only applications which don't work that well with Flatpak are things like my IDE or file manager.

Re:Ubuntu stops shipping Flatpak by default by panick21_ on Wednesday March 29, 2023 @02:51PM (#35361547)
> That's kinda what the distros ARE.

Yeah but that the worst part of what they ARE and if they didn't have to spend so much time doing that maybe they could do more innovative things.

Re:Ubuntu stops shipping Flatpak by default by calvinmorrison on Wednesday March 29, 2023 @10:41AM (#35357986)
> The problem with that model is that it puts the burden on the distro maintainers to package every possible application for their distro.

You know, that was never a problem when we had to package the other 500000 packages available in debian, just when users want seemingly popular packages updated more than once per decade. Firefox for starters.

Re:Ubuntu stops shipping Flatpak by default by JustSomeNobody on Wednesday March 29, 2023 @11:04AM (#35358308)
> The problem with that model is that it puts the burden on the distro maintainers to package every possible application for their distro.

That's ... kind of the job of a distro maintainer.

Re:Ubuntu stops shipping Flatpak by default by wander_homer on Wednesday March 29, 2023 @11:34AM (#35358748)
Can you name one distribution which isn't severely understaffed?
Re:Ubuntu stops shipping Flatpak by default by JohnFen on Wednesday March 29, 2023 @02:19PM (#35361124)
> The problem with that model is that it puts the burden on the distro maintainers to package every possible application for their distro.

But isn't that the primary job of a distro?

Re:Ubuntu stops shipping Flatpak by default by zorr on Wednesday March 29, 2023 @03:10PM (#35361805)
For base packages like desktop environments, tools, libraries, popular applications, etc, yes. But I don't think they should be responsible for every end-user third party application. It's a massive waste of time for everyone involved.
Re:Ubuntu stops shipping Flatpak by default by JohnFen on Wednesday March 29, 2023 @05:01PM (#35363568)
I think they should be responsible for the packages in their package manager. That's the main thing that distros do.

For software that they can't do this with, or that isn't worth their time, they just omit it from the package manager.

Re:Ubuntu stops shipping Flatpak by default by CoolCold on Thursday March 30, 2023 @03:07AM (#35369126)
I feel one day you will make step further and join me on Windows desktop path:)
Re:Ubuntu stops shipping Flatpak by default by tpoacher on Thursday March 30, 2023 @02:05PM (#35376745)
> And application developers have to essentially wait for each distro to repackage their app before it becomes available on that distro.

Nonsense. Developers can do their thing, and distro maintainers can do theirs. The two have very different priorities and goals.

I'm perfectly happy downloading the latest version of hip package X directly from the developer's website while relying on distro packages for all the boring, stable stuff.

The whole "it's either all hip or all boring" is a false dichotomy.

Re:Ubuntu stops shipping Flatpak by default by Klonoar on Wednesday March 29, 2023 @06:30AM (#35355135)
This model doesn't necessarily work for software that developers don't want others shipping for them.
Re:Ubuntu stops shipping Flatpak by default by dTal on Wednesday March 29, 2023 @06:38AM (#35355195)
Setting aside that those developers are not good team players / open source citizens, they always have the option to ship a regular tarball with everything inside, a la Blender / Firefox / VSCode / Arduino etc...

I resent having to install and maintain another package manager, and another set of base runtime libraries. I won't do it. Give me standalone binaries, give me source that compiles, but don't give me a link to some third party app store thingy.

Re:Ubuntu stops shipping Flatpak by default by attractivechaos on Wednesday March 29, 2023 @08:34AM (#35356292)
I wish all software could provide portable binaries. However, compiling portable binaries is hard. Not many developers have the skill.
Re:Ubuntu stops shipping Flatpak by default by dTal on Wednesday March 29, 2023 @09:45AM (#35357207)
Indeed. This seems like a tooling issue, and one that strikes me as more worthy of community attention than reinventing the package manager for the nth time.
Re:Ubuntu stops shipping Flatpak by default by veeti on Wednesday March 29, 2023 @09:52AM (#35357291)
Yes, and once we have the tooling to build portable .tar.gz application packages someone should come up with a tool to automatically upgrade them.
Re:Ubuntu stops shipping Flatpak by default by dTal on Wednesday March 29, 2023 @10:20AM (#35357683)
Perhaps. Extrapolating the idea that .tar.gz application packages should be standalone, a better system than an external updater might be that the aforementioned build tooling includes an "update" script inside the .tar.gz. Then the user can run them at their own convenience. This is similar to how Firefox's updater works, except Firefox itself does double duty as the update script.
Re:Ubuntu stops shipping Flatpak by default by erik_seaberg on Wednesday March 29, 2023 @03:39PM (#35362230)
I prefer a binary more willing to interop with the system it’s installed on, rather than the statically linked black boxes we see on end user desktop platforms.
Re:Ubuntu stops shipping Flatpak by default by Klonoar on Wednesday March 29, 2023 @04:25PM (#35362975)
>Setting aside that those developers are not good team players / open source citizens

...yeah, no.

Open sourcing your code doesn't mean you necessarily want people packaging it up for distribution elsewhere, because when they inevitably fall behind the release schedule and people get on old versions, you are often the one who gets the support triaging work. It is entirely reasonable to not want other people doing this.

Re:Ubuntu stops shipping Flatpak by default by koolba on Wednesday March 29, 2023 @06:31AM (#35355145)
Or you end up with useless packages like ancient versions of nodejs sticking around for half a decade.
Re:Ubuntu stops shipping Flatpak by default by lelanthran on Wednesday March 29, 2023 @07:12AM (#35355463)
At which point was nodejs five years older than the distro it shipped on?

Not being facetious, genuinely curious.

Re:Ubuntu stops shipping Flatpak by default by koolba on Wednesday March 29, 2023 @07:47AM (#35355769)
> At which point was nodejs five years older than the distro it shipped on?

https://askubuntu.com/questions/1259840/why-an-old-nodejs-ve...

Nodejs v4.x was "new" when Ubuntu 16.04 LTS came out. It was added to its apt repos, LTS releases are supported for 5+ years, and LTS policy is not to update major versions of software within a release.

So while nodejs was pumping out new major versions every 6-months, people running Ubuntu 16.04 and installing "apt-get install nodejs" were stuck on the same ancient version.

Re:Ubuntu stops shipping Flatpak by default by indymike on Wednesday March 29, 2023 @09:00AM (#35356601)
This is what is expected on LTS releases and is what is expected by people that highly value long term support releases. That said, I think modern security and modern software development practices have obsoleted a lot of the thinking behind LTS releases.
Re:Ubuntu stops shipping Flatpak by default by JohnFen on Wednesday March 29, 2023 @05:27PM (#35363962)
Sadly, modern software development practices have neutered a lot of LTS releases -- but the need for real LTS releases is stronger than ever.
Re:Ubuntu stops shipping Flatpak by default by indymike on Thursday March 30, 2023 @07:46AM (#35371166)
> but the need for real LTS releases is stronger than ever

Actually, I think the LTS mentality is one of the bigger problems in security right now. The hardest problems I've had to deal with in tech all stem for LTS:

* Getting an not-substantial budget to update an essential but forgotten server with custom software and an unpatched heartbleed problem.

* Convincing developers to even look at old web services that have massive SQL injection and were built with libraries with known (six years ago) exploits, all running on some 13 year old version of RedHat.

* Inevitable meetings where you try your best to avoid saying "I told you so" when a disclosure, cryptolocker or malware infestation happens because of the above. These are no fun because they quickly devolve into career-end bingo.

Re:Ubuntu stops shipping Flatpak by default by JohnFen on Thursday March 30, 2023 @02:31PM (#35377088)
(This entire comment is about my use of my own machines, not about the use of machines in an enterprise setting. In the enterprise, much of this is very, very different)

From a security point of view, yes, you have a point.

But I blame the problem on the industry shift to lumping security and feature updates together. I hate, and prevent, automatic software updates because I don't want feature changes to happen except if/when I'm ready for them. Feature updates are very disruptive, and sometimes break things horribly.

If I could just get security updates, I'd allow those to automatically happen without thinking twice. LTS releases were a (poor) compromise to accomodate those of us who can't, or won't, take on random feature updating.

Sadly, the LTS time periods are getting so short that they're often not effective for this purpose anymore -- so in those cases, I resort to blocking updates entirely until I'm ready for them.

That's also a bad security place to be. I just don't see any other way to handle it aside from separating security and feature updating, like we used to do. But that's not going happen. So all I'm left with is LTS releases and blocking updates.

Re:Ubuntu stops shipping Flatpak by default by diffeomorphism on Wednesday March 29, 2023 @01:20PM (#35360296)
That is very much missing the point. They were not "stuck", they explicitly asked to keep using that version and get support for it. Same reason Windows ltsc exists and is popular with such customers.
Re:Ubuntu stops shipping Flatpak by default by goodpoint on Thursday March 30, 2023 @06:23AM (#35370501)
That's a feature not a bug. People use LTS because they need stable platforms they can rely on.
Re:Ubuntu stops shipping Flatpak by default by sdsssss on Wednesday March 29, 2023 @06:36AM (#35355185)
You can
Re:Ubuntu stops shipping Flatpak by default by sdsssss on Wednesday March 29, 2023 @06:36AM (#35355182)
Fffffff
Re:Ubuntu stops shipping Flatpak by default by bayesian_horse on Wednesday March 29, 2023 @06:53AM (#35355294)
Or that distributions don't want to ship. Or don't want to ship/maintain as frequently.
Re:Ubuntu stops shipping Flatpak by default by goodpoint on Wednesday March 29, 2023 @07:46AM (#35355754)
Good, then we stay away from such software.
Re:Ubuntu stops shipping Flatpak by default by Klonoar on Wednesday March 29, 2023 @04:26PM (#35362990)
That sounds mutually beneficial. :)
Re:Ubuntu stops shipping Flatpak by default by cardanome on Wednesday March 29, 2023 @08:33AM (#35356278)
Just use AppImage then. Or create a good old tarball. Problem solved.

These should be absolute exceptions, not the rule, anyway.

Re:Ubuntu stops shipping Flatpak by default by JohnFen on Wednesday March 29, 2023 @05:25PM (#35363934)
Such developers can stand up their own repository and distribute their software there, where they have complete control. And users can still install and update that software as normal.
Re:Ubuntu stops shipping Flatpak by default by chupasaurus on Wednesday March 29, 2023 @06:53AM (#35355299)
> That's why distributions are typically either giant volunteer-run organizations like Debian or companies like RedHat or Canonical

Quite a few maintaining teams are the exact same people in Debian and Ubuntu.

Re:Ubuntu stops shipping Flatpak by default by circuit10 on Wednesday March 29, 2023 @06:57AM (#35355349)
That works for big important software like Firefox or GCC, but less well for someone’s niche hobby project that maybe 5 or so other people will use
Re:Ubuntu stops shipping Flatpak by default by jen20 on Wednesday March 29, 2023 @08:27AM (#35356225)
For me, the "stop the world" distribution model is pretty broken, compared to FreeBSD Ports or similar. I don't ever want a maybe-years-old version of software, even with random security patches applied to it.
Re:Ubuntu stops shipping Flatpak by default by account42 on Wednesday March 29, 2023 @10:20AM (#35357685)
There are rolling release and hybrid (stable base + rolling apps) Linux distros as well.
Re:Ubuntu stops shipping Flatpak by default by jen20 on Wednesday March 29, 2023 @10:25AM (#35357752)
I know - those ones don’t suffer from the same problem, typically.
Re:Ubuntu stops shipping Flatpak by default by intelVISA on Wednesday March 29, 2023 @09:30AM (#35357009)
x86_64 ELF (SYSV) is a pretty good lingua franca, why pollute my machine with some crappy pauper?
Re:Ubuntu stops shipping Flatpak by default by lucideer on Wednesday March 29, 2023 @06:39AM (#35355198)
I take your point (it's the general point many use to argue for Snap/Flatpak/Nix/AppImage/0install/Homebrew/&c.) but if you want to ensure you're not replacing per-distro-package-manager-fragmentation with completely-arbitrary-chaotic-package-manager-fragmentation there needs to be some unity & consideration for what users want in order to ensure they'll willingly subscribe to your system of choice.

While I wouldn't call Flatpak "popular" with users per se, it's probably one of the least-worst alternatives that have come out. The horse Ubuntu has backed (Snap) may be the most used by virtue of being rammed down user's throats by projects with existing user capture (e.g. LetsEncrypt), but that's not going to make the debate go away: it just strengthen's the argument to return to distro packaging.

Re:Ubuntu stops shipping Flatpak by default by account42 on Wednesday March 29, 2023 @11:47AM (#35358944)
> (Snap) may be the most used by virtue of being rammed down user's throats by projects with existing user capture (e.g. LetsEncrypt)

Care to expand on this? I'm not in Ubuntu-land but can't imagine how a service with an open protocol and multiple clients forces you onto Snap.

Re:Ubuntu stops shipping Flatpak by default by lucideer on Wednesday March 29, 2023 @01:05PM (#35360087)
I just mean distributing software exclusively through 1 channel (or at least only officially supporting 1).

This wouldn't be the worst situation (devs needing to more time preparing myriad distribution formats is a valid problem) if the specific 1 channel being used wasn't a broadly resented channel.

Re:Ubuntu stops shipping Flatpak by default by londons_explore on Wednesday March 29, 2023 @06:22AM (#35355081)
There are plenty of projects to semi-automatically produce packages for a large number of distributions starting from just a git repo of the software to package.

Sure, packaging software is a bit of a thankless task, but with enough automation, packaging thousands of bits of software on every git commit should be doable by just a few volunteers.

Re:Ubuntu stops shipping Flatpak by default by dTal on Wednesday March 29, 2023 @07:18AM (#35355516)
What I would like to see is:

1) a unified database for package names (it's all unnecessarily ad-hoc right now, with different distros having different policies for capital letters, whether libraries are prefixed with "lib", whether python packages have "py" or "python" or "py3" etc...

2) a standard format for declaratively describing how to build a package.

Basically, we have FreeBSD ports, Arch PKGBUILDs, Void templates, Gentoo ebuilds - they all do more or less the same thing in the same way, they all work really well, and they're all incompatible for sheerly incidental reasons. I'd like to see these incompatibilities papered over in such a way that I can write one template and generate all the others.

Re:Ubuntu stops shipping Flatpak by default by rand_flip_bit on Wednesday March 29, 2023 @10:02AM (#35357422)
Congrats you just invented containers :P
Re:Ubuntu stops shipping Flatpak by default by dTal on Wednesday March 29, 2023 @10:14AM (#35357599)
Not sure how you figure that. Containers are completely orthogonal to both of my requirements, which again are 1) a globally canonical package namespace, and 2) tooling to convert some standard recipe file format into distro-specific recipe files (which would require point 1 to work).
Re:Ubuntu stops shipping Flatpak by default by account42 on Wednesday March 29, 2023 @11:10AM (#35358390)
There are already many standard build specification formats: CMake, autotools, Meson. For each, most distro's package managers can build the software with very little configuration, e.g. Debian's debhelper will cover most standard build systems and Gentoo has eclasses that you just need to inherit in a package. I'm not sure that adding another makes things easier.

Configuration options will need to be specified manually if you want any but I don't see a way around that as they are both package-specific and also something where distros want to differ.

For dependencies there are usually language-specific registries and pkg-config for C/C++-land. Some distros (e.g. RPM-based-ones) already support specifying dependencies by the pkg-config names or library SONAMEs. There is no distro-agnostic way to specfy your dependencies except for a README as far as I know - this would be something worth specifying.

Re:Ubuntu stops shipping Flatpak by default by t43562 on Wednesday March 29, 2023 @12:15PM (#35359335)
You'll invent new standard and have N+1 standards.

It's not as if package formats can't be declarative - just that some issue always turns up in package X or Y that the declarative format didn't anticipate.

I think there may indeed be tools to convert these formats but in the end the devils are always in some distro-specific set of details that make life miserable. e.g. your library has some option enabled or doesn't and some other package in that distro needs it and so on and on.

Re:Ubuntu stops shipping Flatpak by default by creshal on Wednesday March 29, 2023 @06:19AM (#35355058)
The whole point of a distribution is that this job is done by the distributors, not the authors.
Re:Ubuntu stops shipping Flatpak by default by qbasic_forever on Wednesday March 29, 2023 @06:39AM (#35355203)
Hot take: package distributors are 'fake jobs' that don't need to exist, or exist only for the make-work of packaging. Tools like flatpak, snap, appimage, containerization, etc. have made the need for adapting software to different distributions unnecessary.
Re:Ubuntu stops shipping Flatpak by default by bombolo on Wednesday March 29, 2023 @06:50AM (#35355279)
I don't want debian to be like the android app store, where there are thousands apps that work badly and overflow me with ads.

I much prefer the f-droid model, of having curated repositories to keep crap outside.

Also, I can't understand why people on the internet think that upstream developers are omniscient. They make lots of mistakes and errors. Distribute maintainers fix a lot of things, and send the fixes to the authors.

Re:Ubuntu stops shipping Flatpak by default by qbasic_forever on Wednesday March 29, 2023 @06:54AM (#35355314)
There's nothing stopping someone from making a flatpak or other similar tech feed or 'store' that's only the curated apps they deem appropriate for users.

Bugs should be fixed upstream, not kept in distro specific silos. There's no reason why only a packager can fix some upstream issues or become a contributor. On the contrary shipping your app as a universal tech like flatpak means Redhat, Debian, Arch or any other user can use it, develop for it, and send fixes upstream.

Re:Ubuntu stops shipping Flatpak by default by creshal on Wednesday March 29, 2023 @07:07AM (#35355426)
The strawman sounds compelling on the surface, but that's not what happens in practice: Bug fixes are sent upstream by all relevant distributions, and they regularly cooperate with each other directly, as well as upstream. The "new world" of users of all distributions working together has been reality for the past 20+ years.
Re:Ubuntu stops shipping Flatpak by default by noirscape on Wednesday March 29, 2023 @08:33AM (#35356283)
> Bugs should be fixed upstream, not kept in distro specific silos.

This is mostly a Debian issue fwiw. Debian is literally notable because they're obsessed with making sure that any package in their repositories is kept with the same "API"[0], no matter how old the software is. The result is that Debian packages can end up hugely derivative compared to the equivalent of upstream and other distros, but it's usually also because the software in question is half a decade old.

With other distros, packaging changes to upstream usually just reflect the preference to match a certain style of configuration (to pull another example from Debian: nginx ships with sites-{enabled,available} folders and is configured to load from sites-enabled by default. This is to match the same configuration style that's used for apache2 and that it's associated tools assume you configure apache2 with, even though nginx just uses a conf.d folder and has no extra tools to facilitate anything fancy with sites-{enabled,available}).

The extreme end is nix, which actively requires you to have the upstream written with nix in mind because nix will basically demand you configure the source code in ways to accommodate for it.

[0]: This includes actual software-intended interfaces and the ones hacked together by users by ie. reading out logfiles.

Re:Ubuntu stops shipping Flatpak by default by creshal on Wednesday March 29, 2023 @08:42AM (#35356403)
And even Debian tries to upstream fixes where feasible, which isn't too uncommon for security vulnerabilities, they tend to lurk in old parts of codebases that haven't been refactored for a while.
Re:Ubuntu stops shipping Flatpak by default by ParetoOptimal on Wednesday March 29, 2023 @01:34PM (#35360491)
> The extreme end is nix, which actively requires you to have the upstream written with nix in mind because nix will basically demand you configure the source code in ways to accommodate for it.

I'm pretty sure this isn't true.

What does upstream emacs have to do for Nix to provide https://github.com/NixOS/nixpkgs/blob/nixos-22.11/pkgs/appli...

I will agree though that applications which have their own update mechanism or do other things that make reproducibility harder are much more difficult to create a Nix expression for.

Re:Ubuntu stops shipping Flatpak by default by account42 on Wednesday March 29, 2023 @10:56AM (#35358200)
Bugs should be fixed upstream but unfortunately sometimes upstream does not see them as bugs - for example, telemetry.
Re:Ubuntu stops shipping Flatpak by default by bayesian_horse on Wednesday March 29, 2023 @06:54AM (#35355312)
There is a very good and strong use case for a "distribution" of packages working well together. But those packages need to be selected carefully.
Re:Ubuntu stops shipping Flatpak by default by qbasic_forever on Wednesday March 29, 2023 @06:57AM (#35355350)
I agree but I don't think the software packages themselves should be held back by the available time and attention of packagers. In the new world a packager or distro creator can just pick and choose what flatpaks, snaps, appimage, etc. sources they deem good enough to push to users. They shouldn't be a roadblock in the way of users getting the latest version of software.
Re:Ubuntu stops shipping Flatpak by default by bombolo on Thursday March 30, 2023 @02:49AM (#35368984)
Then you install the new version, find out it requires a new version of python and all its libraries, but you can't install it because pytorch only works on old versions of python.
Re:Ubuntu stops shipping Flatpak by default by qbasic_forever on Thursday March 30, 2023 @10:07AM (#35372917)
That doesn't happen when apps are packaged in their own containers with all dependencies. The new version you installed has its own python dependencies.
Re:Ubuntu stops shipping Flatpak by default by AnIdiotOnTheNet on Wednesday March 29, 2023 @07:49AM (#35355787)
I agree. Maintainers are useless middlemen (at best) who only exist because of Linux userland's particular diseases and a desire for distros to rule over their own little repo fiefdoms.

No other desktop OS has done it like Linux and for good reason. People have been citing this as a reason they don't want to use Linux as a desktop for decades to mostly deaf ears, who then turn around and wonder loudly why no one wants to use their OS. Hell, even Linus Torvalds himself complained about it.

Re:Ubuntu stops shipping Flatpak by default by simon_o on Wednesday March 29, 2023 @09:04AM (#35356646)
This has to be the dumbest take on this thread.

If you want the dystopian hellhole you seemingly long for, just use Android and enjoy the ad-infested crapware? No reason to moan about things you seemingly don't understand.

Re:Ubuntu stops shipping Flatpak by default by Steltek on Wednesday March 29, 2023 @09:39AM (#35357131)
I have no earthly idea what you are talking about.

For decades, Linux package managers have been the killer app for Linux. They made installing and updating every single one of your applications trivial. You didn't google for sketchy download sites and unsigned exe's. You didn't have to fight the system to cleanly uninstall things. Even release upgrades were the smoothest thing ever. In 25 years, I've never had a Debian release upgrade go wrong.

Anyone bitching about package managers as user hostile is a flat out idiot.

Re:Ubuntu stops shipping Flatpak by default by AnIdiotOnTheNet on Wednesday March 29, 2023 @10:51AM (#35358118)
What's wrong isn't so much the package managers as the necessity for them and for an army of third party volunteers to maintain packages and all the problems that predictably arise from that. Linus famously complained about how things work at DebConf 14[0], but I guess he's an idiot for doing so? That's a pretty hot take but whatever.

If a package is not in the repo? Sorry, you have to compile from source. Want a newer version? Compile from source and hope that the build environment dependencies are in the repo. Want an older version for some reason? Break out docker or KVM so you don't break your system.

None of this is fundamental to the model, that much is true, but in practice it is how all Linux distributions using a package manager/repo model without things like Snap, AppImage, and Flatpak work.

Here's the best part though: Even with Flatpaks and AppImage you can still use a repo! In fact Fedora Silverblue, which uses an immutable base system and installs everything through Flatpak and Toolbox, uses a Fedora controlled Flatpak repo by default.

[0] http://saimei.ftp.acc.umu.se/pub/debian-meetings/2014/debcon...

Re:Ubuntu stops shipping Flatpak by default by cardanome on Wednesday March 29, 2023 @08:38AM (#35356341)
Yeah, if you don't mind hugely increased start-up times, RAM usage and less curation and more crap, sure no need for package distribution.

I personally do mind very much. Just the differences in startup times between apt and snap applications are huge and I would absolutely despise working with such a sluggish system. I would rather build everything myself from source if forced to.

Re:Ubuntu stops shipping Flatpak by default by vetinari on Wednesday March 29, 2023 @09:48AM (#35357241)
That snap slowness is snap's problem, not general non-apt problem. Flatpak doesn't suffer from it.
Re:Ubuntu stops shipping Flatpak by default by Karunamon on Wednesday March 29, 2023 @09:57AM (#35357351)
The mass proliferation of electron and other such webpages-as-desktop-applications would seem to indicate that the average user doesn't care for any of those things.
Re:Ubuntu stops shipping Flatpak by default by cardanome on Wednesday March 29, 2023 @11:15AM (#35358475)
So much weird assumptions.

First of all, there is no such thing as an average user. Also, it is not relevant to the discussion. I care about what I want in a system, not what some imaginary users want.

Now, we could stop there but I will play: Electron solves a real problem for developers. Writing cross-platform GUI apps is a real pain. Yes, there are native solution but ensuring the user has the exact same experience on every platform tends to be orders of magnitude more costly compare to web based solutions. (That or they are exotic options like Lazarus with Free Pascal that have a much lower Developer pool.) Many apps wouldn't even have Linux ports if they were not written on Electron.

Now, why do users accept them? Why are they not out-competed by native solution? Oh, honey. Why do I have Microsoft Teams installed? Because I like it? Hell, no! Because I need it for work. Why do I have the Discord Client? Because it is great? Nah, I long for good old IRC but Discord it there the people currently are. Did I think the Epic Games launcher is such an great app? Nah, they bought me with offering free games.

Users tolerate shitty software for many reasons, mostly because they have to. It does not follow from that, that they don't mind software being shitty.

Re:Ubuntu stops shipping Flatpak by default by Karunamon on Wednesday March 29, 2023 @02:34PM (#35361316)
>First of all, there is no such thing as an average user. Also, it is not relevant to the discussion. I care about what I want in a system, not what some imaginary users want.

In which case I hope you are prepared for software to get many times worse, because the software industry doesn't give a tuppeny fuck what you want in a system, they care what sells to the lowest common denominator. And that means slow, bloated electron web sites shoehorned into the desktop because the pool of mediocre JavaScript developers that can extrude a minimum viable product is huge compared to the pool of native developers of any language.

And it will continue this way for as long as it's accepted. So, forever basically, because the average user you claim doesn't exist will put up with anything placed in front of them without significant enough complaint to impact profits.

Re:Ubuntu stops shipping Flatpak by default by cardanome on Wednesday March 29, 2023 @03:36PM (#35362183)
Debian packages are maintained by volunteers, the software industry has nothing to do with this.
Re:Ubuntu stops shipping Flatpak by default by Karunamon on Thursday March 30, 2023 @08:31AM (#35371621)
Open source is part of the industry.

You keep trying to hand wave this relatively straightforward point: users are already used to, and accepting of, slow and bloated applications. Therefore, the downsides that app containerization introduces are irrelevant to most people that will use them.

Re:Ubuntu stops shipping Flatpak by default by m4rtink on Wednesday March 29, 2023 @11:37AM (#35358782)
Not to mention it introduces a single point of failure, that once compromised can start pushing malware directly to user.

With maintainers in the loop, there is at least one more person that can notice something is fishy. Not to mention there is usually so time before packages are updated, so there is more time to notice an attack.

Re:Ubuntu stops shipping Flatpak by default by AnIdiotOnTheNet on Wednesday March 29, 2023 @01:19PM (#35360267)
> With maintainers in the loop, there is at least one more person that can notice something is fishy

Also one more person who can inject malware or break something. How did that Debian keygen issue happen again? Oh right.

Re:Ubuntu stops shipping Flatpak by default by bombolo on Thursday March 30, 2023 @02:46AM (#35368959)
> How did that Debian keygen issue happen again?

The people on the openssl mailing list said it was fine. That's how it happened.

Re:Ubuntu stops shipping Flatpak by default by AnIdiotOnTheNet on Thursday March 30, 2023 @08:21AM (#35371501)
And yet the upstream developers themselves never incorporated the change, it was entirely because an unnecessary third party middle man made unnecessary changes.
Re:Ubuntu stops shipping Flatpak by default by Steltek on Wednesday March 29, 2023 @09:42AM (#35357163)
What's the base image for the containers? Do none of your Dockerfiles have apk or apt commands?
Re:Ubuntu stops shipping Flatpak by default by qbasic_forever on Wednesday March 29, 2023 @10:13AM (#35357578)
It's best practice not to have any shell tools in your app container, including package managers. It bloats the image and can be a security vulnerability if a zero day exploit hits the app. Ideally a container is something like distroless which just has the libc and dependencies you care about and nothing else, not even bash.
Re:Ubuntu stops shipping Flatpak by default by Steltek on Wednesday March 29, 2023 @10:19AM (#35357667)
But where do your dependencies come from? Your compiler? Are you building everything from source after libc?
Re:Ubuntu stops shipping Flatpak by default by qbasic_forever on Wednesday March 29, 2023 @10:49AM (#35358091)
If you're shipping modern code like go or rust you have a static build with no real dependencies. If you're shipping a scripting language like python you're probably going to use their base images, and if you're shipping native C/C++ you have to figure out your risk tolerance for trusting a distro to ship good dependencies vs. just building them yourself. It's not hard to build all your deps in a container, and arguably is the best security practice so you have total control and knowledge of their versions.
Re:Ubuntu stops shipping Flatpak by default by m4rtink on Wednesday March 29, 2023 @11:44AM (#35358892)
Wouldn't something like that be really hard to debug in real world scenarios ?
Re:Ubuntu stops shipping Flatpak by default by account42 on Wednesday March 29, 2023 @10:55AM (#35358169)
As long as there is unavoidable software made by organizations like Mozilla that don't care for their users's choices there is an important role for distributions: To make sure what you get is what you want.
Re:Ubuntu stops shipping Flatpak by default by ranger207 on Wednesday March 29, 2023 @11:39AM (#35358807)
I agree. Devs would like to statically link and have their app work. Maintainers don't want that to happen for IMO reasons that have far less benefit than claimed. flatpak and snap are ultimately efforts to get around the vortex of maintainers, maintainer efforts to get things not to be statically linked, and all the complexity that entails. I think there's still currently value in distro maintainers that do things like getting KDE running on Wayland using pipewire, but IMO that role should be limited to configuration and compilation only. There should not be any distro-specific patches in existence
Re:Ubuntu stops shipping Flatpak by default by bombolo on Thursday March 30, 2023 @02:49AM (#35368992)
> Maintainers don't want that to happen for IMO reasons that have far less benefit than claimed.

You have apparently no idea how much it costs to recompile everything, every single time that openssl fixes a bug.

Re:Ubuntu stops shipping Flatpak by default by alkonaut on Wednesday March 29, 2023 @06:36AM (#35355177)
Is there a distribution (or whatever one would call it - a Linux) where the aim is to not be managing the whole end-user system of OS+Apps, but just the OS. E.g. similar to Windows, or Android?
Re:Ubuntu stops shipping Flatpak by default by qbasic_forever on Wednesday March 29, 2023 @06:41AM (#35355217)
Arch Linux is pretty faithful to shipping software exactly or as close as possible to as the upstream authors intended. It's on a rolling release which means you kind of get a firehose of nonstop major version updates though, whether you want them or not.
Re:Ubuntu stops shipping Flatpak by default by geokon on Wednesday March 29, 2023 @09:46AM (#35357216)
how does that work in practice?

upstream didn't build with all the dependencies at the same version as the latest in the arch repo. Nor are most upstream developers bumping all their dependency versions constantly

if you're a big player like ubuntu/debian you can go to the authors/upstream and ask them to fix the program to work with their dependency versions (in say.. an LTS release). most would be glad to bc it's just something upstream needs to do once every couple years and doesn't need maintenance. If even thats too much and yyou want esomething even more handsoff/timeless then you make an Appimage. It'll work for ever

With Arch youd need to constantly monitor the thing doesn't break?Are they just #yolo'ing dependency versions most of the time ? (itd prolly work 99% of the time..)

Re:Ubuntu stops shipping Flatpak by default by creshal on Wednesday March 29, 2023 @10:06AM (#35357475)
In practice it works because GP is exaggerating. Arch does hold back library and/or program updates until they work together, or simply ships multiple major releases of libraries, and have a separate testing branch.

Right now e.g. there's openssl (still at version 3.0.x, because nobody supports 3.1.x yet) and openssl-1.1 (1.1.x-y) to handle the rather slow migration of upstreams to the new major release.

Re:Ubuntu stops shipping Flatpak by default by dikei on Wednesday March 29, 2023 @06:41AM (#35355216)
For server there's Flatcar Container Linux, which only provide just enough to run containers. Everything else is provided by the container packager.
Re:Ubuntu stops shipping Flatpak by default by drbig on Wednesday March 29, 2023 @06:40AM (#35355207)
There are operating systems - like FreeBSD - which have a very strong and clear distinction between the Operating System base and third-party software.
Re:Ubuntu stops shipping Flatpak by default by viraptor on Wednesday March 29, 2023 @07:19AM (#35355523)
Fedora Silverblue https://silverblue.fedoraproject.org/

You're expected to run most apps as flatpaks.

Re:Ubuntu stops shipping Flatpak by default by curt15 on Wednesday March 29, 2023 @07:36AM (#35355680)
I stopped distro-hopping a few years ago after landing on Silverblue a few years ago (back when it was still called Fedora Atomic Workstation). While it doesn't satisfy all use cases, I view it as a boring (in a good way) 80-percent solution that normally just works.
Re:Ubuntu stops shipping Flatpak by default by pch00 on Wednesday March 29, 2023 @08:02AM (#35355911)
Silverblue doesn't get a lot of press but it makes a really solid desktop OS.
Re:Ubuntu stops shipping Flatpak by default by PlutoIsAPlanet on Wednesday March 29, 2023 @10:19AM (#35357672)
Fedora has always been quite bad at branding and making their distro appealing.

It's probably one of the most solid Linux distros at the moment and their website makes it seem.. boring.. No screenshots, features, mentions of whats available (like apps), that Fedora uses newer graphics/drivers kernels, that you can run Steam, that apps are sandboxed etc.

Stark contrast to something like https://vanillaos.org/

Re:Ubuntu stops shipping Flatpak by default by creshal on Wednesday March 29, 2023 @07:26AM (#35355584)
No distribution forces you to use package managers for everything. Even before flatpak/snap, distributing (especially commercial) software as just archives or executable installers was/is perfectly possible.

The caveat is, there's no common baseline for libraries. Graphics libraries, the libc itself, GUI widget libraries etc. will appear in different version combinations in different distributions, since they have different release schedules.

So if you want to go the Windows/MacOS route and ship a readily compiled program for Linux, you have to vendor in a loooot more libraries, and they have a higher risk of breaking due to incompatibilities (kernel interface for your graphics driver changed, configuration file syntax for your font renderer changed, etc.)

Flatpaks/snaps try to solve this (poorly) by vendoring the entire kitchen sink and then some, which just creates more bloat and a worse DLL hell than Windows could ever have dreamed of. So using it for everything isn't really feasible still.

Re:Ubuntu stops shipping Flatpak by default by account42 on Wednesday March 29, 2023 @10:52AM (#35358138)
> they have a higher risk of breaking due to incompatibilities (kernel interface for your graphics driver changed, configuration file syntax for your font renderer changed, etc.)

Simply don't vendor glibc and graphics drivers and you will be fine. Vendoring drivers doesn't make sense anyway as your application will be obsolete by the next HW cycle.

Re:Ubuntu stops shipping Flatpak by default by creshal on Thursday March 30, 2023 @03:54AM (#35369453)
glibc breaks regularly, as does mesa occasionally, so it would realistically be required if you wanted win32-style 20+ years of backwards compatibility.

And there is a lot of more obscure examples: fontconfig e.g. at some point changed their config file format in a not backwards compatible way, and now some Steam games crash on startup because the developers earlier vendored it to get around its ABI breaking repeatedly.

And that sort of software doesn't really obsolete. Steam and GoG allow games to have a 10+ years long tail of slow but steady sales that don't really justify constant maintenance releases but still both let people enjoy good games (those don't really obsolete), and serve as advertisement for the developers' newer games.

Re:Ubuntu stops shipping Flatpak by default by account42 on Thursday March 30, 2023 @08:59AM (#35371953)
> glibc breaks regularly, as does mesa occasionally

Neither of this is true.

> And there is a lot of more obscure examples: fontconfig e.g. at some point changed their config file format in a not backwards compatible way, and now some Steam games crash on startup because the developers earlier vendored it to get around its ABI breaking repeatedly.

Bundling fontconfig but not it's internal config is retarded, yes. Really, games have no business looking at system fonts at all.

Re:Ubuntu stops shipping Flatpak by default by creshal on Thursday March 30, 2023 @02:59PM (#35377420)
Calling everyone except yourself too retarded to figure out compiling Linux software is not a productive discussion. And glibc/mesa related breakages are well documented, if you care.
Re:Ubuntu stops shipping Flatpak by default by JohnFen on Wednesday March 29, 2023 @05:31PM (#35364016)
Slackware, perhaps?

Honestly, if you just want the naked OS, you don't need a distro at all.

Or just don't use the package manager.

Re:Ubuntu stops shipping Flatpak by default by alkonaut on Thursday March 30, 2023 @02:55AM (#35369037)
I'm curious what a Linux would look like that behaved more like windows or android in the sense that there isn't such a blurry line between the OS and its applications. For example, installing a C# or Go compiler on Linux is great with a package manager. But doing the same with a C or Python is different? This is basically the Unix "I'm not just an OS, I'm a platform for building and running C programs" heritage that isn't properly hidden I think.
Re:Ubuntu stops shipping Flatpak by default by creshal on Thursday March 30, 2023 @05:45AM (#35370203)
We've reached the point where the C ecosystem has so given up on having a package manager that isn't Linux distributions that Microsoft added WSL and Docker(-compatible) Linux images are the most widespread distribution format. I don't think we can still figure out a way to decouple the two again, and without that, we can't really create a Linux environment that isn't a package manager with an email client.

And to a degree, the line is blurry with Windows as well, what with how deep MSVC/win32 is integrated into the system. .NET took decades to dis-entangle itself from Windows and become a proper standalone platform, and Microsoft's attempts at getting people to use UWP instead of win32 is ongoing and not very successful so far.

Re:Ubuntu stops shipping Flatpak by default by JohnFen on Thursday March 30, 2023 @05:02PM (#35378791)
> in the sense that there isn't such a blurry line between the OS and its applications.

Interesting. It never occurred to me that there's a blurry line between the two. It seems to me that there's a very hard line between the two. I'm not sure I understand what you're saying here.

> For example, installing a C# or Go compiler on Linux is great with a package manager. But doing the same with a C or Python is different?

I'm confused by this question, so forgive me if this answer isn't really addressing it. A package manager is a convenience, nothing more. Using one means makes your life easier in a number of ways. But not using one isn't really that much more difficult. Package managers are 100% optional.

Re:Ubuntu stops shipping Flatpak by default by moss2 on Wednesday March 29, 2023 @06:19AM (#35355061)
Yes

(I'm not the guy who wrote that comment but I would very much like this)

Re:Ubuntu stops shipping Flatpak by default by mike_hearn on Wednesday March 29, 2023 @06:34AM (#35355169)
It's not actually that hard for cross platform apps, at least. We do this in Conveyor and can build debs and apt repos, with inferred dependencies, even from Windows and macOS:

https://conveyor.hydraulic.dev/7.2/outputs/#linux

It works by downloading the Ubuntu package index and using it to look up ELF dependencies, devs can also extend the inferred list with other package names if they like. The deb installs an apt sources file and public key so users can stay entirely in the GUI. The control scripts are auto-generated but can have extra code appended to them via the config file if the developer so wishes.

It works pretty well. Conveyor is used primarily for cross-platform apps that use {Electron, JVM, Flutter, C++/Rust} and those don't normally have very complex Linux specific dependencies. Also, in practice Ubuntu and Debian and its various forks are close enough that package metadata is compatible in basically all cases.

People do ask us for Flatpak sometimes. Probably RPM is a higher priority though. Those two get most Linux users, they're stable, there are portable libraries that can make them and they can package anything without code changes. Flatpak requires mastering a new file format and the mandatory sandboxing is guaranteed to cause problems that will end up in the support queue of the deployment tool.

Re:Ubuntu stops shipping Flatpak by default by nubinetwork on Wednesday March 29, 2023 @07:12AM (#35355465)
Gentoo uses packages shipped in deb format all the time, its not just a debian or ubuntu thing.
Re:Ubuntu stops shipping Flatpak by default by api on Wednesday March 29, 2023 @08:05AM (#35355936)
As someone who does this for a lot of distros (ZeroTier), I can say that it is hell and I understand why devs don't want to do it.

Two specific examples:

(1) For some reason a lot of Debian distros decided to rename and/or re-version-number OpenSSL for no good reason (pedantry is not a good reason), meaning if you depend on OpenSSL/libcrypto your packages will mysteriously break all over the place because you're not using the versioning scheme or naming convention. We're not doing it now but we may switch to statically linking this.

(2) We use a UPnP library called miniupnp in the current version. We have to statically link it because of issues like (1) and also because some distros were for a time stuck on a version that had security bugs that they would not upgrade because it would break other packages.

So imagine (1) and (2) ad infinitum times a hundred little distributions and Debian forks and... it's completely untenable. Static linking solves many of the problems but that defeats some of the purpose of package management.

We do it for all the major Debian and Ubuntu distributions by using a qemu-chroot based build farm that builds on each distribution+architecture combo with actual qemu binary emulation. It's over 200 gigabytes of chroots and takes two hours on a 64-core Threadripper to build all the artifacts. We tried cross compilation and had too many problems: it builds fine, seems to run fine, then users complain that some mysterious glibc symbol was missing on their system. We switched to building on actual chroots and most of those problems went away. Most of them.

Snap, FlatPak, and Docker are all variations on the same basic conclusion that many developers reached long ago: "fuck it, just distribute software in the form of tarballs of entire Linux installs."

The only thing worse is Windows MSI installers and Windows drivers, though with those at least there's less platform variation so once you battle those horrors the result mostly works on most systems. Mostly. But whoo boy is the Windows installer system horrific. I shall quote Pinhead: "I have such sights to show you..."

Apple is the easiest because they have less legacy baggage than Windows and only one "distribution." They do have some horrors around signing and notarization and we don't distribute in the Mac App Store (yet?).

A major reason SaaS delivered through browsers is eating the world is the immense and totally unnecessary pain of distributing apps for major OSes. Even Apple is quite a bit harder than making a web site that you visit in a browser. All this pain is 100% the fault of OSes not caring about developer experience and in the case of Linux the multiplication of endless "vanity distributions" to no benefit to the community.

If you want packages instead of tarballs of OSes, Linux distributions could (1) consolidate and (2) invest some time in the very boring totally un-sexy work of massive amounts of clean-up and standardizing things as much as possible. But it's more fun to make another vanity distribution I guess. You'll get it right this time and everyone will switch to your distribution.

Re:Ubuntu stops shipping Flatpak by default by Izkata on Wednesday March 29, 2023 @08:35AM (#35356304)
> Snap, FlatPak, and Docker are all variations on the same basic conclusion that many developers reached long ago: "fuck it, just distribute software in the form of tarballs of entire Linux installs."

..wait a minute

> (2) We use a UPnP library called miniupnp in the current version. We have to statically link it because of issues like (1) and also because some distros were for a time stuck on a version that had security bugs that they would not upgrade because it would break other packages.

Wouldn't this solve the same problem without adding snap/etc?

Re:Ubuntu stops shipping Flatpak by default by api on Wednesday March 29, 2023 @09:15AM (#35356780)
It solves some of the problems, but not all, and it requires a lot of testing and trial and error and setup. Sometimes libraries are hard to statically link. Sometimes you have problems with different glibc versions.

We've invested a lot of time in this. For most developers I totally understand "fuck it."

Re:Ubuntu stops shipping Flatpak by default by account42 on Wednesday March 29, 2023 @12:00PM (#35359137)
I have had a lot of success with building against old glibc version and then bundling all required libraries except system ones (glibc, libGL, libX11 etc). Anything optional needs to be loaded with dlopen/dlsym but for many things that detail is already handled by libraries like SDL. That's generally what seems to be the common solution for games (well used to be at least, today most just build against the Steam runtime and call it a day). It's really not that different from Windows IMO except that the set of base system libs that you can rely on to be backwards compatible and don't need to bundle is smaller.

You can still pacakge that distro-agnostic build up into distro-specific package formats to make updates easier for users without needing zillion of different build roots just for Linux.

Re:Ubuntu stops shipping Flatpak by default by pizza234 on Wednesday March 29, 2023 @08:11AM (#35356012)
The last app image I've installed took 800 MB. It was approximately 720 MB of libraries, and just 80 MB of core program. Using self-contained images is simply not scalable.

I have some experience with packaging, and if we talk about standalone applications, dependencies aren't a big deal; production deb packages for different targets it's not difficult. The last (only) breaking change I can remember was old graphic libraries (I think it was gtk2-based WxWidgets).

Re:Ubuntu stops shipping Flatpak by default by manuelabeledo on Wednesday March 29, 2023 @09:44AM (#35357186)
> The last app image I've installed took 800 MB. It was approximately 720 MB of libraries, and just 80 MB of core program. Using self-contained images is simply not scalable.

This is one of the points they are missing with snaps and flatpaks.

These formats might be OK for desktops, but are absolutely awful for servers, containers, etc., which, incidentally, are where Linux dominates.

Do I want to spend my time worrying about setting up a package cache, because a handful of updates are costing me a small fortune in transfers? Why would I need to think about what snap is doing in my small instance with a 16GB volume, when I use it to run a certainly small application?

Snaps are an absolute nightmare in these scenarios.

Re:Ubuntu stops shipping Flatpak by default by PlutoIsAPlanet on Wednesday March 29, 2023 @10:17AM (#35357641)
> These formats might be OK for desktops, but are absolutely awful for servers, containers, etc., which, incidentally, are where Linux dominates.

Containers have already won the war on the Linux server, there's no point Flatpak etc trying to compete here. Additionally, desktop software is a complete design paradigm to server software. I wouldn't even say they make sense to be in the same package manager.

Although they do share tech, ostree, namespacing etc.

Re:Ubuntu stops shipping Flatpak by default by manuelabeledo on Wednesday March 29, 2023 @10:31AM (#35357838)
> Containers have already won the war on the Linux server, there's no point Flatpak etc trying to compete here.

There are things that you just cannot run inside a container.

Also, in cloud environments, default provisioning is not done with containers, which makes sense, but directly causes the issues I mentioned, e.g. Amazon provisioning SSM on Ubuntu Server instances.

Re:Ubuntu stops shipping Flatpak by default by m4rtink on Wednesday March 29, 2023 @11:10AM (#35358385)
Not sure about snap, but at least for Flatpak, it has runtimes and runtime extensions that Flatpaks can share, which already reduces the individual Flatpak size. But further more, all runtime, extensions and Flatpaks live in a single OSTree repository on the system, which does automatic de-duplication on the file level.

While probably still less efficient than a properly maintained and integrated distro, where all software uses a single set of shared core libraries, its actually (in the Flatpak case) quite optimized & has additional benefits, such as installing a set of apps that don't share a common set of required library versions, which would normally be impossible.

Re:Ubuntu stops shipping Flatpak by default by simon_o on Wednesday March 29, 2023 @08:56AM (#35356552)
Yes. Deal with it.
Re:Ubuntu stops shipping Flatpak by default by matheusmoreira on Wednesday March 29, 2023 @11:00AM (#35358251)
> What you are really saying is you want all software developers to publish Debian packages

That's exactly what I want. Developers and Linux distribution maintainers should be working more closely with one another instead of reinventing static linking with "snaps" or whatever just to avoid working with the community.