AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1166049
Accepted
theking2
theking2
Asked: 2024-10-03 02:10:36 +0800 CST2024-10-03 02:10:36 +0800 CST 2024-10-03 02:10:36 +0800 CST

如何在出现 GPG 错误的情况下更新至 Fedora 40

  • 772

当我尝试时,dnf upgrade我得到了这样的结果:

error: Verifying a signature using certificate 2C6106201985B60E6C7AC87323F3D4EA75716059 (GitHub CLI <[email protected]>):
  1. Certificate 23F3D4EA75716059 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-09-06T11:17:19Z
  2. Key 23F3D4EA75716059 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-09-06T11:17:19Z
packages for the GitHub CLI                                                                                                 20 kB/s | 4.7 kB     00:00    
GPG key at https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x23F3D4EA75716059 (0x75716059) is already installed
The GPG keys listed for the "packages for the GitHub CLI" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: gh-2.58.0-1.x86_64
 GPG Keys are configured as: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x23F3D4EA75716059
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

--nogpgcheck没有帮助。

如何成功更新到 Fedora 40?

fedora
  • 3 3 个回答
  • 601 Views

3 个回答

  • Voted
  1. Best Answer
    hlovdal
    2025-02-25T06:29:23+08:002025-02-25T06:29:23+08:00

    您需要删除密钥已过期的软件包。运行

    rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'
    

    获取所有列表,然后根据你的情况,你需要确定与“GitHub CLI”相对应的列表,例如

    rpm --erase gpg-pubkey-38ab71f4-60242b087
    

    来源:https ://gist.github.com/e7d/3b786c7410ca14a5ded61eec36de9874

    • 1
  2. chyzhykio
    2024-10-07T04:11:25+08:002024-10-07T04:11:25+08:00

    尝试禁用 gpg check in

    /etc/dnf/dnf.conf
    

    改变

    gpgcheck=True
    

    到

    gpgcheck=False
    

    这样我就能更新长时间离线的 Fedora 服务器

    • 0
  3. theking2
    2024-10-09T03:43:58+08:002024-10-09T03:43:58+08:00

    在这种情况下,我必须先卸载 github 包,因为它似乎已损坏。

    sudo dnf uninstall gh
    

    之后我可以通过正常方式升级到F40。

    • 0

相关问题

  • 将 Fedora 用于服务器有什么问题?

  • /usr/bin/ld: 找不到 -lssl

  • Ubuntu、Fedora、openSUSE 对比

  • Fedora 11 上的 DNS 服务器

  • 在 VM 中运行 Fedora 目录服务器

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve