News for hackers. Stuff that matters.
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.