On 17.05.2019 02:22, Neel Chauhan wrote:
But I'd advise just giving up on cron. For automatic updates, you should look into unattended-upgrades instead of using cron.
+1
on Debian:
apt-get install -y unattended-upgrades apt-listchanges cp /usr/share/unattended-upgrades/20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades service unattended-upgrades restart
Default it upgrades the security sources. see comments in 50unattended-upgrades