====== Automatic Unattended Updates ====== Below we will explain how to setup Automatic Unattended Updates. 1. Update the Ubuntu 20.04 LTS server for security patches, run sudo apt update && sudo apt upgrade 2. Install unattended upgrades on Ubuntu if not installed sudo apt install unattended-upgrades apt-listchanges bsd-mailx 3. Turn on unattended security updates, run sudo dpkg-reconfigure -plow unattended-upgrades 4. Configure automatic unattended updates, enter sudo nano /etc/apt/apt.conf.d/50unattended-upgrades 5. Update and uncomment this line // "${distro_id}:${distro_codename}-updates"; 6. Automatically reboot Ubuntu box WITHOUT CONFIRMATION for kernel updates Unattended-Upgrade::Automatic-Reboot "true"; 7. Save and close the file 8. Verify that it is working by running the following command sudo unattended-upgrades --dry-run [[ubuntu-main-page|Ubuntu Main Page]] [[https://www.cyberciti.biz/faq/set-up-automatic-unattended-updates-for-ubuntu-20-04/|Automatic Unattended Updates Reference]] [[https://www.digitalocean.com/community/tutorials/how-to-keep-ubuntu-20-04-servers-updated|Automatic Unattended Updates Reference 2]]