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";
}

相關內容