Unattended-Upgrade::Origins-Pattern 用于没有 Origin、标签等的存储库

Unattended-Upgrade::Origins-Pattern 用于没有 Origin、标签等的存储库

我想用来unattendedupgrades在我的 Debian 10 Nextcloud 服务器上保持 Collabora Office 更新。

但是,那存储库的 InRelease 文件不包含我在一行中使用的任何元数据Unattended-Upgrade::Origins-Pattern- 它只获得文件哈希值,所以所有这些都是返回apt-cache policy

 500 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian10 ./ Packages
     release c=

如何指定我希望此存储库的软件包自动更新?

答案1

从以下内容的评论中/etc/apt/apt.conf.d/50unattended-upgrades

// Lines below have the format format is "keyword=value,...".  A
// package will be upgraded only if the values in its metadata match
// all the supplied keywords in a line.  (In other words, omitted
// keywords are wild cards.) The keywords originate from the Release
// file, but several aliases are accepted.  The accepted keywords are:
//   a,archive,suite (eg, "stable")
//   c,component     (eg, "main", "contrib", "non-free")
//   l,label         (eg, "Debian", "Debian-Security")
//   o,origin        (eg, "Debian", "Unofficial Multimedia Packages")
//   n,codename      (eg, "jessie", "jessie-updates")
//     site          (eg, "http.debian.net")

您仍然可以通过以下方式来区分地点通过编辑和更改块来使用site相关设置中的关键字,如下所示:50unattended-upgradesUnattended-Upgrade::Origins-Pattern

Unattended-Upgrade::Origins-Pattern {
        "origin=Debian,codename=${distro_codename},label=Debian";
        "origin=Debian,codename=${distro_codename},label=Debian-Security";
        "site=www.collaboraoffice.com";
}

相关内容