![apt-cache policy 命令输出中的“o=.main”是什么意思?](https://linux22.com/image/1193890/apt-cache%20policy%20%E5%91%BD%E4%BB%A4%E8%BE%93%E5%87%BA%E4%B8%AD%E7%9A%84%E2%80%9Co%3D.main%E2%80%9D%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%EF%BC%9F.png)
在命令的输出中apt-cache policy
我看到以下几行:
500 https://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
release o=. main,a=main,n=main,l=. main,c=main,b=amd64
origin repos.insights.digitalocean.com
什么o=. main
意思?
我还想了解这对于自动更新意味着什么。我看到该do-agent
软件包会定期更新unattended-upgrades
。
尽管/etc/apt/apt.conf.d/50unattended-upgrades
我只看到这个:
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";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
答案1
我认为它的意思是 origin=,后面的术语你可以在无人值守更新中像这样输入:o=Docker -> “Docker:${distro_codename}”; 在 /etc/apt/apt.conf.d/50unattended-upgrades 中。
但由于某种原因,它不能与 Icinga 一起使用:“ubuntu icinga-jammy:${distro_codename}”;