apt-cache policy 命令输出中的“o=.main”是什么意思?

apt-cache policy 命令输出中的“o=.main”是什么意思?

在命令的输出中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}”;

相关内容