
unattended-upgrades
에 설정된 우선순위를 따르지 않는 것 같습니다 /etc/apt/preferences
.
나는 무인 업그레이드가 설정된 데비안 파일 서버를 유지 관리하고 있습니다. 테스트 버전이 rclone
현재 설치되어 있습니다. apt
rclone 으로 업데이트하면 테스트에서 업데이트됩니다. 그러나 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";
};