GPG检查在Centos Stream 9上失败,但在Fedora 35上没有失败
我正在使用使用CentOS 9的实验室服务器遇到问题,当我尝试安装Grafana时,GPG检查失败。这是我得到的输出:
Importing GPG key 0x24098CB6:
Userid : "Grafana <[email protected]>"
Fingerprint: 4E40 DDF6 D76E 284A 4A67 80E4 8C8C 34C5 2409 8CB6
From : https://packages.grafana.com/gpg.key
Is this ok [y/N]: y
Key import failed (code 2). Failing package is: grafana-8.5.5-1.x86_64
GPG Keys are configured as: https://packages.grafana.com/gpg.key
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
当我在本地Fedora 35机器上尝试相同的功能时,我得到了:
Importing GPG key 0x24098CB6:
Userid : "Grafana <[email protected]>"
Fingerprint: 4E40 DDF6 D76E 284A 4A67 80E4 8C8C 34C5 2409 8CB6
From : https://packages.grafana.com/gpg.key
Is this ok [y/N]: y
Key imported successfully
Running transaction check
下载的软件包是相同的grafana-8.5.5-1.x86_64.rpm
,i我正在使用dnf
两个安装,而grafana.repo
文件都是相同的:
[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
我知道我可以关闭GPG检查,但是我对这样的解决方案。
任何帮助解决这一问题都将不胜感激!让我知道我是否应该提供更多信息。
我最近又交换了Centos和Fedora,所以如果以前解决了这一问题,我深表歉意,但是我找不到它。
I am having an issue with a lab server I am running using CentOS 9, when I'm trying to install Grafana, the GPG check fails. This is the output I get:
Importing GPG key 0x24098CB6:
Userid : "Grafana <[email protected]>"
Fingerprint: 4E40 DDF6 D76E 284A 4A67 80E4 8C8C 34C5 2409 8CB6
From : https://packages.grafana.com/gpg.key
Is this ok [y/N]: y
Key import failed (code 2). Failing package is: grafana-8.5.5-1.x86_64
GPG Keys are configured as: https://packages.grafana.com/gpg.key
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
When I try the same on my local Fedora 35 machine, I get this:
Importing GPG key 0x24098CB6:
Userid : "Grafana <[email protected]>"
Fingerprint: 4E40 DDF6 D76E 284A 4A67 80E4 8C8C 34C5 2409 8CB6
From : https://packages.grafana.com/gpg.key
Is this ok [y/N]: y
Key imported successfully
Running transaction check
The packages being downloaded are the same grafana-8.5.5-1.x86_64.rpm
, I am using dnf
for both installations, and the grafana.repo
files are both the same:
[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
I know I could just turn off the gpg checking, but I am not comfortable with a solution like that.
Any help resolving this would be greatly appreciated! Let me know if I should supply any more information.
I've quite recently swapped over to CentOS and Fedora, so I apologize if this has been resolved before, but I was unable to find it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
已有一些变化。
CentOS流中的默认加密策略9。
update-crypto-policies - 设定默认值:sha1
需要用SHA256或SHA521密钥重新签名,而不是SHA11, 。
参考: https://access.redhat.com/articles/articles/6846411
There has been some change with the default crypto policies in CentOS streams 9.
update-crypto-policies --set DEFAULT:SHA1
The packages need to be re-signed with a SHA256 or SHA521 key instead of SHA1.
Ref: https://access.redhat.com/articles/6846411
以防万一有人在Rocky / Rhel / CentOS流上安装PLEX Media Server的同一问题的情况下找到此线程9 @askb中的信息解决了我的问题。
Just in case someone finds this thread with the same problem installing Plex Media Server on Rocky / RHEL / CentOS Stream 9 the information from @askb solved my issue.