The following signatures couldn't be verified because the public key is not available: NO PUBKEY

Jmnote (토론 | 기여)님의 2024년 4월 26일 (금) 10:47 판 (→‎또 다른 문제)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

The following signatures couldn't be verified because the public key is not available: NO PUBKEY

2 문제 상황[ | ]

# apt-get update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 https://download.docker.com/linux/debian buster InRelease
Err:1 http://security.debian.org/debian-security buster/updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
...
# apt update
Get:1 https://cli.github.com/packages stable InRelease [3917 B]
Ign:1 https://cli.github.com/packages stable InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 3917 B in 1s (3658 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
164 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: GPG error: https://cli.github.com/packages stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5

3 조치 방법[ | ]

# without proxy
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 3B4FE6ACC0B21F32
# with proxy
apt-key adv --keyserver keyserver.ubuntu.com --keyserver-options "http-proxy=http://<proxy>:<port>" --recv-keys 40976EAF437D05B5 3B4FE6ACC0B21F32
실행 예시
root@wsl:~# apt-key adv --keyserver keyserver.ubuntu.com --keyserver-options "http-proxy=http://10.20.30.40:5060" --recv-keys 40976EAF437D05B5
Executing: /tmp/apt-key-gpghome.7ZLvshQ0A0/gpg.1.sh --keyserver keyserver.ubuntu.com --keyserver-options http-proxy=http://127.0.0.1:8080 --recv-keys 40976EAF437D05B5
gpg: key 40976EAF437D05B5: public key "GitHub CLI <opensource+cli@github.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
root@wsl:~# apt-key adv --keyserver keyserver.ubuntu.com --keyserver-options "http-proxy=http://10.20.30.40:5060" --recv-keys E80246AC9E13BDF5
Executing: /tmp/apt-key-gpghome.i5op4yxpUd/gpg.1.sh --keyserver keyserver.ubuntu.com --keyserver-options http-proxy=http://10.20.30.40:5060 --recv-keys E80246AC9E13BDF5
gpg: key 7913F58BD02B4691: 2 duplicate signatures removed
gpg: key 7913F58BD02B4691: "Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com>" 3 new signatures
gpg: key 7913F58BD02B4691: "Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com>" 2 new subkeys
gpg: Total number processed: 1
gpg:            new subkeys: 2

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}