带有 Pro 令牌的 Ubuntu 18.04:
$ sudo pro security-status
763 packages installed:
680 packages from Ubuntu Main/Restricted repository
57 packages from Ubuntu Universe/Multiverse repository
26 packages from third parties
To get more information about the packages, run
pro security-status --help
for a list of available options.
The system apt cache may be outdated. Make sure to run
sudo apt-get update
to get the latest package information from apt.
This machine is attached to an Ubuntu Pro subscription.
Main/Restricted packages are receiving security updates from
Ubuntu Pro with 'esm-infra' enabled until 2028. There are 72 pending security updates.
Universe/Multiverse packages are receiving security updates from
Ubuntu Pro with 'esm-apps' enabled until 2028. There are 10 pending security updates.
但无人值守升级不做任何事情:
$ sudo unattended-upgrade -v
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,a=bionic-security, o=UbuntuESM,a=bionic
No packages found that can be upgraded unattended and no pending auto-removals
我们不想运行完整的sudo apt upgrade
。
我也验证了无人值守升级配置:
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}ESM:${distro_codename}";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
我错过了什么?
答案1
此行不正确:
"${distro_id}ESM:${distro_codename}";
它应该是:
"${distro_id}ESMApps:${distro_codename}-apps-security";
"${distro_id}ESM:${distro_codename}-infra-security";