News for hackers. Stuff that matters.
Re:Are Immutable Linux Distros right for you? by rlpb on Wednesday December 25, 2024 @11:41AM (#42509605)
> I don't use Snap on my Ubuntu Desktop systems because I don't like apps secretly updating without my awareness

https://snapcraft.io/docs/managing-updates#p-32248-pause-or-...

Re:Are Immutable Linux Distros right for you? by irunmyownemail on Wednesday December 25, 2024 @12:56PM (#42510043)
Unfortunately that creates a choice between an app that updates in an aloof manner or allowing it to exist in an insecure, not updated state.
Re:Are Immutable Linux Distros right for you? by rlpb on Wednesday December 25, 2024 @06:44PM (#42512015)
What do you mean by "aloof manner"? As far as I'm aware, snaps' updating mechanism is quite reasonable and doesn't suffer from the many update related issues that apt/debs have, especially when users want packages not included by their distribution.
Re:Are Immutable Linux Distros right for you? by amelius on Wednesday December 25, 2024 @12:57PM (#42510044)
You can also block the updater's internet access by adding this to your /etc/hosts file:

    127.0.0.1 api.snapcraft.io
And for other updates:

    127.0.0.1 archive.ubuntu.com
    127.0.0.1 security.ubuntu.com
    127.0.0.1 mirrors.kernel.org
    127.0.0.1 deb.debian.org
    127.0.0.1 ppa.launchpad.net
    127.0.0.1 flathub.org
    127.0.0.1 dl.flathub.org
Use at your own risk of course.
Re:Are Immutable Linux Distros right for you? by setuid on Wednesday December 25, 2024 @02:20PM (#42510571)
Or you can just avoid hacking your hosts file and breaking other tools, and set your Snap and Apt proxy configuration to a non-existent value, or firewall their ability to reach those hosts.

Or configure them properly by disabling auto-updates, configure unattended-upgrades appropriately for your needs, and only update your apt packages from a known, internal mirror endpoint that doesn't change until you point it to a new timestamp.

That's how it works in the real world, in production. It's not 1994, we don't hack hosts files anymore.