skip to Main Content

I’m installing Jenkins on AWS EC2 CentOS instance.
I’m following this tutorial for installation – https://medium.com/@itsmattburgess/installing-jenkins-on-amazon-linux-16aaa02c369c.
I’m getting the below error while installing:

Downloading packages:
warning: /var/cache/yum/x86_64/7/jenkins/packages/jenkins-2.232-1.1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 45f2c3d5: NOKEY:00 ETA
Public key for jenkins-2.232-1.1.noarch.rpm is not installed
jenkins-2.232-1.1.noarch.rpm | 63 MB 00:01:49

enter image description here

Where am I getting wrong?

3

Answers


  1. Chosen as BEST ANSWER

    Issue got resolved. Instead of the command "sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo" i used "sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo "and it was working. Than's every for viewing my question and taking time to answer it.


  2. Updated: They’ve updated their key URL to the following – import this key as part of the setup instead and the yum install call should function without issues and not require disabling the gpg check:

    https://pkg.jenkins.io/redhat/jenkins.io.key


    Original answer: I’ve also been hitting this. The team has apparently updated their key, but haven’t updated the docs or published the new public key component and the one located at http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key isn’t valid any longer. For now you can run a yum install with GPG check disabled just to get past the initial install Jenkins:

    yum install jenkins --nogpgcheck
    

    Once they’ve published the new public key, you’ll want to import it with the rpm --import [url] call per usual so that yum update will work as expected.

    Login or Signup to reply.
  3. Jenkins is changing their signing keys again.
    Beginning with LTS 2.387.2 and weekly 2.397, releases will be signed with a new GPG key.

    The correct public key can be found on the page for Jenkins Redhat Packages and in Jenkins installation handbook. Just run the command below to import it:

    See Jenkins Blog posts for details:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search