Debian:无人值守升级不会重新启动

Debian:无人值守升级不会重新启动

我基本上有与这个问题描述的相同的问题:无人值守升级不会重新启动

在我的 Debian wheezy 上,我安装了无人值守升级,它每晚都能正确地升级我的软件包,但在需要时不会重新启动(我通过运行进行了检查,checkrestart结果显示许多进程都在使用升级文件的旧版本)。

正如这里提到的无人值守升级不会重新启动我安装了update-notifier-common。但它仍然没有在需要时重新启动。

这是我的配置:

/etc/apt/apt.conf.d/50unattended-upgrades

// Automatically upgrade packages from these origin patterns
Unattended-Upgrade::Origins-Pattern {
        "origin=Debian,archive=stable,label=Debian-Security";
};
Unattended-Upgrade::MinimalSteps "true";

// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "[email protected]"
Unattended-Upgrade::Mail "[my email address]";

// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";

// Automatically reboot *WITHOUT CONFIRMATION* if a
// the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";

/etc/apt/apt.conf.d/20auto-upgrades

// Enable the update/upgrade script (0=disable)
APT::Periodic::Enable "1";

// Do "apt-get update" automatically every n-days (0=disable)
APT::Periodic::Update-Package-Lists "1";

// Run the "unattended-upgrade" security upgrade script
// every n-days (0=disabled)
// Requires the package "unattended-upgrades" and will write
// a log in /var/log/unattended-upgrades
APT::Periodic::Unattended-Upgrade "1";

相关内容