我试图在我的 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?
答案1
答案似乎是不要在 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=无人值守+upgrade+18#p1504252
我找不到任何文档,但这个答案非常有帮助https://unix.stackexchange.com/a/417942
mintupdate-tool
使用与更新管理器中相同的首选项,因此您可以简单地执行以下操作:
sudo mintupdate-tool upgrade
或者将其添加到 root 的 cron 中。