News for hackers. Stuff that matters.
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by rlpb on Saturday September 05, 2020 @10:17AM (#24383701)
> The whole idea that you'd need a container like environment to install an application on a Unix system is very far from where we should be. What's the point of dynamic linking if we then end up shipping half an OS with an application just to get around dependency hell? Might as well ship a pre-linked binary that just does system calls.

There are two models.

The first model is the traditional distribution model. The distribution curates and integrates software, picking (generally) one version of everything and releasing it all together. Users do not get featureful software updates except when they upgrade to a new distribution release - all at once.

The downside of this model is that developers who want to ship their new software or feature updates without waiting for a new distribution release get stuck into dependency hell and have to operate outside the normal packaging system. Same for users who want to consume this. Third party apt repositories and similar efforts are all fundamentally hacks and generally all end up breaking users' systems sooner or later. Often this is discovered only on a subsequent distribution upgrade and users are unable to attribute distribution upgrade failures to the hacked third party software installation they did months or years ago.

The second model is the bundled model. Ship all the dependencies bundled in the software itself. That's what Snaps (and Flatpaks, and AppImage) do - same as iOS and Android. This allows one build to work on all distributions and distribution releases. They can be installed and removed without leaving cruft or a broken system behind. They allow security sandboxing.

All your objections seem to be criticizing the bundled model itself, rather than anything about Snaps themselves except that they use the bundled model.

If you don't like the bundled model, then you can carry on using Ubuntu 20.04 without Snaps just fine.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by codethief on Saturday September 05, 2020 @10:36AM (#24383835)
I agree with everything you write, except:

> If you don't like the bundled model, then you can carry on using Ubuntu 20.04 without Snaps just fine.

No, you can't. Ubuntu has started replacing apt packages with snaps. So if you want to install those packages (such as Chromium) you now have to use the snap.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by rlpb on Saturday September 05, 2020 @10:45AM (#24383908)
You can install Chromium from a third party source just like you could before.

New distribution releases always add and remove packages. Chromium has been removed (as a deb). It's is no longer packaged as a deb because it's a rolling release upstream and it was too much work to backport featureful rolling release to debs.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by Delk on Saturday September 05, 2020 @01:40PM (#24385392)
The transition in Chromium packaging is understandable from a maintenance point of view. However, the general argument that you can just keep using the system without using snaps "just fine" doesn't really hold if the snaps begin to replace rather than supplement software that used to be packaged without it.

The same is also somewhat true if first-class tools such as Software (as in the "store" GUI) begin to push snap packages as the first thing, because then you will, by default, need to go through additional steps to find the packages that you want, and which used to be available as the first choice.

You can still do things, of course, but it might be that you need to start getting around the snap-centric design choices more often, and at that point it doesn't come at no usability cost to you anymore.

I don't actually use Ubuntu at the moment, so I don't know how much that is the case now, but if it is (or if seems like it's going that way), I understand the frustration.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by dabockster on Sunday September 06, 2020 @01:18AM (#24389162)
> However, the general argument that you can just keep using the system without using snaps "just fine" doesn't really hold if the snaps begin to replace rather than supplement software that used to be packaged without it.

Well, if you don't like it, you can always fork it. That's the beauty of open source. /sarcasm

Seriously though, all out replacing stuff with Snaps doesn't seem like the right move.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by mariusor on Sunday September 06, 2020 @05:39AM (#24390169)
> it was too much work to backport featureful rolling release to debs.

Considering that (as other posters have mentioned) deb packages are released by the vendor in this case it feels like a flimsy excuse.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by mjangle1985 on Saturday September 05, 2020 @10:48AM (#24383931)
>No, you can't. Ubuntu has started replacing apt packages with snaps. So if you want to install those packages (such as Chromium) you now have to use the snap.

You can almost always install via deb if you want instead.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by fartcannon on Saturday September 05, 2020 @11:33AM (#24384305)
For _now_, you can.

Slowly boiling the frog is really effective.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by mjangle1985 on Saturday September 05, 2020 @01:40PM (#24385387)
You believe that Canonical will remove the ability to install from deb?
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by toyg on Saturday September 05, 2020 @05:18PM (#24386914)
At some point, they likely will.

I'd wager they will require deb packages to be signed with a certain Canonical key that they will use strictly for basic system packages. Everything else will be a sandboxed Snap, left to third-parties to maintain, distributed through a Canonical Appstore that enables payments.

Maybe they will give you an option to "root" the system, and if you use it you'll lose any right to support or updates from Canonical.

Snap is fundamentally a commercial play to reduce support costs and enable an appstore.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by mjangle1985 on Saturday September 05, 2020 @05:23PM (#24386942)
IF they do that I'm obviously leaving their ecosystem, though I'm just a consumer so no clue how much effect I would have.

I really don't see what benefit that would provide them over other distros though and I'm not sure why they would make that choice to close down their system?

Fundamentally Linux works so well because of the free software movement and I don't see any app maintainers choosing to charge a fee for their software if they aren't already.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by toyg on Saturday September 05, 2020 @06:45PM (#24387444)
Arguably the Linux desktop ecosystem does not “work so well”. Adoption rates are still minuscule when compared to Apple or Microsoft numbers, and there is precious little support from commercial developers. The “year of Linux on the desktop” never happened, even after Canonical made it really simple to run Linux, so commercial support is still lacking - which in turn keeps users away. The Snap play is their latest attempt to increase monetization rates on the platform.
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by jacquesm on Saturday September 05, 2020 @08:27PM (#24387923)
And will help to kill what little adaptation there is. This really should stop.
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by sunnysigara on Sunday September 06, 2020 @06:07AM (#24390279)
Ubuntu concentrates on server's where security patches imported from Debian. Desktop and snap very little part.

If anything can go away its Ubuntu desktop.

Snap may stay since it is the defacto standard in IOT world.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by sergeykish on Saturday September 05, 2020 @11:12AM (#24384112)
The third model - rolling release. No need to test against many releases, no outdated dependencies and why so many people want to run latest browser on outdated system?

The forth model - multiple versions of dependencies live on the same system, environment constructed for each application. Deduplication works.

Bundled model has its values (just like vm) but it really shines with inadequate package management. If you don't like the bundled model switch to Arch Linux or NixOS.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by amelius on Saturday September 05, 2020 @06:41PM (#24387428)
I can't believe that in 2020 we're still discussing what is the best way to package and distribute software. Can anyone explain why it is taking the profession so long to get this fixed?
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by kevincox on Saturday September 05, 2020 @07:27PM (#24387668)
Because different solutions have different tradeoffs. It doesn't appear that there is a single solution which is best for all use cases.

So different systems switch between different methods as their prieceved value of the different usecases change which upsets people who see the values of the tradeoffs differently.

If you have the perfect solution I'm all ears.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by pdimitar on Sunday September 06, 2020 @06:09AM (#24390290)
One issue on Linux in particular is the [relatively] tight bond between your kernel version and libc, which makes using software compiled with different version of libc problematic part of the time (a particular libc version still supports multiple kernels though).

I experienced this lately when my Rust-compiled binary used too modern a libc version for the aging Docker container environment we used for deployment, which forced me to use another Docker container for local development -- which obviously isn't ideal and removes the 100% reproduceability promise.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by jacquesm on Saturday September 05, 2020 @08:28PM (#24387928)
Because we love re-inventing the wheel instead of repairing the wheel.
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by mavhc on Saturday September 05, 2020 @07:40PM (#24387726)
fundamental issue between "change everything once in a big step" and "many small changes".

First is pre internet, because updates cost money, and because pre internet security issues weren't common.

Second is now, change one thing every day, always run the latest code, automated testing to make the latest code always work. Also means don't need a security branch and a feature branch.

People hate change, and linux people have the ability to say no and do their own thing.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by sergeykish on Sunday September 06, 2020 @02:08AM (#24389355)
Because it is a hard problem?

Python has easy_install, pip, anaconda and wheel; virtualenv to isolate packages. Node has npm and yarn (is it resolved?). Ruby gem defines version in code, bundler in Gemfile, Gemfile.lock; vendor/, rvm gemset, BUNDLE_PATH to isolate packages. Even developers can't find right answer.

Because it matters?

Package management is the main differentiator, I love pacman, I love PKGBUILD and makepkg.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by nyanpasu64 on Saturday September 05, 2020 @02:15PM (#24385639)
I don't like the bundled model. I'm running Arch on my main machine currently. The AUR makes getting third-party packages easy. Unfortunately, I need VirtualBox for a class, and Arch's VirtualBox package won't run on the current Linux 5.8 kernel, and downgrading Linux on Arch is not easy. I switched to Windows for VirtualBox, but in retrospect I could've installed linux-lts.

Ubuntu is more stable in theory, but I've encountered broken packages (like hex editors with an incorrect hard-coded temp path, causing it to be unable to overwrite files).

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by sergeykish on Saturday September 05, 2020 @02:39PM (#24385837)
It is not super simple but I lived with outdated kernel and Xorg for a couple of years (because of Intel Poulsbo [1]). Process described in wiki [2] and uses virtualbox-host-modules as an example.

    $ pacman -Qi glibc
    Depends On      : linux-api-headers>=4.10  tzdata  filesystem
1. This version is not present in Arch Linux Archive anymore [3], search for package page [4], View Changes, search for corresponding PKGBUILD revision [5], makepkg. It is much easier if package is not that old and can be found in /var/cache/pacman/pkg/ or archive.

2. install with `pacman -U linux-4.15.8-1-x86_64.pkg.tar.xz`

3. skip package from being upgraded with /etc/pacman.conf IgnorePkg [6]

I had problems both with Ubuntu and Arch Linux updates. At least I can fix Arch Linux issues, Ubuntu felt broken.

[1] http://sergeykish.com/linux-poulsbo-emgd

[2] https://wiki.archlinux.org/index.php/Downgrading_packages

[3] https://archive.archlinux.org/packages/l/linux/

[4] https://www.archlinux.org/packages/core/x86_64/linux/

[5] https://github.com/archlinux/svntogit-packages/commits/packa...

[6] https://wiki.archlinux.org/index.php/Pacman#Skip_package_fro...

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by tracker1 on Sunday September 06, 2020 @02:04AM (#24389337)
But then you can't run leading edge hardware... My motherboard's network interface, wireless interface and my gpu all require a kernel version that's newer than the 19.10 ubuntu (and even 20.04 support for stability), let alone the last LTS release.

Ukku worked well for me to get newer kernels without issue, but kvm/virtualbox were totally borked, just as my hardware support was stable.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by sergeykish on Sunday September 06, 2020 @02:13AM (#24389373)
Sorry to hear, KVM does not work? I expect problems with virtualbox but KVM, can you share a story please?
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by elmolino89 on Saturday September 05, 2020 @05:39PM (#24387064)
Latest Manjaro has the latest VirtualBox in the package repository. It is easier imho switch from Arch to Manjaro than going to Win10
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by the_af on Saturday September 05, 2020 @01:00PM (#24385035)
I agree with your post except for this:

> If you don't like the bundled model, then you can carry on using Ubuntu 20.04 without Snaps just fine.

While it's true you technically can, at some point you have to ask yourself why you're going against the grain instead of picking a different distro (or not upgrading to 20.04, at least). Ubuntu wants you to use snaps. You can sidestep this, but you should ask yourself if you shouldn't just switch distros.

I just recently upgraded from Ubuntu 16.04 to 18.04. I don't see the reason to upgrade to 20.04 as long as the software I need works and I keep getting security fixes. Once this LTS gets EOL'd, I'll see what the current deal is with Ubuntu and seriously consider switching to another distro.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by pdimitar on Sunday September 06, 2020 @06:14AM (#24390313)
Manjaro has 99% of what Ubuntu has, runs a much more modern kernel, and has packages for literally anything you can think of in the extended software repository (namely Arch Linux's AUR).

I regret not taking the plunge and installing Manjaro against the will of our IT during onboarding (they don't forbid it, they simply can't promise good support if you don't install Ubuntu). I am sure I could have found a way to install the 2-3 corporate VPN / spy / monitoring agents my employer requires on the machines they issue for employees.

But anything I've needed of Manjaro, I always got it. Granted that's an anecdotal evidence, obviously -- I haven't tried running games, for example.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by Iolaum on Saturday September 05, 2020 @11:49AM (#24384427)
> If you don't like the bundled model, then you can carry on using Ubuntu 20.04 without Snaps just fine.

Not really. The platform, Ubuntu in this case, has clearly signaled that they want to move from debs to snaps. And apart from the technical benefits of snaps (sandboxing) you also get the drawbacks (they are slow, updates are forced, and there is only one source for them). What you propose is fighting the platform you are staying on, and that's not a great place to be. Far better to move to platform more aligned with your choices as a user.

P.S.: If anyone is looking for quick and dirty suggestions, there's pop!_OS which is quite close to Ubuntu so there won't be many changes to the user experience. In my case it was Fedora. The linux ecosystem is diverse enough to offer many choices.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by sunnysigara on Sunday September 06, 2020 @06:13AM (#24390309)
ROFL. When did they signal it ?

Servers are all deb which is main source of their income. If anything will go away is Ubuntu Desktop.

Snap may stay since it is the standard in IOT world.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by rickspencer3 on Saturday September 05, 2020 @05:01PM (#24386812)
> The downside of this model is that developers who want to ship their new software or feature updates without waiting for a new distribution release get stuck into dependency hell and have to operate outside the normal packaging system.

When I was writing apps for distros, I had the opposite problem. Every single release of GNOME and Ubuntu would break PyGTK in some way so that my software that used zero new features in the OS, would require at least some modifications and force me to maintain many versions. Finally, Gtk changed something that broke something in a fundamental way (something in Gtk TreeView, I forget what exactly) and I simple gave up maintaining software rather than suffer through figuring out how rewrite everything again.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by pdimitar on Sunday September 06, 2020 @05:35PM (#24394853)
Wouldn't some kind of static linking of the right GTK libraries inside your binary help? Completely newbie question, I am not claiming anything.
Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by kevincox on Saturday September 05, 2020 @05:18PM (#24386911)
I agree with most of your post. However the last line is off.

> If you don't like the bundled model, then you can carry on using Ubuntu 20.04 without Snaps just fine.

This blog post and many of the contents are claiming that you can't just use Ubuntu without snaps anymore as they are being forced upon users.

Re:Ubuntu 20.04 LTS’ snap obsession has snapped me off of it by young_unixer on Saturday September 05, 2020 @07:13PM (#24387601)
Those of us that prefer bundles have been "forced" to use centralized repositories our whole lives.