I'm installing Jenkins on AWS EC2 CentOS instance.
I'm following this tutorial for installation - .
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 Where am I getting wrong?
23 Answers
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:
- Long Term Support release:
sudo rpm --import - Weekly release:
sudo rpm --import
See Jenkins Blog posts for details:
- Jenkins 2.397 and 2.387.2: New Linux Repository Signing Keys
- Jenkins 2.235.3: New Linux Repository Signing Keys
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:
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 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.
Issue got resolved. Instead of the command "sudo wget -O /etc/yum.repos.d/jenkins.repo " i used "sudo wget -O /etc/yum.repos.d/jenkins.repo "and it was working. Than's every for viewing my question and taking time to answer it.
