Debian Setup automatic-updates
The purpose of unattended-upgrades is to keep the computer current with the latest security (and other) updates automatically.
Install the required package:
sudo apt install unattended-upgrades
Edit:
sudo vim /etc/apt/apt.conf.d/50unattended-upgrades
With the following content:
Unattended-Upgrade::Origins-Pattern {
"origin=Debian,codename=${distro_codename}-updates"…