2020년 1월 2일 목요일

[Linux]우분투 GPG 공개키 인증 오류, 공개키 서버등록

sudo apt-get updata && sudo apt-get upgrade 시

아래와 같은 문제 발생
-----------------------------------------------------------------------------------
USERNAME@USERNAME-pc:~$ sudo apt-get update
기존:1 http://packages.osrfoundation.org/gazebo/ubuntu xenial InRelease
기존:3 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease          
기존:4 http://kr.archive.ubuntu.com/ubuntu xenial InRelease                           
받기:2 http://packages.ros.org/ros/ubuntu xenial InRelease [4,678 B]                  
받기:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]           
오류:2 http://packages.ros.org/ros/ubuntu xenial InRelease                            
  다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY F42ED6FBAB17C654
받기:6 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]          
받기:7 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]        
내려받기 330 k바이트, 소요시간 2초 (156 k바이트/초)
패키지 목록을 읽는 중입니다... 완료
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org/ros/ubuntu xenial InRelease: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY F42ED6FBAB17C654
W: http://packages.ros.org/ros/ubuntu/dists/xenial/InRelease 파일을 받는데 실패했습니다  다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY F42ED6FBAB17C654
W: Some index files failed to download. They have been ignored, or old ones used instead.
--------------------------------------------------------------------------------------

해결방법

$ gpg --keyserver keyserver.ubuntu.com --recv F42ED6FBAB17C654
 
$ gpg --export --armor F42ED6FBAB17C654 | sudo apt-key add -
 
OK
 


더 알아보기는 GPG 구글링 고고
 

댓글 없음:

댓글 쓰기