我试图让无人值守升级在我的 Linux Mint 18.3 (Sylvia) 系统上运行,但没有成功。我etc/apt/apt.conf.d/50unattended-upgrades
的是标准的:
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
etc.
但是当我运行它时,它永远找不到任何升级。这是输出sudo unattended-upgrades -d
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=LinuxMint,a=sylvia', 'o=LinuxMint,a=sylvia-security']
Checking: unrar ([<Origin component:'multiverse' archive:'xenial-updates' origin:'Ubuntu' label:'Ubuntu' site:'archive.ubuntu.com' isTrusted:True>, <Origin component:'multiverse' archive:'xenial-security' origin:'Ubuntu' label:'Ubuntu' site:'security.ubuntu.com' isTrusted:True>])
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
blacklist: []
whitelist: []
No packages found that can be upgraded unattended and no pending auto-removals
但是,我在 GUI 更新管理器中列出了一个升级,用于 unrar-nonfree。变更日志的第一行是unrar-nonfree (1:5.3.2-1+deb9u1build0.16.04.1) xenial-security; urgency=medium
我怎样才能让无人值守升级寻找 xenial 升级,以及 sylvia?
答案似乎是不要在 Mint 上使用无人值守升级。
Mint 18.2 和 18.3 包括
mintupdate-tool
. 在 Mint 19 中,它得到增强并重命名mintupdate-cli
为https://forums.linuxmint.com/viewtopic.php?f=18&t=274526&p=1504252&hilit=unattended+upgrade+18#p1504252我找不到任何文档,但这个答案非常有帮助https://unix.stackexchange.com/a/417942
mintupdate-tool
使用与更新管理器中相同的首选项,因此您可以简单地执行以下操作:或将其添加到 root 的 cron。