News for hackers. Stuff that matters.
Re:Linux Mint drops Ubuntu Snap packages by ncr100 on Wednesday July 08, 2020 @01:31PM (#23772098)
Is there no way to sandbox these packages - "have you cake and eat it too?" I'm a noob to modern Linux.

Edit: Are snaps images? ...like containers?

Edit 2: answer:

> mounted dynamically by the host operating system, together with declarative metadata that is interpreted by the snap system to set up an appropriately shaped secure sandbox or container for that application

Re:Linux Mint drops Ubuntu Snap packages by michaelmrose on Wednesday July 08, 2020 @01:46PM (#23772292)
Sandboxing addresses AN issue but does not address any of the issues discussed in this article.

Also sandboxing and running apps under reduced permissions makes a lot of sense but should be seen as a tool to increase security not an answer outright as poorly used any tool can be less effective or even harmful.

Historically locking down increasingly effectively often leads to impeding things the user actually wants to do which leads to apps asking for and granting permissions with the net effect of training users click yes to enable whatever the app wants to do.

It ends up being not just a technical challenge but a psychological one as well and its less easily resolved once you start having to deal with real users.

Re:Linux Mint drops Ubuntu Snap packages by blablabla123 on Wednesday July 08, 2020 @02:15PM (#23772668)
It seems to incorporate some novel ideas despite its obvious shortcomings.

I also think that so far Linux distributions have done very poorly when it came to cross-distribution/forward/backward compatibility of packages. This is a non-issue for popular Opensource packages since they can be easily packaged by the distributors. But not so popular packages sometimes need to be installed in a hacky way when they are not available for the target distribution. Even worse when dealing with commercial software, it can happen that it degrades with each distribution update.

Also I think that probably the package format will improve over time and add additional features, that would allow auditing for instance. Also with proper de-duplication (perhaps even on filesystem level) it should be possible to also deal with waste of space.

Re:Linux Mint drops Ubuntu Snap packages by solarkraft on Wednesday July 08, 2020 @01:36PM (#23772160)
The main (and better supported) competitor is Flatpak, which at least doesn't have the terrible marketing.
Re:Linux Mint drops Ubuntu Snap packages by superkuh on Wednesday July 08, 2020 @01:45PM (#23772279)
All containerization is just the fever to the sickness that is the futureshock from extremely fast rate of development of major libs like c++$year, glibc (no matter what they say about having stable endpoints), and the like. You can't run a program written today on the system repo libraries from 5 years ago.

Containers try to mitigate this problem but like a fever they often end up making things worse.

Re:Linux Mint drops Ubuntu Snap packages by zentiggr on Wednesday July 08, 2020 @02:01PM (#23772493)
I don't run any APT based distribution right now but I understand the issues... I think the biggest problem I see is Canonical developing what looks like a very useful tool but holding it proprietary.

If Canonical provided the snap creation and hosting tools to the community I imagine it would be judged on its technical merits.

As it is, I see more and more reports that Canonical is trying to gain more and more control and that's exactly what I don't like to see.

Would have tried Ubuntu but they've poisoned that well. I'll have to recalculate.

Re:Linux Mint drops Ubuntu Snap packages by xav0989 on Wednesday July 08, 2020 @02:48PM (#23773013)
As far as I can tell, snapcraft[0], the tool that allows the creation of snaps is open-source and on github. However the hosting server-side code is closed source.

[0]: https://github.com/snapcore/snapcraft

Re:Linux Mint drops Ubuntu Snap packages by account42 on Thursday July 09, 2020 @08:40AM (#23779531)
> glibc (no matter what they say about having stable endpoints)

glibc does have a stable ABI. What they don't have is a frozen ABI so they will all new entry points. But old programs linked against glibc do and will continue to work fine.

> You can't run a program written today on the system repo libraries from 5 years ago.

You can absolutely write programs today targeting 5 year old ABIs. I agree that the FOSS toolchains could be more helpful there so you can just pass some compiler flag for the oldest glibc version you want to support but it is not impossible to achieve that on your own.

Re:Linux Mint drops Ubuntu Snap packages by solarkraft on Thursday July 09, 2020 @07:47AM (#23779136)
Do you see the fast development itself as a problem? I tend to see as the real issue that most package managers only allow one version of a package to be installed, leading to conflicts very quickly.

The best known manager that does allow this is Nix, do you know of any more, maybe ways to get this working with "traditional" package managers (completely transitioning to Nix is would be quite hard, from my limited experience)?

Re:Linux Mint drops Ubuntu Snap packages by remexre on Thursday July 09, 2020 @03:48PM (#23784285)
For many packages, gentoo's portage handles this with slots
Re:Linux Mint drops Ubuntu Snap packages by drewg123 on Wednesday July 08, 2020 @05:20PM (#23774372)
Wouldn't it just be simpler to statically link apps then?
Re:Linux Mint drops Ubuntu Snap packages by enriquto on Thursday July 09, 2020 @06:06AM (#23778577)
Indeed! All this "packaging abstraction" stuff is ridiculously silly when you can simply distribute a static binary.
Re:Linux Mint drops Ubuntu Snap packages by ncr100 on Wednesday July 08, 2020 @01:40PM (#23772217)
Thank you - :)

Reading about the cons of Snap now - "auto-updates cannot be turned off" - https://en.wikipedia.org/wiki/Snap_(package_manager)

Re:Linux Mint drops Ubuntu Snap packages by _jal on Wednesday July 08, 2020 @01:58PM (#23772468)
Yep. One of many reasons they're banned in our shop.

Even for client software it is bad - an app quitting out from under me because it wants to update is functionally equivalent to a crashing bug - but they're offering daemons this way, which is just insane.

Who doesn't want all their containers randomly restarting because someone up the distro chain decided when your machine needed to upgrade?

https://snapcraft.io/lxd

Re:Linux Mint drops Ubuntu Snap packages by tomponline on Wednesday July 08, 2020 @02:24PM (#23772760)
The containers do not restart when the snap package is updated.
Re:Linux Mint drops Ubuntu Snap packages by tssva on Wednesday July 08, 2020 @04:59PM (#23774165)
If snap decides to update lxd on the nodes of your lxd cluster at the same time that a node has failed it is a CF.

The cluster will not come up because your down node is now not the same version as the other cluster nodes.

Re:Linux Mint drops Ubuntu Snap packages by Lorkki on Thursday July 09, 2020 @09:18AM (#23779831)
> an app quitting out from under me because it wants to update

This doesn't happen, at least on account of Snap. It's copy-on-write when it comes to updates, and whatever version you have running at the time of update will happily keep on running. I've been mildly confused by this a couple times, when I would end up with two different versions of VS Code running side by side, but the bright side was that my work wasn't interrupted.

It incidentally also sidesteps all the problems that stem from libraries or configuration being updated under a running application, which can happen with Apt.

Re:Linux Mint drops Ubuntu Snap packages by nawgszy on Wednesday July 08, 2020 @01:44PM (#23772271)
Just what we all want on our production hosts.
Re:Linux Mint drops Ubuntu Snap packages by entropicdrifter on Wednesday July 08, 2020 @01:46PM (#23772295)
Especially when they're being installed covertly through APT
Re:Linux Mint drops Ubuntu Snap packages by xet7 on Wednesday July 08, 2020 @06:47PM (#23775059)
Auto-updates of all Snap packages can be turned off at /etc/hosts by adding a line:

127.0.0.1 api.snapcraft.io

Re:Linux Mint drops Ubuntu Snap packages by bscphil on Wednesday July 08, 2020 @07:01PM (#23775194)
This is sort of like saying you can turn off auto-updates by leaving your Internet connection disabled - true, but missing the point that what people are primarily complaining about is having to adopt an adversarial relationship to the software they use.
Re:Linux Mint drops Ubuntu Snap packages by AnIdiotOnTheNet on Wednesday July 08, 2020 @01:48PM (#23772314)
Depending on the qualities your after, AppImage is also really great. Advantages over Flatpak are that they are completely portable (you can store them anywhere and run them from anywhere), and they don't require a special runtime or package management infrastructure of any kind.
Re:Linux Mint drops Ubuntu Snap packages by solarkraft on Thursday July 09, 2020 @07:07AM (#23778882)
AppImages are basically (kind of) statically linked binaries.

Not my favorite to install software since they're usually huge (500mb is not far out of the norm), but great for things that are hard to install, as they're pretty much guaranteed to work.

I just wish there was a command line switch to stop it from wanting to install itself on my system (move the AppImage to /opt).

Re:Linux Mint drops Ubuntu Snap packages by AnIdiotOnTheNet on Thursday July 09, 2020 @07:40AM (#23779087)
I have never seen that behavior from an AppImage. I just mark them executable and run them and they do their thing. If there is a specific AppImage behaving this way then it is probably the fault of the author, and if all of them are doing it then I wonder if it is the behavior of something like appimaged?
Re:Linux Mint drops Ubuntu Snap packages by entropicdrifter on Wednesday July 08, 2020 @01:37PM (#23772188)
If you need this kind of packaging but want to retain freedom, just use an alternative solution like flatpak, which sandboxes from the get-go and lets you control what parts of your system the application can access
Re:Linux Mint drops Ubuntu Snap packages by DoofusOfDeath on Wednesday July 08, 2020 @01:58PM (#23772461)
> just use an alternative solution like flatpak

Saying "just use an alternative" seems overly dismissive of the complications that entails.

IIUC, the only options for that are (a) abandon Ubuntu, or (b) actively circumvent Ubuntu's software distribution infrastructure, reminiscent of dealing with Windows 10 forced updates.

IMHO this somewhat erodes Ubuntu's value proposition.

Re:Linux Mint drops Ubuntu Snap packages by zentiggr on Wednesday July 08, 2020 @02:05PM (#23772548)
I have a laptop that I'm planning on rebuilding from a failed NTFS/Win10 system to Linux something.

Now I know it's not going to be Ubuntu or anything else derived from Canonical.

Re:Linux Mint drops Ubuntu Snap packages by DoofusOfDeath on Wednesday July 08, 2020 @02:15PM (#23772656)
> Now I know it's not going to be Ubuntu or anything else derived from Canonical.

Why avoid Ubuntu derivates like Mint or Pop!_OS, though?

They're doing the heavy lifting of fighting Canonical on this issue. Maybe using one of those distros instead of vanilla Ubuntu actually strengthens the pressure that Canonical feels on this topic.

Re:Linux Mint drops Ubuntu Snap packages by zentiggr on Wednesday July 08, 2020 @04:46PM (#23774058)
Fair point, but honestly I'm in the "don't have enough time to Gentoo this build" category.

If I know I can avoid Snap crap by changing distros for now, that's what I have a timeslice for.

Re:Linux Mint drops Ubuntu Snap packages by Endeavourist on Wednesday July 08, 2020 @02:33PM (#23772852)
Why not EndeavourOS? It's based on Arch Linux, with minimal numbers of external packages; quite unlike Manjaro actually. You can just treat it as a standard Arch install, and even use the ISO to boot with wi-fi drivers and all and install Arch plainly, without the non-wifi and other regrets. EndeavourOS is pretty great; I personally use it as a live-ISO (XFCE environment) and just install Arch from within the live EndeavourOS booted iso. Just throwing it out there.
Re:Linux Mint drops Ubuntu Snap packages by zentiggr on Wednesday July 08, 2020 @04:48PM (#23774075)
Hadn't heard the name but glad I did. I was going to look for a live CD distro with good NTFS read support for the old drive recovery. This sounds good.
Re:Linux Mint drops Ubuntu Snap packages by lmm on Thursday July 09, 2020 @02:04AM (#23777375)
I'd seriously recommend looking at FreeBSD instead. Everything Linux seems to be going down this we-know-better-than-you path.
Re:Linux Mint drops Ubuntu Snap packages by entropicdrifter on Wednesday July 08, 2020 @03:22PM (#23773325)
I agree that this erodes Ubuntu's value proposition. I run Manjaro with KDE, personally.
Re:Linux Mint drops Ubuntu Snap packages by xet7 on Wednesday July 08, 2020 @06:53PM (#23775116)
AFAIK Ubuntu does not force reboot like Windows 10.
Re:Linux Mint drops Ubuntu Snap packages by DoofusOfDeath on Thursday July 09, 2020 @10:22AM (#23780550)
I believe you're correct. I'm not arguing that Ubuntu is now as bad as Windows 10; just that it's a move in that direction.
Re:Linux Mint drops Ubuntu Snap packages by ncr100 on Wednesday July 08, 2020 @01:44PM (#23772275)
Neat - "permissions that are defined by the maintainer of the Flatpak and can be controlled (added or removed) by users on their system" - https://en.wikipedia.org/wiki/Flatpak

I'm wondering now if Wikipedia would be appropriate to host a linux sandboxed app packaging comparison chart in the form of https://linuxhint.com/snap_vs_flatpak_vs_appimage/ - and it would be extensible ...since Wikipedia.

Re:Linux Mint drops Ubuntu Snap packages by ex_amazon_sde on Wednesday July 08, 2020 @03:26PM (#23773359)
You can easily create very strong sandboxes for daemons using unit files and packaging them as native OS packages.