什么 Unattended-Upgrade::Origins-Pattern 与“全部”匹配?

什么 Unattended-Upgrade::Origins-Pattern 与“全部”匹配?

除了我在如何调整以便允许所有来源?/etc/apt/sources.list中定义了几个来源之外。/etc/apt/sources.list.d//etc/apt/apt.conf.d/50unattended-upgrades

我尝试设置一个空字符串,如下所示:

Unattended-Upgrade::Origins-Pattern {
  "";
}

但这会导致错误消息:

$ sudo unattended-upgrades -d
Initial blacklisted packages: 
Initial whitelisted packages: 
Starting unattended upgrades script
Allowed origins are: ['']
empty match string matches nothing
empty match string matches nothing
empty match string matches nothing
...

答案1

请参阅自述文件:

如果您已经通过 apt pinning 配置要安装的内容,则只需使用“origin=*”,例如:

Unattended-Upgrade::Origins-Pattern {
    "origin=*";
};

相关内容