기타정보

Jenkins public key is not available 해결방법

TwoIceFish 2023. 4. 10. 14:43

Jenkins apt update 시 다음과 같은 메시지가 발생하면 아래의 명령어를 실행한다.

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA

 

Jenkins 키를 업데이트 해준다

curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
  /usr/share/keyrings/jenkins-keyring.asc > /dev/null


echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
  https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
  /etc/apt/sources.list.d/jenkins.list > /dev/null

 

Jenkins 업데이트 수행

apt update && apt upgrade -y