Automatic updates on Debian 9 (Stretch)

This post is heavly based on the information provided on the following two pages: https://blog.sleeplessbeastie.eu/2015/01/02/how-to-perform-unattended-upgrades/ https://wiki.debian.org/UnattendedUpgrades