News for hackers. Stuff that matters.
Re:Disabling Snaps in Ubuntu 20.04 by jaytaylor on Friday April 24, 2020 @04:52PM (#22972786)
Kudos to the OP, I'm glad this got posted on hacker news because Snap is so ridiculously broken.

Since 16.04, Snaps have been a huge pain for me with running LXC in production environments.

By default, Snap applies updates and restarts Systemd services anytime it likes, and there's no way to turn this behavior off! The only way to get around it is to download the Snap package binary and install that directly. Then Snap won't "know" where to get updates.

(Caveat emptor: "Workarounds" like this can easily lead to a bad security scenario, since any critical security patches won't be installed by any standard system update process)

Did I mention that a fair percentage of the time the Snap updates would leave LXC in a completely broken state? In production (and development, too)!

The final nail in the coffin in this scenario comes in the form of Snap being the official recommended way to install LXC. I don't know if Stéphane and friends even publish Debian packages anymore.

I get the idea behind snap and appreciate it, but the lack of configurability and no clear definition of what stable really even means . . .

Re:Disabling Snaps in Ubuntu 20.04 by agentx3r on Friday April 24, 2020 @07:21PM (#22974007)
Hear hear. I imagine for dogfooding, LXD is only packaged in snap, so we can't use apt as the source anymore. After migrating, an upstream push to a 'stable' LXD snap channel introduced a regression that borked our environments, and there was no way to:

1. prevent machines in the fleet from pulling the broken LXD update

2. rollback broken machines to the previously working LXD version on the same channel, since it no longer existed in the Snap Store™.

What a joke! Now we're burnt on snap _and_ LXD.

Re:Disabling Snaps in Ubuntu 20.04 by simosx on Friday April 24, 2020 @09:23PM (#22974751)
Canonical packages LXD as a snap package. Other distributions can package LXD in their favorite packaging format, and some do.

Some developers are trying to package for Debian. The work is in progress at https://wiki.debian.org/LXD

Re:Disabling Snaps in Ubuntu 20.04 by zertrin on Saturday April 25, 2020 @12:15AM (#22975505)
I've been looking forward for this work to come to something working for some time already, but it's been already 3 years I've eyed on it, is it now coming to something working "soon"?
Re:Disabling Snaps in Ubuntu 20.04 by CameronNemo on Saturday April 25, 2020 @12:38AM (#22975608)
Debian is a bad choice if you want to package go applications (or rust apps, for that matter). Debian requires that all those little static dependencies be individually packaged. Common container software like lxd, podman, and umoci are not found in Debian.

The following distributions package LXD (that I know of):

* Void Linux

* Alpine Linux

* Arch Linux

* Gentoo

Some of those are more suitable for production installs than others, but if you know what you are doing and manage your deployments well, all of them could work.

Re:Disabling Snaps in Ubuntu 20.04 by francislavoie on Saturday April 25, 2020 @10:58AM (#22978600)
Do you happen to know _why_ Debian decided to require that for Go projects? It's so absurdly complicated.

I've been looking into .deb packaging for Caddy but it really feels like they require us to jump through too many hoops to make it happen. I'd much rather just ship a prebuilt binary.

Re:Disabling Snaps in Ubuntu 20.04 by Foxboron on Monday April 27, 2020 @09:24AM (#22995581)
>It's so absurdly complicated.

Security. Dynamically linking stuff is always going to be better than statically linking. Do you trust upstream to keep track of security issues and rebuild in the absurd dependency tree that is Golang software? Or the multi-year old effort which is the current Debian security team?

The reason why it's absurdly complicated is solely on the Golang team, not Debian.

Re:Disabling Snaps in Ubuntu 20.04 by tribaal on Saturday April 25, 2020 @02:58PM (#22980386)
I would love a deb-packaged Caddy as well :(
Re:Disabling Snaps in Ubuntu 20.04 by francislavoie on Monday April 27, 2020 @01:04AM (#22993033)
You'll be happy to know Caddy will have a deb package in the next release (albeit not part of official debian repos), see https://github.com/caddyserver/caddy/pull/3309
Re:Disabling Snaps in Ubuntu 20.04 by willtim on Saturday April 25, 2020 @02:37AM (#22976157)
I would add NixOS to that list. Especially if you value rolling back upgrades or pinning package versions.
Re:Disabling Snaps in Ubuntu 20.04 by CameronNemo on Saturday April 25, 2020 @05:38PM (#22981760)
I was not aware. Too late to edit now, but that is indeed a great option! Rolling release is a bit ambitious for a hyperlink without nixos like features.
Re:Disabling Snaps in Ubuntu 20.04 by Foxboron on Monday April 27, 2020 @09:25AM (#22995596)
Funny. I have been working on a blogpost detailing the silly things I encountered while packaging LXD properly for Arch Linux. Should probably finish it up one of these days.
Re:Disabling Snaps in Ubuntu 20.04 by rawoke083600 on Saturday April 25, 2020 @01:45AM (#22975901)
Ahh Gentoo :) I once build-from-source think it was called stage-1 install on a SBC(Single Board Computer) 486DX. I compiled well over 4 days :D
Re:Disabling Snaps in Ubuntu 20.04 by yrro on Saturday April 25, 2020 @03:21AM (#22976350)
Podman is in the NEW queue, and debs can be built from the packaging repo in the meantime., FYI.
Re:Disabling Snaps in Ubuntu 20.04 by CameronNemo on Saturday April 25, 2020 @12:04PM (#22979074)
Thanks for the info! Good to hear.
Re:Disabling Snaps in Ubuntu 20.04 by dvfjsdhgfv on Saturday April 25, 2020 @06:46AM (#22977195)
Yes, the situation with LXD packaging is ridiculous. I always wondered, do the maintainers really use it themselves for anything non-trivial?
Re:Disabling Snaps in Ubuntu 20.04 by Foxboron on Monday April 27, 2020 @09:27AM (#22995605)
Without too much details. But I personally got into LXD while bootstrapping kubeadm clusters with salt. LXD profiles made it very easy to work with compared to alternatives.

It's clearly not production stuff, but it works very well for a quick test bed before production deployments.

Re:Disabling Snaps in Ubuntu 20.04 by _jal on Friday April 24, 2020 @05:36PM (#22973165)
I guess users have been sufficiently beaten into submission that many of them will put up with software randomly quitting on them, but the idea that daemons should be snaps is doubly crazy. "Oh, Tomcat just updated itself, that's why we were down."

I really have no idea what people are thinking sometimes.

Re:Disabling Snaps in Ubuntu 20.04 by theossuary on Friday April 24, 2020 @06:33PM (#22973612)
I always resisted running Ubuntu in production, even when it was much easier to install the necessary software. When you pick a distro, you're picking their packaging and maintainer culture. I've always prefered CentOS for that reason. Even the little things, like installing a new package won't start/enable the services (because you should have a chance to configure it first) always came off as more pragmatic for system administration.
Re:Disabling Snaps in Ubuntu 20.04 by jlgaddis on Saturday April 25, 2020 @02:49PM (#22980315)
I run Debian on my workstation and laptops but still prefer to use CentOS/RHEL on my servers.

The automatic startup of newly installed services (before you even have the opportunity to configure them) on Debian (and derivatives) has always bothered me and is a (small) factor in my decision.

Fortunately, there are a few "workarounds" to prevent newly installed services from being automatically started!

First, there's the brute-force / heavy-handed approach -- override the systemd presets [0] to set all services to disabled by default:

  $ cat /etc/systemd/system-preset/00-disable-all-services.preset
  disable *
Alternatively, as a one-time thing, you can "mask" the service before installing the package but this requires you to manually create the symlink (instead of using "systemctl mask") -- and requires you to know the name of the service unit beforehand:

  $ ln -s /dev/null /etc/systemd/system/nginx.service
  $ apt install nginx
  # ... configure nginx as desired ...
  $ systemctl enable nginx
  $ systemctl start nginx
Finally, there's the old, "sloppy" (IMO) method of "hacking" the /usr/sbin/policy-rc.d script to immediately exit with a status code of 101 ("action forbidden") [1].

(I'd recommend avoiding the latter entirely and going with whichever of the first two options better suits your needs.)

---

EDIT: Just remembered another method but I'm not sure if it still works:

  $ RUNLEVEL=1 apt install nginx
---

[0]: https://www.freedesktop.org/software/systemd/man/systemd.pre...

[1]: https://people.debian.org/~hmh/invokerc.d-policyrc.d-specifi...

Re:Disabling Snaps in Ubuntu 20.04 by monadic2 on Friday April 24, 2020 @07:15PM (#22973959)
> I guess users have been sufficiently beaten into submission that many of them will put up with software randomly quitting on them

A cultural acceptance of WIP software seems common, in free software communities, in my experience.

Re:Disabling Snaps in Ubuntu 20.04 by yjftsjthsd-h on Friday April 24, 2020 @08:53PM (#22974580)
> A cultural acceptance of WIP software seems common, in free software communities, in my experience.

On the one hand, yeah it's harder to complain when something is only built in someone's spare time for free. On the other hand... is non-FOSS really any better? Has Windows yet managed to re-merge the old and new control panels?

Re:Disabling Snaps in Ubuntu 20.04 by mixmastamyk on Friday April 24, 2020 @09:00PM (#22974621)
And the middle one from Win 7?
Re:Disabling Snaps in Ubuntu 20.04 by lokedhs on Saturday April 25, 2020 @11:49AM (#22978967)
The rumour is that the old control panel will be removed in the next version of Windows 10, so I'd hope so?
Re:Disabling Snaps in Ubuntu 20.04 by _jal on Friday April 24, 2020 @09:21PM (#22974739)
There's a difference between bugs and software developers who cares less about the user than software being up-to-date.

The first is a fact of life. The second is bad judgement.

Re:Disabling Snaps in Ubuntu 20.04 by Wowfunhappy on Friday April 24, 2020 @05:01PM (#22972863)
Ugh, is it still impossible to disable Snap autoupdates?

Even if people should be updating regularly, forcing them feels completely antithetical to the Linux ethos of users having control over their devices.

Re:Disabling Snaps in Ubuntu 20.04 by stefan_ on Friday April 24, 2020 @06:04PM (#22973399)
The Snap team has some experience with this, seeing as how 20.04 has released and you still can't move the fricking ~/snap folder. Creating some generically named top-level folder in the users home directory is a straightforward fuck you to all users.

Since 2017: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1575053

Re:Disabling Snaps in Ubuntu 20.04 by guiambros on Friday April 24, 2020 @10:20PM (#22974991)
This. Came here to post the same bug. I've been following the thread for the last 3 years, and it's an absolute mess.

I feel bad for the maintainers; it must be difficult to deal with all the rude and borderline disrespectful comments -- and particularly for something you're donating your time for free after all. But I must say that the architectural decision of creating a ~/snap was a colossal mistake.

Re:Disabling Snaps in Ubuntu 20.04 by ric2b on Saturday April 25, 2020 @03:11PM (#22980513)
Are they really donating their time, aren't they Canonical employees? Canonical being a company that is paid mostly by companies that use their distro in production?
Re:Disabling Snaps in Ubuntu 20.04 by Brian_K_White on Monday April 27, 2020 @02:20AM (#22993350)
My response to "it's free" is "Here's a turd. SHUT UP IT'S FREE"

It's not an argument. It's freeness is a completely irrelevant property.

Re:Disabling Snaps in Ubuntu 20.04 by JosephRedfern on Friday April 24, 2020 @06:13PM (#22973457)
Yeah. That is what winds me up the most about snap. It is so... obnoxious! Why can’t it be .snap?! Or even better, something xdg compliant?
Re:Disabling Snaps in Ubuntu 20.04 by jeroenhd on Friday April 24, 2020 @07:06PM (#22973902)
Dang, that really sucks. I was planning on updating my desktop to 20.04 but after reading about Canonical pushing snaps and now this thread basically claiming that moving or renaming the directory is impossible because what is in my opinion a design flaw in the entire system design, I think I'll switch to Manjaro or Arch for my desktop instead.

I am on the rolling releases already but I'm not going to install an LTS version that is so deeply integrated with the distributor while at the same time ignores the directory standards so incredible blatantly.

Re:Disabling Snaps in Ubuntu 20.04 by mcpeepants on Friday April 24, 2020 @07:47PM (#22974195)
arch is really a pleasure to use on the desktop, especially if you're already comfortable with a rolling release distro.
Re:Disabling Snaps in Ubuntu 20.04 by m463 on Saturday April 25, 2020 @05:34PM (#22981731)
I love arch.

I think the (not that bad) manual installation process might keep some folks from installing it, but it makes you learn to choose from the very beginning.

After the initial install, update it on your schedule, and install things as you decide they are needed.

Ubuntu is the opposite -- install the world, then go madly trying to disable and remove the phone-home, forced-update, bloat.

  # ps
(see pages of stuff you don't need running)
Re:Disabling Snaps in Ubuntu 20.04 by jeroenhd on Friday April 24, 2020 @08:21PM (#22974406)
I agree, I'm using Manjaro on my laptop and it works like a treat. I have read the horror stories of a botched Arch upgrade so I think I'll stick to the slightly-more-stable Manjaro but the ecosystem itself is very nice for the moderately familiar Linux user.
Re:Disabling Snaps in Ubuntu 20.04 by eptcyka on Saturday April 25, 2020 @02:45AM (#22976194)
I develop software that tries to target as many distros as possible, and I really don't see how Manjaro is in any way better than Arch. Botched upgrades aside, Manjaro is the only distro that couldn't produce a valid iso to boot on KVM/qemu. It has a very weird kernel config, sometimes users don't seem to have modules that are found on literally any other distro. Which is very sad because Arch just works.
Re:Disabling Snaps in Ubuntu 20.04 by jeroenhd on Saturday April 25, 2020 @03:17AM (#22976332)
In my experience the Manjaro config tends to work better on some of the hardware I've tried it on, requiring less tweaking to get it to run properly.

I'll also admit that I can't for the life of me get Arch to properly install with all the tools and features that are normally built-in to desktop environments to work on first boot. I'm sure I can make it work if I give it another try now that I've gotten more used to using Manjaro, but the Arch installation experience is not something I want to go through again any time soon.

I understand that most Arch users will want to decide exactly how they set up their system and all, but for my personal (non-work) machine I just want an operating system that works, allows me to mess with the standard Linux stuff and manages to install itself without me holding its hand. I'd much rather tick a box that says "enable full disk encryption" than manually configure cryptsetup and LUKS parameters. It's just too much effort for what I get out of it.

Re:Disabling Snaps in Ubuntu 20.04 by nine_k on Friday April 24, 2020 @09:47PM (#22974863)
Void Linux is also great if you're not a fan of systemd.
Re:Disabling Snaps in Ubuntu 20.04 by dzonga on Friday April 24, 2020 @11:44PM (#22975362)
pop os would be good alternative too. since pop os will be on flatpak n apt.
Re:Disabling Snaps in Ubuntu 20.04 by TylerE on Saturday April 25, 2020 @01:30AM (#22975836)
Would you expect anything else from the distro that rammed half-baked versions of systemd, pulseaudio, and unity down users throats?
Re:Disabling Snaps in Ubuntu 20.04 by amaccuish on Friday April 24, 2020 @07:08PM (#22973909)
I really wish it had been .snap
Re:Disabling Snaps in Ubuntu 20.04 by teraflop on Friday April 24, 2020 @05:18PM (#22973012)
Props to Microsoft, for getting their approach to Windows updates adopted as an industry standard! /s
Re:Disabling Snaps in Ubuntu 20.04 by Barrin92 on Saturday April 25, 2020 @12:54AM (#22975687)
I think automatic updates on all platforms are probably an immense net benefit to the world given the huge degree of security vulnerabilities it avoids.

Ubuntu users may be more tech proficient than average users but even for developer machines, I think it takes a lot of concern out of the equation if the software is up-to-date.

As far as I'm concerned this doesn't deserve an '/s'.

Re:Disabling Snaps in Ubuntu 20.04 by enriquto on Saturday April 25, 2020 @09:19AM (#22977878)
The option to have automatic updates (whether it is enabled by default or not) is an entirely different issue than the obligation to have automatic updates. The first one is a blessing, the second one is a nightmare.
Re:Disabling Snaps in Ubuntu 20.04 by RMPR on Friday April 24, 2020 @06:22PM (#22973533)
Next step, introduce the mandatory restart as a standard.
Re:Disabling Snaps in Ubuntu 20.04 by jschwartzi on Friday April 24, 2020 @08:33PM (#22974481)
But wait for the user to have a week-long job running for three days before you do it. That way they have to explain to their boss why there is now a 3 day delay.
Re:Disabling Snaps in Ubuntu 20.04 by nine_k on Friday April 24, 2020 @09:50PM (#22974876)
It's critical? Don't use hobbyist software for that then. Take Debian or CentOS or something else with a non-cavalier development culture.
Re:Disabling Snaps in Ubuntu 20.04 by hannasanarion on Friday April 24, 2020 @10:54PM (#22975162)
Ubuntu is "hobbyist" now? That's certainly not how they bill their entire platform.
Re:Disabling Snaps in Ubuntu 20.04 by Sharlin on Friday April 24, 2020 @11:15PM (#22975246)
I’m not sure how they’re trying to bill it these days, but certainly actions speak louder than words. All of Canonical’s design decisions seem to be aimed at making a consumer OS rather than a workstation or server one.
Re:Disabling Snaps in Ubuntu 20.04 by nine_k on Saturday April 25, 2020 @12:24AM (#22975543)
Ubuntu, no. Snap, seemingly yes.
Re:Disabling Snaps in Ubuntu 20.04 by Brian_K_White on Monday April 27, 2020 @02:25AM (#22993379)
She was asking for it by wearing that eh?
Re:Disabling Snaps in Ubuntu 20.04 by fredsanford on Friday April 24, 2020 @09:19PM (#22974735)
If it's good enough for Boeing...
Re:Disabling Snaps in Ubuntu 20.04 by curt15 on Friday April 24, 2020 @06:30PM (#22973586)
Re:Disabling Snaps in Ubuntu 20.04 by james_s_tayler on Friday April 24, 2020 @05:50PM (#22973289)
I remember updating Ubuntu once. It bricked my installation for some reason. Ever since then I rarely update software.

With Ubuntu I just wait until the next LTS.

Re:Disabling Snaps in Ubuntu 20.04 by yjftsjthsd-h on Friday April 24, 2020 @09:04PM (#22974651)
An important clarification: You never upgrade across major versions in place, or you never `apt-get upgrade`? I understand not jumping versions, but never applying security updates seems... imprudent.
Re:Disabling Snaps in Ubuntu 20.04 by kevin_thibedeau on Friday April 24, 2020 @06:02PM (#22973383)
May as well use Debian and escape the insanity.
Re:Disabling Snaps in Ubuntu 20.04 by avhception on Friday April 24, 2020 @05:45PM (#22973248)
I've got an ansible playbook that modifies my ~/.config/lxc/config.yml for certain deployment scenarios.

Due to LXC now being a snap, the file is simply not there. I guess it's 5 layers deep in namespaces, overlayfs and other stuff. I was so fed up with this that I removed Ubuntu (and replaced it with Gentoo).

Re:Disabling Snaps in Ubuntu 20.04 by m-p-3 on Friday April 24, 2020 @05:52PM (#22973305)
I came to the realization that my home server doesn't need Ubuntu, it needs Debian.
Re:Disabling Snaps in Ubuntu 20.04 by avhception on Friday April 24, 2020 @05:59PM (#22973358)
Editing a config file for a program should not be more complicated than opening the file in your preferred editor, no matter your distro. Snaps break that.

I can't understand why they would break such fundamental thing and seemingly don't care about it.

Re:Disabling Snaps in Ubuntu 20.04 by eternauta3k on Saturday April 25, 2020 @08:33AM (#22977610)
I've thought of switching to Debian but I'd rather use a stripped-down Ubuntu so I can use PPAs.
Re:Disabling Snaps in Ubuntu 20.04 by nikisweeting on Saturday April 25, 2020 @09:42PM (#22983493)
Wait do PPAs not work on Debian?!
Re:Disabling Snaps in Ubuntu 20.04 by m0xte on Saturday April 25, 2020 @05:05AM (#22976771)
All this shit actually drove me to NetBSD for my home server
Re:Disabling Snaps in Ubuntu 20.04 by aziro on Monday April 27, 2020 @03:16PM (#22998971)
Why do not use Devuan? No systemd, no snapd(tm) and no same shits (small microsofts) hiding deep in the OS...
Re:Disabling Snaps in Ubuntu 20.04 by m0xte on Wednesday April 29, 2020 @10:15AM (#23019483)
Mostly because it's a large bloated whale compared to NetBSD.
Re:Disabling Snaps in Ubuntu 20.04 by simosx on Friday April 24, 2020 @09:18PM (#22974721)
Nah, it's just there, ~/snap/lxd/current/.config/lxc/config.yml
Re:Disabling Snaps in Ubuntu 20.04 by grawlinson on Friday April 24, 2020 @06:14PM (#22973472)
LXC (and LXD, by extension) is packaged on Arch Linux as a binary, not a snap. I'm really grateful that the packagers worked with upstream to make this possible, as I heavily utilise LXC in my workspace.
Re:Disabling Snaps in Ubuntu 20.04 by lmeyerov on Friday April 24, 2020 @08:24PM (#22974432)
YEP. For various reasons, we want to run Ubuntu on a server. Reboots and autoupdating are hazards and bugs for us. Upgrades & fixes mean patching our containers and starting fresh servers. Instead of rebooting a running server, we delete it. Trying to use Ubuntu environments means having to add custom disable-reboot-upgrade-downtime init scripts that we do not trust across updates: will bumping a minor version break them 5 days later? Super bad for reputation. I rather be updating Ubuntu more frequently, not less!

(Same-but-different for enforcing non-interactive mode on installs.)

Re:Disabling Snaps in Ubuntu 20.04 by m463 on Saturday April 25, 2020 @05:41PM (#22981794)
It's unfortunate that they don't realize they're alienating the very customers that have money and will be in it with them for the long term.

The idea with LTS is to be predictable and stable.

Put another way:

- desktop people want ALL UPDATES NOW.

- server people want NOTHING TO CHANGE EVER.

(yes, not exactly that, but kind of)

Re:Disabling Snaps in Ubuntu 20.04 by kbknapp on Friday April 24, 2020 @07:30PM (#22974082)
Same! Unfortunately we have a system is more or less tethered to use of LXD. While other workloads have moved to CentOS or Red Hat systems, LXD is supremely broken on those systems (or any distro that uses SELinux). It's extremely frustrating to be tied to Ubuntu for this one reason. It's even more frustrating when one of the key selling points from Canonical is "cross distribution!" Which appears to only be true for basic cases, or in the sense of, "Sure it's cross distro if someone other than us is willing to put in the work for their distro!"
Re:Disabling Snaps in Ubuntu 20.04 by petre on Saturday April 25, 2020 @08:01AM (#22977452)
Have you tried Proxmox? It runs LXD containers along with VMs.
Re:Disabling Snaps in Ubuntu 20.04 by hda111 on Saturday April 25, 2020 @10:40AM (#22978441)
It runs LXC. NOT LXD. And now LXD does the same as proxmox pve. It runs both VMs and containers.
Re:Disabling Snaps in Ubuntu 20.04 by ChuckMcM on Saturday April 25, 2020 @12:06AM (#22975467)
I get the idea behind snaps is that someone recognized that configuration management was a problem but didn't yet appreciate just how deep that problem goes.

It is a seriously difficult thing to get right. I always applaud people to take on difficult problems and try to solve them, but I would not expect it to have any sort of robustness for another 5 years at least.

Re:Disabling Snaps in Ubuntu 20.04 by corndoge on Friday April 24, 2020 @07:11PM (#22973938)
Does anyone know if they fixed the bug where snaps don't work if your home directory isn't /home/<user>, or is on NFS?
Re:Disabling Snaps in Ubuntu 20.04 by 5- on Friday April 24, 2020 @07:36PM (#22974117)
of course not, the only progress so far has been people coming up with horrifying workarounds: https://bugs.launchpad.net/snappy/+bug/1620771
Re:Disabling Snaps in Ubuntu 20.04 by yisonPylkita on Saturday April 25, 2020 @12:20AM (#22975522)
My god! Being unable to use snaps when you have “non-standard” home directory is ridiculous. What’s even more ridiculous is a response from snap developers - they marked this issue as “Won’t Fix”.

Dear snap developers, don’t make false assumptions that every user in Linux has to have home directory as /home/username just because standard Ubuntu installer does this. Only thing that you should care about here is $HOME

Re:Disabling Snaps in Ubuntu 20.04 by petre on Saturday April 25, 2020 @08:05AM (#22977470)
People will ditch snap and they'll end up using flatpak or something else just like the rest of the world. It happened with upstart and it then it happened with mir and unity.

I uninstalled it on all my Ubuntu systems and put it on hold. No new Ubuntu installs, switched to Debian.

Re:Disabling Snaps in Ubuntu 20.04 by yrro on Saturday April 25, 2020 @03:30AM (#22976394)
What the actual fudge? So my Asad AD trust users, whose home directories are /home/example.com/sam-account-name, are going to run into trouble when they upgrade to 20.04?

I think I am going to have to start figuring out a plan to migrate them all over to RHEL...

Re:Disabling Snaps in Ubuntu 20.04 by yrro on Saturday April 25, 2020 @08:04AM (#22977469)
s/Asad/SSSD/
Re:Disabling Snaps in Ubuntu 20.04 by waltpad on Friday April 24, 2020 @06:35PM (#22973631)
You had to install snap on a production server?

I don't know how must be installed on your version, but on 19.10, snap can be completely removed: the only draw back is that pulseaudio depends on it, but I guess that for a server it's not that much of a problem.

Re:Disabling Snaps in Ubuntu 20.04 by Reelin on Friday April 24, 2020 @11:43PM (#22975359)
Is Pulseaudio no longer viable using APT alone? One of the first things I do is excise Snap from the system entirely and install Flatpak. I had been planning to upgrade my daily driver to 20.04 in the very near future (I prefer LTS versions) but audio problems would be a complete deal breaker.
Re:Disabling Snaps in Ubuntu 20.04 by zorpner on Friday April 24, 2020 @09:09PM (#22974673)
This is honestly probably an unexpectedly good heuristic -- remove anything pulseaudio depends on, and you'll likely get a more stable system.
Re:Disabling Snaps in Ubuntu 20.04 by inshadows on Saturday April 25, 2020 @07:45PM (#22982690)
> By default, Snap applies updates and restarts Systemd services anytime it likes, and there's no way to turn this behavior off!

For context: https://forum.snapcraft.io/t/disabling-automatic-refresh-for...

Snap developer responses are hilarious. No matter what your use case is, Snap developers know better than you, you silly irresponsible sysadmin/user. Snap is basically just another App store.

Re:Disabling Snaps in Ubuntu 20.04 by danmur on Friday April 24, 2020 @09:11PM (#22974684)
I'm using LXC from ubuntu packages for that very reason, got burned when a cluster upgraded automatically. I guess I must be very out of date if the debs no longer exist.

I actually really like snaps and that's the only bad experience I've had. I don't know why LXC would come in that form, very weird.

Re:Disabling Snaps in Ubuntu 20.04 by gdevenyi on Saturday April 25, 2020 @08:42AM (#22977658)
Snaps also are completely broken for NFS mounted home and data directories with automount. Which is the classic corporate Linux deployment. Of course, systemd doesn't even support wildcard automount....
Re:Disabling Snaps in Ubuntu 20.04 by axaxs on Saturday April 25, 2020 @12:36AM (#22975591)
On top of all of this bad behavior... I did try Snap to install Opera browser. Opera is written such that you need to put widevine libs in a certain directory for it to work. After tons of hacking and Googling, there is zero way to inject files into the file system of a Snap. I understand the security precautions, but that feels ridiculous. I left Ubuntu after more than a decade over their obsession with Snap.