我一直试图让Debian GNU /
Linux(7.0)下的无人值守升级包运行到目前为止没有成功.
我遵循的步骤:
>安装无人值守升级
>启用它
sudo dpkg-reconfigure -plow unattended-upgrades
>取消注释/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";
>等两天
它应该每天运行,但它当时没有做任何事情.我在/ var / log / unattended-upgrades /和apt历史记录日志中检查了它的日志/var/log/apt/history.log但是自安装以来没有发生任何事情.
我有什么步骤可以启用吗?在阅读/usr/share / doc / unattended-upgrades / README下的文档之后,我认为以上是您必须遵循的才能使其运行.
解决方法
试试这个:
Unattended-Upgrade::Origins-Pattern { "o=Debian,a=testing"; "o=Debian,a=stable"; "o=Debian,a=stable-updates"; "o=Debian,a=proposed-updates"; "origin=Debian,archive=stable,label=Debian-Security"; };
文件/etc/apt/apt.conf.d/20auto-upgrades必须包含:
APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Unattended-Upgrade "1";