.png)
unattendedupgrades
私のDebian 10 NextcloudサーバーでCollabora Officeを更新するために使用したいと思います。
しかし、リポジトリ用のInReleaseファイル1行に使用したメタデータは含まれていません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-upgrades
Unattended-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";
}