다음 키 ID에 사용 가능한 공개 키가 없습니다: AA8E81B4331F7F50 [닫기]

다음 키 ID에 사용 가능한 공개 키가 없습니다: AA8E81B4331F7F50 [닫기]

다음 명령:

RUN apt-get update -y && \
    apt-get install apt-transport-https curl python-dev python-setuptools gcc make libssl-dev -y && \
    easy_install pip

오류가 발생합니다.

Step 9/14 : RUN apt-get update -y &&     apt-get install apt-transport-https curl python-dev python-setuptools gcc make libssl-dev -y &&     easy_install pip
 ---> Running in 25a6ae724b15
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:2 http://httpredir.debian.org jessie-updates InRelease [16.3 kB]
Ign http://httpredir.debian.org jessie-backports InRelease
Get:3 http://httpredir.debian.org jessie Release.gpg [1652 B]
Ign http://httpredir.debian.org jessie-backports Release.gpg
Get:4 http://httpredir.debian.org jessie Release [77.3 kB]
Ign http://httpredir.debian.org jessie-backports Release
Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Err http://httpredir.debian.org jessie-backports/main amd64 Packages
  404  Not Found
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [901 kB]
Get:6 http://httpredir.debian.org jessie-updates/main amd64 Packages [20 B]
Get:7 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 17s (573 kB/s)
W: There is no public key available for the following key IDs:
AA8E81B4331F7F50
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'jenkins' failed to build: The command '/bin/sh -c apt-get update -y &&     apt-get install apt-transport-https curl python-dev python-setuptools gcc make libssl-dev -y &&     easy_install pip' returned a non-zero code: 100

이 오류를 해결하려면 다음과 같이 변경하세요.

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50 && \
    apt-get update -y && \
    apt-get install apt-transport-https curl python-dev python-setuptools gcc make libssl-dev -y && \
    easy_install pip

다음 오류와 함께 문제가 지속됩니다.

Step 9/14 : RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50 &&     apt-get update -y &&     apt-get install apt-transport-https curl python-dev python-setuptools gcc make libssl-dev -y &&     easy_install pip
 ---> Running in d51497786a78
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.XQtj1WUFSF --no-auto-check-trustdb --trust-model always --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50
gpg: requesting key 331F7F50 from hkp server keyserver.ubuntu.com
gpg: key 8AE22BA9: public key "Debian Security Archive Automatic Signing Key (9/stretch) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
Ign http://httpredir.debian.org jessie InRelease
Get:1 http://httpredir.debian.org jessie-updates InRelease [16.3 kB]
Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://httpredir.debian.org jessie-backports InRelease
Get:3 http://httpredir.debian.org jessie Release.gpg [1652 B]
Ign http://httpredir.debian.org jessie-backports Release.gpg
Get:4 http://httpredir.debian.org jessie Release [77.3 kB]
Ign http://httpredir.debian.org jessie-backports Release
Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Get:5 http://httpredir.debian.org jessie-updates/main amd64 Packages [20 B]
Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Get:6 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]
Get:7 http://security.debian.org jessie/updates/main amd64 Packages [901 kB]
Err http://httpredir.debian.org jessie-backports/main amd64 Packages
  404  Not Found
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Fetched 10.1 MB in 17s (587 kB/s)
ERROR: Service 'jenkins' failed to build: The command '/bin/sh -c apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50 &&     apt-get update -y &&     apt-get install apt-transport-https curl python-dev python-setuptools gcc make libssl-dev -y &&     easy_install pip' returned a non-zero code: 100

1) 이 오류는 무엇을 의미합니까?

2) 이 오류를 해결하는 방법은 무엇입니까?

답변1

AA8E81B4331F7F50은 Stretch(Jessie 이후 출시됨) 서명 키입니다. 최신 패키지를 설치하면 이 문제를 해결할 수 있지만 debian-archive-keyring꼭 그렇게 할 필요는 없을 것 같습니다.

그러나 더 큰 문제는 jessie-backport를 사용하고 있다는 것입니다. Jessie와 함께 중단되었습니다(백포트는 장기적으로 지원되지 않았습니다). 지원되지 않는 이전 jessie-backports 패키지를 사용하려면 해당 패키지를 거기서 가져와야 합니다 http://archive.debian.org/debian/dists/jessie-backports/. 또한 보관된 자료는 재서명이 되지 않아 서명이 만료되었습니다. 모든Jessie 백포트 저장소를 가져올 수 없습니다., sources.list항목은 다음과 같습니다.

deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main

또한 httpredir.debian.org더 이상은 그렇지 않습니다 deb.debian.org. 바라보다https://deb.debian.org/지침을 위해.

(물론 실제로 해야 할 일은 현재 버전인 Buster에서 컨테이너를 구축하는 것입니다.)

관련 정보