![*.debian.org의 GPG 키를 복구(또는 재설정)하는 방법은 무엇입니까?](https://linux55.com/image/125740/*.debian.org%EC%9D%98%20GPG%20%ED%82%A4%EB%A5%BC%20%EB%B3%B5%EA%B5%AC(%EB%98%90%EB%8A%94%20%EC%9E%AC%EC%84%A4%EC%A0%95)%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
그래서 *.debian.org의 gpg 키를 삭제하거나 손상시킨 것 같습니다 apt-get update
.
Ign http://ftp.fr.debian.org jessie InRelease
Réception de : 1 http://security.debian.org jessie/updates InRelease [63,1 kB]
Réception de : 2 http://ftp.debian.org jessie-backports InRelease [166 kB]
Réception de : 3 http://ftp.fr.debian.org jessie Release.gpg [2 434 B]
Ign http://security.debian.org jessie/updates InRelease
Réception de : 4 http://ftp.fr.debian.org jessie-updates InRelease [145 kB]
Ign http://security.debian.org jessie/updates/main Sources/DiffIndex
Ign http://ftp.debian.org jessie-backports InRelease
Ign http://security.debian.org jessie/updates/main amd64 Packages/DiffIndex
Err http://ftp.fr.debian.org jessie-updates InRelease
Réception de : 5 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27,8 kB]
Atteint http://ftp.fr.debian.org jessie Release
Ign http://ftp.fr.debian.org jessie Release
Réception de : 6 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [25,3 kB]
Ign http://ftp.fr.debian.org jessie/main Sources/DiffIndex
Ign http://ftp.fr.debian.org jessie/main amd64 Packages/DiffIndex
Atteint http://security.debian.org jessie/updates/main Translation-en
Atteint http://security.debian.org jessie/updates/main Sources
Atteint http://security.debian.org jessie/updates/main amd64 Packages
Atteint http://ftp.debian.org jessie-backports/contrib Translation-en
Atteint http://ftp.fr.debian.org jessie/main Translation-fr
Atteint http://ftp.fr.debian.org jessie/main Translation-en
Ign http://security.debian.org jessie/updates/main Translation-fr_FR
Ign http://security.debian.org jessie/updates/main Translation-fr
Atteint http://ftp.debian.org jessie-backports/main Translation-en
Atteint http://ftp.fr.debian.org jessie/main Sources
Atteint http://ftp.fr.debian.org jessie/main amd64 Packages
Ign http://ftp.fr.debian.org jessie/main Translation-fr_FR
Ign http://ftp.debian.org jessie-backports/contrib Translation-fr_FR
Ign http://ftp.debian.org jessie-backports/contrib Translation-fr
Ign http://ftp.debian.org jessie-backports/main Translation-fr_FR
Ign http://ftp.debian.org jessie-backports/main Translation-fr
430 ko réceptionnés en 2s (175 ko/s)
Lecture des listes de paquets…
W: Erreur de GPG : http://security.debian.org jessie/updates InRelease : Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY (SOME hexadecimals) NO_PUBKEY (SOME hexadecimals)
W: Erreur de GPG : http://ftp.debian.org jessie-backports InRelease : Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY (SOME hexadecimals) NO_PUBKEY (SOME hexadecimals)
W: Une erreur s'est produite lors du contrôle de la signature. Le dépôt n'est pas mis à jour et les fichiers d'index précédents seront utilisés. Erreur de GPG : http://ftp.fr.debian.org jessie-updates InRelease : Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY (SOME hexadecimals) NO_PUBKEY (SOME hexadecimals)
W: Erreur de GPG : http://ftp.fr.debian.org jessie Release : Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY (SOME hexadecimals) NO_PUBKEY (SOME hexadecimals) NO_PUBKEY (SOME hexadecimals)
W: Impossible de récupérer http://ftp.fr.debian.org/debian/dists/jessie-updates/InRelease
W: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.
"Les Signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible"은 대략 "공개 키를 사용할 수 없기 때문에 다음 서명을 확인할 수 없습니다"로 번역됩니다.
이러한 오류를 어떻게 수정할 수 있나요?
업데이트: 내가 해냈어
# wget http://ftp.fr.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_2017.5~deb8u1_all.deb
# dpkg -i debian-archive-keyring_2017.5~deb8u1_all.deb
그러나 아무것도 변하지 않았습니다. 나는 모든 일의 이유가 다음과 같다고 생각합니다.
# curl -s https://www.dotdeb.org/dotdeb.gpg | apt-key remove
몇 분 전에 추가한 gpg 키를 삭제하세요.
답변1
패키지 를 다시 설치했으므로 debian-archive-keyring
이제 실제 키 파일이 제자리에 있어야 합니다. 그러나 재설치 시 키를 다시 신뢰할 수 있는 것으로 추가하지 못했습니다. 아마도 postinst
Debian squeeze에서 jessie로의 마이그레이션과 관련된 것으로 보이는 패키지 스크립트의 일부 조건 때문일 것입니다 .
다음을 수행해야 할 수도 있습니다(또는 매우 유사한 작업).
# cd /etc/apt/trusted.gpg.d
# for i in *.gpg ; do apt-key add $i; done
실제 키가 여전히 누락된 경우 무차별 대입 방법은 패키지를 수동으로 추출하는 것입니다.
mkdir /tmp/workdir
cd /tmp/workdir
ar x /some/where/debian-archive-keyring_2017.5~deb8u1_all.deb
tar xvf data.tar.xz
이제 디렉토리에 키 파일이 있어야 합니다 /tmp/workdir/etc/apt/trusted.gpg.d/
. 해당 위치에 복사하고 apt-key add
위에서 제안한 명령을 사용하십시오.
답변2
다운로드debian-archive-keyring
(Jessie 버전에 대한 링크) 그런 다음 루트로 수동으로 설치합니다.
dpkg -i debian-archive-keyring_2017.5~deb8u1_all.deb
이렇게 하면 키가 복원 /etc/apt/trusted.gpg.d
되고 다시 실행할 수 있습니다 apt
.