GPG error

Development/Linux & Android 2013. 12. 27. 14:04


sudo add-apt-repository ppa:noobslab/themes

또는

/etc/apt/sources.list 파일에 deb http://ppa.launchpad.net/noobslab/themes precise main 추가하고

sudo apt-get update

Ubuntu 12.04 에서 위와 같은 명령을 이용해 repository를 추가 하고 업데이트를 할 때 아래와 같은 메시지를 만날 수 있다.

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY xxxxxxxxxxx

이럴 때는 http://keyserver.ubuntu.com 에서 본인의 pub_key를 찾고 이를 등록해주면 된다.


1. Search String 에 자신의 키 ( 에러메시지의 xxxxxxx부분)를 입력하고 "Search!"

2. 나온 결과의 Public Key를 복사하여 임시 파일을 만든다 (ex: key1)

3. 해당 키를 등록 

sudo adp-key add key1

4. 다시 apt-get update 수행



아래 링크의 두 번째 방법을 참고하였다.

http://opensourceforgeeks.blogspot.in/2013/04/w-gpg-error-httpppalaunchpadnet-precise.html


: