無人アップグレードは優先順位を無視します。

無人アップグレードは優先順位を無視します。

unattended-upgradesはに設定された優先順位に従わないようです/etc/apt/preferences

私は無人アップグレードが設定されたDebianファイルサーバーを管理しています。rclone現在テストバージョンがインストールされています。 rcloneを使用して更新する場合は、aptテストによって更新が行われます。ただし、unattended-upgradesテストストアで更新を実行する場合は無視されます。

無人アップグレード時にこの問題は発生しますか? rcloneがテストストアの更新を追跡できることを願っています。出力およびシステム設定の詳細については、以下に要約されています。

実行結果はunattended-upgrade --dry-run --debug次のとおりです。

Enabled logging to syslog via daemon facility
Initial blacklisted packages: 
Initial whitelisted packages: 
Starting unattended upgrades script
Allowed origins are: ['origin=Debian,codename=stretch,archive=stable',
  'origin=Debian,codename=stretch,archive=testing',
  'origin=Debian,codename=stretch,label=Debian-Security',
  'origin=Debian Backports,codename=stretch-backports,label=Debian Backports',
  'origin=Syncthing,archive=syncthing,codename=debian,label=Syncthing,component=stable',
  'origin=www.geogebra.net,codename=stable,component=main']
ignoring ver 'rclone=1.45-2+b21' with priority < 0
adjusting candidate version: 'rclone=1.35-1+b3'
pkgs that look like they should be upgraded: 
Fetched 0 B in 0s (0 B/s)                                                       
fetch.run() result: 0
blacklist: []
whitelist: []
No packages found that can be upgraded unattended and no pending auto-removals

デフォルト設定ファイル/etc/apt/preferencesは次のとおりです。

Package: *
Pin: release l=Debian-Security
Pin-Priority: 1000

Package: rclone
Pin: release a=testing
Pin-Priority: 950

Package: *
Pin: release a=stable
Pin-Priority: 900

Package: *
Pin: release a=stretch-backports
Pin-Priority: 800

Package: *
Pin: release a=testing
Pin-Priority: -1

ファイル/etc/apt/sources.listは次のとおりです

deb http://ftp.uk.debian.org/debian/ stretch main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ stretch main non-free contrib

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.uk.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ stretch-updates main contrib non-free

# stretch-backports, previously on backports.debian.org
deb http://ftp.uk.debian.org/debian/ stretch-backports main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ stretch-backports main contrib non-free

# testing 
deb http://ftp.uk.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ testing main contrib non-free

元の構成は/etc/apt/apt.conf.d/50unattended-upgrades次のとおりです。

Unattended-Upgrade::Origins-Pattern {
  "origin=${distro_id},codename=${distro_codename},archive=stable";
  "origin=${distro_id},codename=${distro_codename},archive=testing";
  "origin=${distro_id},codename=${distro_codename},label=Debian-Security";
  "origin=${distro_id} Backports,codename=${distro_codename}-backports,label=Debian Backports";
  "origin=Syncthing,archive=syncthing,codename=debian,label=Syncthing,component=stable";
  "origin=www.geogebra.net,codename=stable,component=main";
};

ベストアンサー1

テストには適切なコード名を設定する必要があります。

Unattended-Upgrade::Origins-Pattern {
    "origin=${distro_id},codename=${distro_codename},archive=stable";
    "origin=${distro_id},codename=buster,archive=testing";
    "origin=${distro_id},codename=${distro_codename},label=Debian-Security";
    "origin=${distro_id} Backports,codename=${distro_codename}-backports,label=Debian Backports";
    "origin=Syncthing,archive=syncthing,codename=debian,label=Syncthing,component=stable";
    "origin=www.geogebra.net,codename=stable,component=main";

};

おすすめ記事