![什么 Unattended-Upgrade::Origins-Pattern 与“全部”匹配?](https://linux22.com/image/128611/%E4%BB%80%E4%B9%88%20Unattended-Upgrade%3A%3AOrigins-Pattern%20%E4%B8%8E%E2%80%9C%E5%85%A8%E9%83%A8%E2%80%9D%E5%8C%B9%E9%85%8D%EF%BC%9F.png)
除了我在如何调整以便允许所有来源?/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=*"; };