티스토리 뷰

반응형

패키지 목록을 업데이트 하기 위해 sudo apt-get update 명령을 실행했는데 다음과 같은 오류가 발생했다.

 

오류 로그:

hyper@ubuntu:~$ sudo apt-get update
기존:1 https://download.docker.com/linux/ubuntu xenial InRelease
기존:2 https://deb.nodesource.com/node_6.x xenial InRelease                                                                                                                                                
받기:3 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]                                                                                                                                 
기존:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease                                                                                                                                            
받기:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]                              
받기:6 http://packages.microsoft.com/repos/code stable/main amd64 Packages [22.7 kB]                                                     
받기:7 http://packages.microsoft.com/repos/code stable/main arm64 Packages [23.3 kB]                                                                            
받기:8 http://packages.microsoft.com/repos/code stable/main armhf Packages [23.3 kB]                                                     
받기:9 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]                                                                               
오류:10 https://apt.kubernetes.io kubernetes-xenial InRelease                                   
  다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY FEEA9169307EA071  NO_PUBKEY 8B57C5C2836F4BEB
받기:11 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]                         
받기:12 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [93.7 kB]
기존:13 https://packagecloud.io/github/git-lfs/ubuntu xenial InRelease       
받기:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2,040 kB]                     
받기:15 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [130 kB]             
받기:16 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [2,464 B]
받기:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [1,519 kB]                       
받기:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [326 kB]
받기:19 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1,221 kB]
받기:20 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [1,087 kB]
받기:21 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [281 kB]
받기:22 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,976 B]
받기:23 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
받기:24 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [6,616 B]
내려받기 7,121 k바이트, 소요시간 4초 (1,549 k바이트/초)               
패키지 목록을 읽는 중입니다... 완료
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.kubernetes.io kubernetes-xenial InRelease: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY FEEA9169307EA071  NO_PUBKEY 8B57C5C2836F4BEB
W: https://apt.kubernetes.io/dists/kubernetes-xenial/InRelease 파일을 받는데 실패했습니다  다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY FEEA9169307EA071  NO_PUBKEY 8B57C5C2836F4BEB
W: Some index files failed to download. They have been ignored, or old ones used instead.

 

이 오류는 필요한 PUBKEY가 제대로 등록되어있지 않아 발생하는 오류로, 해당 PUBKEY를 등록해주면 해결된다.

위의 로그에서 없다고 나온 PUBKEY인 8B57C5C2836F4BEBFEEA9169307EA071를 등록한다.

# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>

hyper@ubuntu:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B57C5C2836F4BEB
Executing: /tmp/tmp.4Z9t83D5jO/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
8B57C5C2836F4BEB
gpg: requesting key 836F4BEB from hkp server keyserver.ubuntu.com
gpg: key 836F4BEB: public key "gLinux Rapture Automatic Signing Key (//depot/google3/production/borg/cloud-rapture/keys/cloud-rapture-pubkeys/cloud-rapture-signing-key-2020-12-03-16_08_05.pub) <glinux-team@google.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

hyper@ubuntu:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FEEA9169307EA071
Executing: /tmp/tmp.4vrbjXvwJc/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
FEEA9169307EA071
gpg: requesting key 307EA071 from hkp server keyserver.ubuntu.com
gpg: key 307EA071: public key "Rapture Automatic Signing Key (cloud-rapture-signing-key-2021-03-01-08_01_09.pub)" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

 

그리고 다시 sudo apt-get update 명령을 실행하면 다음과 같이 정상적으로 처리되는 것을 확인할 수 있다.

hyper@ubuntu:~$ sudo apt-get update
기존:1 https://download.docker.com/linux/ubuntu xenial InRelease
기존:2 http://packages.microsoft.com/repos/code stable InRelease                                                                                                                                         
기존:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease                                                                                                                                  
기존:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease                                       
기존:5 http://security.ubuntu.com/ubuntu xenial-security InRelease                                      
기존:7 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease                                   
기존:8 https://deb.nodesource.com/node_6.x xenial InRelease       
받기:9 https://apt.kubernetes.io kubernetes-xenial/main amd64 Packages [46.2 kB]
기존:10 https://packagecloud.io/github/git-lfs/ubuntu xenial InRelease
내려받기 46.2 k바이트, 소요시간 1초 (30.7 k바이트/초)           
패키지 목록을 읽는 중입니다... 완료

 

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함