Turn on automatic security updates
Let Debian/Ubuntu install security patches on its own with unattended-upgrades.
01Command
$ sudo dpkg-reconfigure -plow unattended-upgrades02What it does
Unpatched systems are the single most common way home servers get compromised, and unattended-upgrades is the built-in fix: a systemd timer downloads and installs security updates from the distro's security repository daily. The reconfigure command writes the enable flag to /etc/apt/apt.conf.d/20auto-upgrades; check results afterwards in /var/log/unattended-upgrades/. It only auto-installs security (and selected) updates — full upgrades still need apt upgrade.
03Risk
04Undo
$ sudo dpkg-reconfigure -plow unattended-upgrades # choose No to disable05Sources
- UnattendedUpgrades — Debian WikiEvidence: dpkg-reconfigure -plow unattended-upgrades interactively enables the daily automatic security update service; the package ships default config enabling the security origin.
- unattended-upgrade(8) — Ubuntu manual pageEvidence: unattended-upgrade runs via apt timers to download and install security updates automatically according to its config.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Add or remove read, write, and execute permission for the owner, group, or others using symbolic or octal modes.
autoremove deletes no-longer-needed dependency packages, and clean wipes the downloaded .deb cache in /var/cache/apt/archives.