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.

  • HelloRoot@lemy.lol
    link
    fedilink
    English
    arrow-up
    1
    ·
    21 hours 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…