On Debian/Ubuntu servers I enable unattended-upgrades for the security pocket only, with automatic reboot disabled and a notification instead. Feature updates and major versions stay manual. The common failure is not the tool, it is forgetting that a kernel or libc update does nothing until the service or the machine restarts: needrestart (or checkrestart) tells you what still runs old code.

Also worth checking: apt-get -s upgrade weekly, so you see what is waiting.

What is your policy: fully automatic with reboots in a maintenance window, notify-only, or everything by hand? Any horror story with auto-updates?

Open-source agent that lists the versions exposed by a Linux host: https://github.com/AttackScout/attackscout-agent — I work on AttackScout.

  • @LewdLemon@sh.itjust.works
    link
    fedilink
    1•6 hours ago

    Same here. I do daily updates, but I want to have a rough idea which packages got updated. If something breaks, it’s easier to gauge what to roll back. Also, all of my drives are encrypted and (intentionally) require manual unlocking; hence, automated reboots won’t work.

    • @HelloRoot@lemy.lol
      link
      fedilink
      English
      1•
      edit-2
      1 hour ago

      Seems like a lot of work.

      I have automatic daily borgbackups and automatic daily updates with pre&post btrfs snapshots, followed by a reboot. If I wake up and my server is down, I can boot into a snapshot via grub and rollback in under a minute (tried and tested).

      Or boot into the snapshot and look for evidence what broke.

      Worst case I can get a clean drive and restore the borg backup in like 1-2h.

      But in practice a Debian/Ubuntu package update will almost never break anything…