到目前为止,我一直试图使软件包在 Debian GNU/Linux (7.0) 下运行无人值守升级,但没有成功。
我遵循的步骤:
启用它
sudo dpkg-reconfigure -plow unattended-upgrades
Run Code Online (Sandbox Code Playgroud)在/etc/apt/apt.conf.d/50unattended-upgrades 中取消注释以下行
"o=Debian,n=wheezy";
"o=Debian,n=wheezy-updates";
"o=Debian,n=wheezy-proposed-updates";
"o=Debian,n=wheezy,l=Debian-Security";
Run Code Online (Sandbox Code Playgroud)等两天
它应该每天运行,但到时间它什么也没做。我检查了/var/log/unattended-upgrades/ 的日志和/var/log/apt/history.log 的apt 历史日志,但自安装以来没有发生任何事情。
我缺少启用它的任何步骤吗?在阅读了/usr/share/doc/unattended-upgrades/README下的文档后,我认为以上是您必须遵循的唯一内容才能使其运行。