看起来无人值守升级不会调用apt-get update
.在我运行apt-get update
无人值守升级后,它按预期工作,但这违背了使用无人值守升级的目的。
$ sudo unattended-upgrade -d
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Kali,a=kali-rolling']
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
编辑1:
~$ apt-config dump | grep -i unattended
APT::Periodic::Unattended-Upgrade "1";
Unattended-Upgrade "";
Unattended-Upgrade::Origins-Pattern "";
Unattended-Upgrade::Origins-Pattern:: "o=Kali,a=kali-rolling";
答案1
我在 debian 下的配置。
cat /etc/apt/apt.conf.d/10periodic
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Update-Package-Lists "1";
检查您的系统是否缺少某些内容。
答案2
对我来说我只添加
Unattended-Upgrade::Origins-Pattern{
...
"origin=Kali";
...
}