GPG检查在Centos Stream 9上失败,但在Fedora 35上没有失败

发布于 2025-02-05 06:40:26 字数 1738 浏览 5 评论 0原文

我正在使用使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

愿与i 2025-02-12 06:40:26

已有一些变化。

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

十年九夏 2025-02-12 06:40:26

以防万一有人在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文