udacity / devops-intro-project

Project files for Intro to DevOps class
286 stars 3.57k forks source link

jenkins public key is not available #93

Closed ghasemel closed 3 years ago

ghasemel commented 4 years ago

I had this error:

==> amazon-ebs: W: GPG error: http://pkg.jenkins-ci.org/debian binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FCEF32E745F2C3D5 ==> amazon-ebs: E: The repository 'http://pkg.jenkins-ci.org/debian binary/ Release' is not signed. amazon-ebs: Reading package lists...

the solution to it was modifying these two lines in jenkins.sh file: wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add - echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list

to this: wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \ /etc/apt/sources.list.d/jenkins.list'