我之前在 serverfault.com 上发过这个问题,但还没有得到满意的答复。请原谅我在这里也发了帖子。
我的问题简而言之:
无人值守升级忽略 Google Chrome 升级。随后调用apt-get 升级识别并安装升级。
可能是什么原因?
/var/log/unattended-upgrades/unattended-upgrades.log:
(...)
INFO Allowed origins are: o=Ubuntu,a=focal, o=Ubuntu,a=focal-security, o=UbuntuESMApps,a=focal-apps-security, o=UbuntuESM,a=focal-infra-security, o=Ubuntu,a=focal-updates
(...)
否则,无人值守升级将正常运行。
操作系统:Ubuntu 20.04.4 LTS
我的配置:
/etc/apt/apt.conf.d/20auto-upgrades:
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "1";
/etc/apt/apt.conf.d/50unattended-upgrades(删除所有注释行):
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
"${distro_id}ESMApps:${distro_codename}-apps-security";
"${distro_id}ESM:${distro_codename}-infra-security";
"${distro_id}:${distro_codename}-updates";
};
Unattended-Upgrade::Package-Blacklist {
};
Unattended-Upgrade::DevRelease "auto";
Unattended-Upgrade::Automatic-Reboot "true";
Unattended-Upgrade::Automatic-Reboot-WithUsers "true";
Unattended-Upgrade::Automatic-Reboot-Time "08:00";
(备注:unattended-upgrades 和 apt-get upgrade 之间的时间滞后并不是原因,因为当我遇到此问题时,我也在 apt-get upgrade 之前手动启动了 unattended-upgrades。)
谢谢你的帮助
肺动脉
答案1
真丢脸。我在 askubuntu 上找到了答案: 如何启用 Google Chrome 的静默自动更新? 上述允许的来源不包括第三方来源。因此,我在 50unattended-upgrades 中的允许来源中添加了“Google LLC:stable”;
再次抱歉。我应该在 Google 上搜索“无人值守升级”和“Google Chrome”。