![무인 업그레이드 보고서 [패키지 보류 중]은 무엇을 의미합니까?](https://linux55.com/image/191136/%EB%AC%B4%EC%9D%B8%20%EC%97%85%EA%B7%B8%EB%A0%88%EC%9D%B4%EB%93%9C%20%EB%B3%B4%EA%B3%A0%EC%84%9C%20%5B%ED%8C%A8%ED%82%A4%EC%A7%80%20%EB%B3%B4%EB%A5%98%20%EC%A4%91%5D%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9D%84%20%EC%9D%98%EB%AF%B8%ED%95%A9%EB%8B%88%EA%B9%8C%3F.png)
무인 업그레이드가 설치 및 구성된 Raspberry Pi(Raspbian 10 - 버스터)를 실행하고 있습니다. 오늘 저는 다음과 같은 내용이 포함된 이메일 보고서를 받았습니다.
Unattended upgrade result: All upgrades installed
Packages with upgradable origin but kept back:
linux-libc-dev
표적:unattended-upgrades
보관 중인 패키지에 대한 알림(매일)을 보내지 않도록 구성합니다 . 자체적으로 설치하거나 이메일 보고서를 보내지 않을 수 있습니다. 업그레이드가 성공했다는 알림을 받고 싶기 때문에 다음으로 설정하는 Unattended-Upgrade::MailOnlyOnError
것은 옵션이 아닙니다.true
내 구성은 다음과 같습니다.
/etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Origins-Pattern {
"origin=Debian,codename=${distro_codename},label=Debian";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
};
Unattended-Upgrade::Package-Blacklist {
};
Unattended-Upgrade::Mail "MYMAILADDRESS";
Unattended-Upgrade::Sender "SENDERADDRESS";
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Automatic-Reboot "true";
편집하다:
산출apt-cache policy linux-libc-dev
linux-libc-dev:
Installed: 4.18.20-2+rpi1
Candidate: 1:1.20210430-2
Version table:
1:1.20210430-2 500
500 http://archive.raspberrypi.org/debian buster/main armhf Packages
5.10.28-1+rpi1 -1
-1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
*** 4.18.20-2+rpi1 500
500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
100 /var/lib/dpkg/status
산출apt-get -d install linux-libc-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
linux-libc-dev
1 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
Need to get 1.011 kB of archives.
After this operation, 54,3 kB disk space will be freed.
Get:1 http://archive.raspberrypi.org/debian buster/main armhf linux-libc-dev armhf 1:1.20210430-2 [1.011 kB]
Fetched 1.011 kB in 0s (3.006 kB/s)
Download complete and in download only mode
지금까지 패키지를 "패키지 블랙리스트" 필드에 넣어 업데이트되는 것을 방지하는 방법을 설명하는 몇 가지 기사만 찾았습니다. 그러나 내 구성에서는 비어 있습니다. 그럼 왜 가방인가?리눅스-libc-dev업그레이드가 차단되었나요? 이 문제를 일으킬 수 있는, 제가 모르는 다른 구성이 있습니까? 내가 구성한 Origins-Pattern과 관련이 있나요?
미리 조언해 주셔서 감사합니다!
답변1
릴리즈 파일 때문에 자동 업그레이드가 제대로 작동하지 않는 것 같아요http://archive.raspberrypi.org/debian/dists/buster/InRelease
그리고http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease
Debian
또는 와 같은 원점은 없습니다 Debian-security
. 따라서 이러한 리포지토리는 의 설정과 일치하지 않으며 Unattended-Upgrade::Origins-Pattern
자동 업그레이드 소스 후보로 선택되지 않습니다. 관련 정보 블록은 다음과 같습니다.
Origin: Raspberry Pi Foundation
Label: Raspberry Pi Foundation
Suite: testing
Codename: buster
Date: Fri, 14 May 2021 23:17:18 UTC
Architectures: armhf arm64 i386 amd64
Components: main ui untested
이건 정말 이상해요:시험바꾸다안정적인, 마찬가지로긴장다음과 같이 표시됩니다.안정적인바꾸다오래된 마구간. 나는 이것이 (에 따르면) 사실과 관련된 속임수라고 생각합니다.이 포럼)는 archive.raspberrypi.org
데비안이 제공하는 것보다 새로운 소프트웨어를 추가하기 위한 것입니다.안정적인에 제공된 것과 동일 raspbian.rasberrypi.org
하므로버스터님의 상태가 다음으로 "업그레이드됨"시험거기. 이는 단지 가정일 뿐이며 답변에 영향을 미치지 않습니다.
그리고:
Origin: Raspbian
Label: Raspbian
Suite: stable
Codename: buster
Date: Sat, 15 May 2021 04:52:10 UTC
Architectures: armhf
Components: main contrib non-free rpi firmware
/etc/apt/apt.conf.d/50unattended-upgrades
Raspberry 저장소별 값과 일치하도록 항목을 편집해야 합니다 . 이것은 작동합니다:
Unattended-Upgrade::Origins-Pattern {
"origin=Raspbian,codename=${distro_codename},label=Raspbian";
"origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation";
};
변경해야 할 다른 숨겨진 콘텐츠가 있는지 확인하세요.
나는 데비안 저장소를 삭제했습니다.데비안 저장소를 갖는 것은 실제로 권장되지 않습니다.특히 자동 업그레이드용이 아닌 구성입니다.