参考: https://lala.im/7717.html
apt -y update
apt -y install unattended-upgrades
systemctl enable --now unattended-upgrades
systemctl status unattended-upgrades.service
然后确认一下配置文件如下 vi /etc/apt/apt.conf.d/50unattended-upgrades
生成自动 dpkg-reconfigure -plow unattended-upgrades 确保有
测试下
unattended-upgrade