Install unattended updates on Ubuntu

Update the system and install packages

apt-get update && apt-get install unattended-upgrades

Configure unattended upgrades

dpkg-reconfigure -plow unattended-upgrades

Replacing config file /etc/apt/apt.conf.d/20auto-upgrades with new version
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults