News for hackers. Stuff that matters.
Re:Ubuntu stops shipping Flatpak by default by petepete on Wednesday March 29, 2023 @06:02AM (#35354924)
Mir, Unity, now Snap. Ubuntu has a track record of wanting to go it alone.

But, I'm all for competition, long may it continue. The only real negative here is that some apps will only release Snaps, others will only release Flatpaks and people will end up having to just revert to copr/AUR like before.

Choosing a distro is basically choosing a DE and package manager these days anyway - a single unified packaging format that works everywhere is more frustrating than an alternative DE or windowing system.

Re:Ubuntu stops shipping Flatpak by default by necovek on Wednesday March 29, 2023 @06:28AM (#35355124)
To put things into context, snaps were created before flatpak: in a sense, RedHat wanted to go at it "alone" (or at least separately from Canonical) with xdg-app/Flatpak. These ideas were already present even before those times and outside of both RH/Canonical, so it was more of a who's committed first.

Basically, Ubuntu phones were using click packages (predecessor to snaps) back in 2011 and 2012, with snapcraft shipped in January 2013, whereas xdg-app (later renamed to Flatpak) was started in December 2014.

Another thing to consider is that Canonical is orders of magnitude smaller than RedHat, and they do have a problem getting the community involved, but part of that is the size and limited time their developers have.

Now, even as a long time Ubuntu fan, I'll probably be switching to Debian just because I dislike the snap upgrade model.

Re:Ubuntu stops shipping Flatpak by default by necovek on Wednesday March 29, 2023 @06:42AM (#35355223)
And lets not forget an even more prominent example: Upstart by Canonical that RedHat replaced with Systemd.

Basically, Canonical will start at a project first, but RedHat specifically will look for ways to not join them, and start their own project instead.

Part of that is certainly due to Canonical itself, but I can't help but think a lot of it is RH making a call and then throwing more developers at something.

Re:Ubuntu stops shipping Flatpak by default by jzb on Wednesday March 29, 2023 @07:24AM (#35355563)
Upstart’s CLA was a non-starter.

Canonical has quite a history of the behavior you're dinging Red Hat for: Mir, Unity, LXD, Juju/Charms, Launchpad, and I'm sure I'm forgetting several.

Also it’s Orwellianly named “Harmony” effort to popularize CLAs because Canonical has long sought to control upstream technologies - and consistently failed because they do not play well with others.

Re:Ubuntu stops shipping Flatpak by default by BossingAround on Wednesday March 29, 2023 @09:27AM (#35356976)
Just to add to those wondering, CLA = Contributor License Agreement.
Re:Ubuntu stops shipping Flatpak by default by jzb on Wednesday March 29, 2023 @12:38PM (#35359711)
Ah, yes. Thank you - sorry for assuming on that one. I tend to get lazy when replying on my phone...
Re:Ubuntu stops shipping Flatpak by default by necovek on Wednesday March 29, 2023 @08:33PM (#35366061)
Sure, I have acknowledged there are plenty of missteps by Canonical too.

Though I don't think CLAs are a problem (FSF requires them for GNU projects too), but lack of committment not to switch to a non-free license.

Unity happened as GNOME 3.0 already went in an entirely different direction (mostly led by RH engineers) from 2.x series and as Canonical simply couldn't influence GNOME design. With a paradigm shift one way or another, it was a sensible move.

Launchpad was created as a tool to develop Ubuntu and free software: there was nothing else (and there still isn't) quite like it. Sure, it took a while to get it open sourced, but lack of contributions afterwards kinda proved the point that that wasn't really important (I mean, GitHub wasn't and still isn't).

Mir/LXD/Juju were attempts to improve on the incumbents (Wayland/Docker mostly).

Re:Ubuntu stops shipping Flatpak by default by the_why_of_y on Thursday March 30, 2023 @08:59AM (#35371952)
The reason why Lennart decided to start systemd is publicly documented: the 2 facts that upstart had a serious design flaw requiring large changes, and that Canonical required copyright assignment for those changes. CLAs that unilaterally benefit a single for-profit business entity are generally seen as problematic.

Read this thread:

https://web.archive.org/web/20140928104327/https://plus.goog...

Here, Upstart author and former Canonical employee Scott James Remnant wrote:

Had the CLA not been in place, the result of the LF Collab discussions would have almost certainly been contributions of patches from +Kay Sievers and Lennart (after all, we'd all worked together on things like udev, and got along) that would have fixed all those design issues, etc.

But the CLA prevented them from doing that (I won't sign the CLA myself, which is one reason I don't contribute since leaving Canonical - so I hold no grudges here), so history happened differently. After our April 2010 meeting, Lennart went away and wrote systemd, which was released in July 2010 if memory serves.

Re:Ubuntu stops shipping Flatpak by default by SSLy on Wednesday March 29, 2023 @06:40AM (#35355214)
snap's original sin was the moat of server being closed source and client /really/ wanting to talk only to the Canonical's instance. The latter is shared by Docker, in a way.
Re:Ubuntu stops shipping Flatpak by default by schmorptron on Wednesday March 29, 2023 @08:33AM (#35356281)
It's so upsetting that canonical will continually come up with cool tech, try to keep complete control over it and ideally make it so it long term becomes the only option, which people understandably don't jive with. Had they learned that in the space theyre in an open approach works better, we could still be using mir, upstart and most importantly unity now. God I miss unity.
Re:Ubuntu stops shipping Flatpak by default by IceWreck on Wednesday March 29, 2023 @09:23AM (#35356913)
I dont use docker anymore (podman ftw) but that is unfair criticism of docker.

You can use any container registry (including self hosted) with docker and it will work. Last I checked, you cannot use any other repo at all with snap without recompling it to add support for your snap repo.

Re:Ubuntu stops shipping Flatpak by default by SSLy on Wednesday March 29, 2023 @10:06AM (#35357470)
By "in a way" I've meant the encroachment of the default namespace. Much less smaller sin than snap's, but then docker is much bigger.
Re:Ubuntu stops shipping Flatpak by default by bantunes on Wednesday March 29, 2023 @06:40AM (#35355208)
I thought flatpak was a response to Ubuntu not open-sourcing the snap store code.
Re:Ubuntu stops shipping Flatpak by default by necovek on Wednesday March 29, 2023 @06:44AM (#35355240)
Sure, but I don't think it would have been much effort to build a snap store server with the client and package format open source.

IOW, if RH wanted to "join in", there was a cheaper path forward.

Re:Ubuntu stops shipping Flatpak by default by toyg on Wednesday March 29, 2023 @10:16AM (#35357626)
You don't want to be a sharecropper; using a format you can't meaningfully influence for something as key as application installation, is an obvious non-starter for any serious distribution.
Re:Ubuntu stops shipping Flatpak by default by esarbe on Wednesday March 29, 2023 @09:04AM (#35356643)
Isn't the server software proprietary?

https://en.wikipedia.org/wiki/Snap_(software)

So I don't see how RedHat or any other FOSS distributor could have been happy with Snaps.

Re:Ubuntu stops shipping Flatpak by default by fanatic2pope on Wednesday March 29, 2023 @10:23AM (#35357730)
Flatpak development actually started much earlier than that. The first version happened in 2007 when it was known as "Glick".

https://github.com/flatpak/flatpak/wiki/Flatpak's-History

Re:Ubuntu stops shipping Flatpak by default by account42 on Thursday March 30, 2023 @05:00AM (#35369899)
And AppImage was already a thing in 2004. To bad that everyone has to reinvent the wheel when it comes to packaging instead of building on the existing solutions.
Re:Ubuntu stops shipping Flatpak by default by account42 on Thursday March 30, 2023 @04:45AM (#35369794)
> they do have a problem getting the community involved, but part of that is the size and limited time their developers have.

A tiny inconsequential part. The bigger one is their refusal to give a shit about usage outside of Ubuntu with Canonical-controlled servers and their insistence on CLAs. Canonical has noone but themselves to blame for Red Hat to continously win the community for their solutions even when they were late to the party.

Re:Ubuntu stops shipping Flatpak by default by the_why_of_y on Thursday March 30, 2023 @08:52AM (#35371869)
Click was preceded by Alex Larsson's glick project, see this page from October 2007.

https://web.archive.org/web/20071012194830/http://www.gnome....

There was also glick2 in 2011.

https://web.archive.org/web/20111022070435/http://people.gno...

You may have heard of Alex Larsson as author of xdg-app.

I think the oldest related project was Klik, started in 2004 (and later renamed to AppImage).

This is his blog about the history of Flatpak.

https://blogs.gnome.org/alexl/2018/06/20/flatpak-a-history/

Also, the reason why Canonical have "a problem getting the community involved" is that they put a KEEP OUT sign on every one of their projects in the form of a CLA requiring copyright assignment.

Re:Ubuntu stops shipping Flatpak by default by chr15p on Wednesday March 29, 2023 @06:27AM (#35355111)
> Mir, Unity, now Snap. Ubuntu has a track record of wanting to go it alone.

This. Also bzr. They seem to want to control their projects completely and so even when they have good tech they lose out to more open, community developed, equivalents that build wide engagement and momentum.

I honestly don't understand it, you would have thought they would have learned by now that they don't have the engineering resources to do everything by themselves.

Compare that to Red Hat who always try (and sometimes even succeed!) at developing projects with the community and are far more successful at getting their projects adopted (I know people don't like them, but you cant deny they are effective at it)

Re:Ubuntu stops shipping Flatpak by default by necovek on Wednesday March 29, 2023 @06:32AM (#35355149)
Bzr is a great counter example.

Bzr "lost" because git had GitHub, whereas Launchpad was one too many things and slow to optimize for modern sensibilities.

(And Linux used a different VCS before git, so that didn't matter in adoption)

Imagine a world without GitHub, and I don't think git would be our go-to VCS. Though maybe not even Baazaar, but there are things like Mercurial too.

Re:Ubuntu stops shipping Flatpak by default by account42 on Thursday March 30, 2023 @05:08AM (#35369962)
Git already had momentum before GitHub became popular. And yes, it is absolutely Linux and other high-profile projects that ensured its success in the OSS world. Claiming that Linux having used a different VCS before git means that Linux's use of git doesn't matter is really odd when git was developed for the Linux project.
Re:Ubuntu stops shipping Flatpak by default by necovek on Thursday March 30, 2023 @08:29AM (#35371587)
It sure had momentum. As did a bunch of other distributed VCSes. If you were a party to voting what VCS to switch to for some of those high-profile projects, I'd very much like to hear about it.

In GNOME, a decision was delayed and bzr and git were pretty evenly matched.

Linux has previously used BitKeeper, but that didn't make it "win out", just like it didn't do so for Git. Sure, it wouldn't have existed if there wasn't a need for Linux.

I am only pointing out that it was GitHub that helped popularize arguably the worst UX among DVCSes: I don't hear people say "your free software contributions portfolio" — they'll just say "your GitHub profile".

Re:Ubuntu stops shipping Flatpak by default by mindajar on Thursday March 30, 2023 @11:58PM (#35382373)
bzr lost because it was poorly-architected, infuriatingly slow, and kept changing its repository storage format trying (and failing) to narrow the gap with Mercurial and Git performance. Or, at least that's why I gave up on it, well before GitHub really took off and crushed the remaining competition.

For my own sanity I began avoiding Canonical's software years ago, but to me they always built stuff with shiny UI that demoed well but with performance seemingly a distant afterthought. Their software aspirations always seemed much larger than the engineering resources/chops/time they were willing to invest.

Re:Ubuntu stops shipping Flatpak by default by necovek on Monday April 03, 2023 @08:46AM (#35422582)
Sure, that's a fair point as well (though bzr came out of GNU arch, which didn't originate at Canonical, and it was finally redesigned into something good at Canonical — not a knock on arch either, it was simply early).

The question then becomes: why not Mercurial which still had a better UX than git itself?

My point is that git won because of GitHub, despite lots of suckiness that remains to this day (it obviously has good things as well).

Re:Ubuntu stops shipping Flatpak by default by rickydroll on Wednesday March 29, 2023 @07:36AM (#35355671)
Another way to look at this situation is that canonical comes up with innovative solutions that are reasonably well engineered out of the box but they are rejected just because they are from canonical.

I'm struggling to find a way to characterize the difference between Red Hat/IBM and canonical's approach to the community. The most succinct I can come up with is that canonical releases projects and assumes that they are the one responsible for their creation., Red Hat releases rough ideas and code. There also seems to be a heavy political/disinformation campaign going on tearing down any solutions by canonical.

In either case, none of us can resolve the conflict. It's a pissing contest between canonical and IBM/Red Hat. I will keep choosing solutions that let me get my job done and get paid which is all that matters.

Re:Ubuntu stops shipping Flatpak by default by chr15p on Wednesday March 29, 2023 @08:36AM (#35356322)
I don't think it is a pissing context between them, they can both happily exist in the same world, it just interesting to see the difference in approach and try and figure out why one seems more successful than the other.

I think you're right that Canonical creates and releases projects and assumes they are in charge of them, but I disagree about Red Hat (honestly not sure what you mean by "rough ideas and code"), I think they tend to see whats already out there and then throw their weight behind that, then only if there isn't do they create their own and even then they are more open about how the project runs. That difference means Red Hat gets more momentum behind its projects, and that is what counts. (of course RH can throw more engineers at stuff as well, and that also helps a lot)

Its not some sort of conspiracy, nothing Canonical has ever done has had the same amount of hate as systemd has, its just a difference in approach.

Re:Ubuntu stops shipping Flatpak by default by rickydroll on Wednesday April 05, 2023 @04:47PM (#35460164)
What I mean by rough idea and code is simple. Is a project something complete you can take and just use or is it a bag of parts. xcp-ng is a take it and use it project. KVM is a bag of parts.

My experience with Red Hat is that it's frequently IKEA level assembly required. Canonical projects tend to be read the docs and just use it. Although there are some exceptions. For example a couple of years ago, cloud-init was not documented well enough for my taste. Took a second look just now and found new documentation that may revise my opinion.

Re:Ubuntu stops shipping Flatpak by default by hotpotamus on Wednesday March 29, 2023 @08:43AM (#35356411)
At an old job, we used probably hundreds of hardware and software vendors. I never had to deal with any of them directly, but I often spoke with those who did. There were complaints about all of them I'm sure, but the only ones that inspired bitch sessions over a drink were Oracle and Canonical. I'm told that both were just thoroughly unpleasant to deal with.
Re:Ubuntu stops shipping Flatpak by default by toyg on Wednesday March 29, 2023 @10:19AM (#35357673)
> they are rejected just because they are from canonical.

Or rather because they're proprietary, often closed-source, like Snap server.

Re:Ubuntu stops shipping Flatpak by default by commoner on Wednesday March 29, 2023 @11:02AM (#35358276)
Exactly. Canonical's Snap Store service is closed source and the Snap client is designed to only interface with Canonical's proprietary service. It's not "disinformation" to point out that Snap is a locked-down product controlled by Canonical, while most other packaging solutions for Linux are fully free and open source on both the client and server side. Canonical's one-sided approach to interacting with the Linux community will only encourage Linux users to reject Ubuntu and adopt distros with more sensible defaults.
Re:Ubuntu stops shipping Flatpak by default by account42 on Thursday March 30, 2023 @05:12AM (#35369988)
And even if they are open source, the development is not (initial development often closed completely, later development requiring CLAs) and the projects only care about Canonical's use of them to the point where even building them on other distros is often far from trivial.
Re:Ubuntu stops shipping Flatpak by default by toyg on Wednesday March 29, 2023 @10:21AM (#35357705)
> I honestly don't understand it, you would have thought they would have learned by now

The simple answer is that the company culture really, really wants to be "the Apple of Linux", with all that it entails. Whereas RedHat wants to be the Linux of Linux, they've learnt how the opensource game really works and they play it every day.

Re:Ubuntu stops shipping Flatpak by default by creshal on Wednesday March 29, 2023 @06:23AM (#35355086)
> Choosing a distro is basically choosing a DE and package manager these days anyway

What distribution doesn't support at least half a dozen desktop environments these days?

Re:Ubuntu stops shipping Flatpak by default by ChuckNorris89 on Wednesday March 29, 2023 @06:26AM (#35355108)
>What distribution doesn't support at least half a dozen desktop environments these days?

Most usually come out of the box with official support for only 2 DEs. Of course they can theoretically support every one out there if you manually install them.

Re:Ubuntu stops shipping Flatpak by default by creshal on Wednesday March 29, 2023 @06:57AM (#35355345)
Usually for all major distributions you get in the official repositories

- Gnome

- KDE

- Xfce

- Cinnamon

- Mate

- LXDE/LXQt

- Several *box stacked and assorted tiling window managers and assorted glue scripts

That's a fairly solid base of "support" even if the distributions don't provide live CDs with any particular setup preinstalled.

The only exception I've seen are the "we took an existing distro, threw away half the repository, patched 2 packages and slapped our own logo on top" wannabe hipster distributions that last an entire two years before folding due to being pointless.

Re:Ubuntu stops shipping Flatpak by default by lelanthran on Wednesday March 29, 2023 @07:21AM (#35355539)
You make it sound like so much work, "manual installing".

It's as simple as

     apt-get install $DE
Re:Ubuntu stops shipping Flatpak by default by ChuckNorris89 on Wednesday March 29, 2023 @07:26AM (#35355580)
Try that command on Arch, Fedora or OpenSUSE and let me know how it works.

Also, having multiple DEs in parallels rarely plays well with most distros. That's why they usually give you a downloads with one or two options already setup and tested.

Re:Ubuntu stops shipping Flatpak by default by creshal on Wednesday March 29, 2023 @07:37AM (#35355685)
They all have wikis you can read. And running DEs in parallel is a different problem from simply switching between two.
Re:Ubuntu stops shipping Flatpak by default by lelanthran on Wednesday March 29, 2023 @07:50AM (#35355798)
> Try that command on Arch, Fedora or OpenSUSE and let me know how it works.

Using apt, yum, pacman or the equivalent is still just a single command. Your implication that "manual installation" is extra work when it is a single command on all the desktop distros.

Saying that "executing a single command" is too much manual work is simply delusional.

> Also, having multiple DEs in parallels rarely plays well with most distros.

Nonsense. I'm currently running Plasma, which was not the default. I've installed so many in the past on this machine that I lost track of them.

I've switched DEs and window managers multiples on this machine, with no problems.

Re:Ubuntu stops shipping Flatpak by default by bibanez on Wednesday March 29, 2023 @06:14AM (#35355018)
I've had some success with Nix. Still I would only generally recommend it for development (even though I use NixOs)
Re:Ubuntu stops shipping Flatpak by default by sandwell on Wednesday March 29, 2023 @06:36AM (#35355179)
Also a Nix/NixOS user/contributer. I feel like Nix+nixpkgs could become the universal packaging solution adapted to build deb, rpm, etc packages.

Through nix-env it even already has the idea (albeit discouraged) of imperative package management like apt.

Having spent a while with NixOS, running containers for user applications seems like using a cannon to kill a fly. The 'simple' alternative is to drop FHS altogether - which containerization is kind of doing in a roundabout way by isolating the app filesystem from system fhs.

As for it being for developers only... I get that perspective. Debian/Ubuntu packaging is also hard, AUR packaging has its quirks. A lot of this is hidden behind the package manager, wheras with NixOS it is more obvious.

The killer idea for NixOS would be to make package management for Joe Q Public as easy to use as apt while. Tools like MyNixOS[1] are emerging which might bridge that gap.

[1] https://mynixos.com

Re:Ubuntu stops shipping Flatpak by default by TobTobXX on Wednesday March 29, 2023 @08:12AM (#35356032)
The one advantage Flatpak provides for me over Nix is containerisation. Not the bullet-proof kind, which allows you to run malware, but of the "reasonable" kind, which stops apps from storing to any directory they like just like that (only chroot level of "security"/isolation would be fine for me).

When there's a package manager / runtime that does both then I'm extremely interested.

Re:Ubuntu stops shipping Flatpak by default by smoldesu on Wednesday March 29, 2023 @12:16PM (#35359354)
Looking things up, someone has linked the Flatpak containerisation tech (bubblewrap) into the Nix store: https://github.com/fgaz/nix-bubblewrap

It looks... somewhat abandoned, but I'd wager it still works today. Failing that, setting up a shell alias to launch a regular binary in bubblewrap isn't too hard either.

Re:Ubuntu stops shipping Flatpak by default by TobTobXX on Friday March 31, 2023 @11:22AM (#35388469)
It's a long standing goal of mine to put together a distro with the system management aspect of NixOS, the isolation of bubblewrap and the lightness of Alpine. I'm gonna start this project when I have time™.
Re:Ubuntu stops shipping Flatpak by default by d33 on Wednesday March 29, 2023 @06:16AM (#35355028)
Why do you see it as more frustrating?
Re:Ubuntu stops shipping Flatpak by default by petepete on Wednesday March 29, 2023 @10:56AM (#35358188)
For users who want to install something like Slack who realise their distro supports Flatpak but only Snap is available, it's definitely a source of frustration.
Re:Ubuntu stops shipping Flatpak by default by account42 on Thursday March 30, 2023 @04:42AM (#35369769)
Competition of implementations is good but competition of standards less so. My biggest problems with Ubuntuland-alternatives is that they expect the world to pay the maintenance cost for their NIH syndrome. Mir as a Wayland compositor is fine. Mir as something that every toolkit needs to implement is a giant waste of everyone's time. The same is true for Snap - if you could make one package that works with flatpak and Canonical's implementation then I would be a lot less opposed. But you can't. Because Canonical doesn't care how much extra work everyone else has to do as long as they get their way. Thankfully, so far they don't in the end - I expect Snap to follow.