Oct 7, 2018

How to enable automatic updates for Ubuntu

unattended-upgrades is one of the best practices of having automatic updates, especially for headless Ubuntu machines or servers.

You can set up unattended-upgrades by typing this in a terminal:

sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure unattended-upgrades

From the description:
This package can download and install security upgrades automatically
 and unattended, taking care to only install packages from the
 configured APT source, and checking for dpkg prompts about
 configuration file changes.