본문 바로가기

Server

Ubuntu 18.04 LTS, Jenkins 설치시 GPG Error 해결

728x90

 

다른 블로그를 따라 다음을 수행

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
echo deb http://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
sudo apt-get install update
sudo apt-get install jenkins

 

그런데 실행되지 않았다.

sudo apt-get install update 중

W: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <16개의 대문자 알파벳>

 

이렇게 GPG error 가 나서 업데이트에 실패 했던 것

해결법 : 

$sudo apt-key adv --keyserver  keyserver.ubuntu.com --recv-keys <아까 그 16개 대문자 알파벳>

Executing: /tmp/apt-key-gpghome.<10개대소문자알파벳>/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys <16개대문자알파벳>
gpg: key <16개대문자알파벳>: public key "Jenkins Project <jenkinsci-board@googlegroups.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

 

이렇게 하니 apt-get install update 가 성공함

728x90