当我尝试时,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?
您需要删除密钥已过期的软件包。运行
获取所有列表,然后根据你的情况,你需要确定与“GitHub CLI”相对应的列表,例如
来源:https ://gist.github.com/e7d/3b786c7410ca14a5ded61eec36de9874
尝试禁用 gpg check in
改变
到
这样我就能更新长时间离线的 Fedora 服务器
在这种情况下,我必须先卸载 github 包,因为它似乎已损坏。
之后我可以通过正常方式升级到F40。