无人值守升级不会升级其他存储库。对于其他软件包,升级确实有效。这是我所做的设置:
> cat /etc/apt/apt.conf.d/50unattended-upgrades // Automatically
> upgrade packages from these (origin:archive) pairs // // Note that in
> Ubuntu security updates may pull in new dependencies // from
> non-security sources (e.g. chromium). By allowing the release //
> pocket these get automatically pulled in.
> Unattended-Upgrade::Allowed-Origins {
> "${distro_id}:${distro_codename}";
> "${distro_id}:${distro_codename}-security";
> // Extended Security Maintenance; doesn't necessarily exist for
> // every release and this system may not have it installed, but if
> // available, the policy for updates is such that unattended-upgrades
> // should also install from here by default.
> "${distro_id}ESMApps:${distro_codename}-apps-security";
> "${distro_id}ESM:${distro_codename}-infra-security";
> "${distro_id}:${distro_codename}-updates";
>
>
和这里:
> cat /etc/apt/apt.conf.d/20auto-upgrades
> APT::Periodic::Update-Package-Lists "1";
> APT::Periodic::Unattended-Upgrade "1";
但也有一段时间没有更新的包(也有没有保持):
> apt list --upgradable Listing... Done icinga2-bin/icinga-focal
> 2.12.1-1.focal amd64 [upgradable from: 2.12.0-1.focal] icinga2-common/icinga-focal 2.12.1-1.focal all [upgradable from:
> 2.12.0-1.focal] icinga2-doc/icinga-focal 2.12.1-1.focal all [upgradable from: 2.12.0-1.focal] icinga2/icinga-focal 2.12.1-1.focal
> amd64 [upgradable from: 2.12.0-1.focal]
这些包来自一个额外的存储库:
> /etc/apt/sources.list.d# ll total 12 drwxr-xr-x 2 root root 4096 Sep
> 14 08:27 ./ drwxr-xr-x 7 root root 4096 Sep 14 08:27 ../
> -rw-r--r-- 1 root root 57 Sep 14 08:27 icinga-main-focal.list
请让我知道无人值守升级将如何完全工作。
提前致谢。