我如何解决错误Public key for jenkins-2.238-1.1.noarch.rpm is not installed when I run yum update for jenkins installation for the AWS EC2

mwg9r5ms  于 2023-04-19  发布在  Jenkins
关注(0)|答案(3)|浏览(336)

当我yum更新我的aws ec2时得到错误附加
下载软件包:警告:/var/cache/yum/x86_64/2/jenkins/packages/jenkins-2.238-1.1.noarch.rpm:头V4 RSA/SHA 512签名,密钥ID 45 f2 c3 d5:NOKEY
未安装jenkins-2.238-1.1.noarch.rpm的公钥

rhfm7lfc

rhfm7lfc1#

您可以尝试手动安装其密钥:

sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

如Jenkins官方网站所示。

qvk1mo1f

qvk1mo1f2#

Debian/Ubuntu

wget -qO - https://pkg.jenkins.io/debian-stable/jenkins.io.key | apt-key add -

Red Hat/CentOS

rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
Blog post

utugiqy6

utugiqy63#

Jenkins现在正在进行密钥轮换。
参考:https://get.jenkins.io/redhat/
您现在需要的密钥:
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io-2023.key

相关问题