this post was submitted on 19 Sep 2023
28 points (88.9% liked)

Linux

64383 readers
585 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

So I have had mixed results with unattended upgrades on Debian based distros. It sometimes works and sometimes doesn't. It turns out that sometimes you need to enable it though dpkg-reconfigure unattended-upgrades

Problem solved

top 12 comments
sorted by: hot top controversial new old
[–] JustEnoughDucks@feddit.nl 8 points 2 years ago (1 children)

Not a fan od it. I had more of a problem with unattended upgrades at least weekly restarting my system even though I had restarts explicitely disabled.

After a lot of "impossible" in the support forums saying "that would never happen" even after showing that it happened in flesh during the unattended upgrade, I uninstalled it and voila, I have only had a restart intentionally or by a crash.

[–] Oisteink@feddit.nl 11 points 2 years ago (1 children)

It is impossible that unattended-upgrades reboots without the Unattended-Upgrade::Automatic-Reboot flag set. Source: the function def reboot_if_requested_and_needed(): on line 1688 in the script.

Probably your config was wrong

[–] lemann@lemmy.one 4 points 2 years ago

Same, never had unattended upgrades trigger a reboot in all the years it's been set up on my project servers.

The only cause of reboots in my case has been power failures and dead UPSes lol

[–] Oisteink@feddit.nl 5 points 2 years ago

Here’s the wiki article - never had an issue following that

https://wiki.debian.org/UnattendedUpgrades

Can also suggest reading the man page. For completeness and just general knowledge also read the man pages for apt, apt.conf

[–] igorlogius@lemmy.world 0 points 2 years ago* (last edited 2 years ago) (2 children)

Kind of glad i dont have to worry about stuff like this anymore, but i do sympathize as a former debian user.

[–] h3ndrik@feddit.de 3 points 2 years ago* (last edited 2 years ago) (1 children)

Moved to the countryside and stopped using computers? Or why don't you need to worry about automatic updates? Are you the boss and other people do the worrying? Or do you use one of those immutable distros and now worry in a different way?

[–] igorlogius@lemmy.world 10 points 2 years ago* (last edited 2 years ago) (1 children)

well, with stuff like this i meant dpkg-reconfigure, since i switched to nixos where configuring and setting up basically means adding/editing a couple of lines in /etc/nixos/configuration.nix. For automatic system updates for example, i just had to add: system.autoUpgrade.enable = true; and done. Nicest way to configure and manage a system i've experienced yet.

[–] WeAreAllOne@lemm.ee 2 points 2 years ago (1 children)

Don't all these edits create huge snapshots or what is called in nixos ?

[–] igorlogius@lemmy.world 11 points 2 years ago* (last edited 2 years ago) (1 children)

not really an issue with a few more lines of configuration

nix.gc = {
    automatic = true;
    dates = "weekly";
    options = "--delete-older-than 30d";
};
[–] WeAreAllOne@lemm.ee 2 points 2 years ago