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
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.
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
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
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
Kind of glad i dont have to worry about stuff like this anymore, but i do sympathize as a former debian user.
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?
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.Don’t all these edits create huge snapshots or what is called in nixos ?
not really an issue with a few more lines of configuration
nix.gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 30d"; };
Nice!
What do you use?