英文:
gitlab-ee-16.0.1-ee.0.el8 failed to update due to GPG check failed
问题
我正在尝试通过 dnf 在 fedora 38 下将 gitlab-ee 从 15.11.2 更新到 16.0.1。
更新失败,出现以下错误。
我尝试了许多方法来解决这个问题,但都失败了。有人能帮我摆脱这个困境吗?
错误: 使用证书 DBEF89774DDB9EB37D9FC3A03CFCF9BAF27EAB47(GitLab,Inc. <support@gitlab.com>)验证签名时出错:
1. 证书 3CFCF9BAF27EAB47 无效:证书不在有效期内
原因:主密钥不在有效期内
原因:在 2021-07-01T19:59:40Z 过期
2. 密钥 3CFCF9BAF27EAB47 无效:密钥不在有效期内
原因:主密钥不在有效期内
原因:在 2021-07-01T19:59:40Z 过期
错误: 使用证书 DBEF89774DDB9EB37D9FC3A03CFCF9BAF27EAB47(GitLab,Inc. <support@gitlab.com>)验证签名时出错:
1. 证书 3CFCF9BAF27EAB47 无效:证书不在有效期内
原因:主密钥不在有效期内
原因:在 2021-07-01T19:59:40Z 过期
2. 密钥 3CFCF9BAF27EAB47 无效:密钥不在有效期内
原因:主密钥不在有效期内
原因:在 2021-07-01T19:59:40Z 过期
gitlab_gitlab-ee 1.9 kB/s | 3.1 kB 00:01
已安装 GPG 密钥 https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey (0x51312F3F)
gitlab_gitlab-ee 3.9 kB/s | 3.8 kB 00:00
已安装 GPG 密钥 https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg (0xF27EAB47)
“gitlab_gitlab-ee” 存储库列出的 GPG 密钥已安装,但不正确适用于此软件包。
请检查是否为此存储库配置了正确的密钥 URL。失败的软件包是:gitlab-ee-16.0.1-ee.0.el8.x86_64
已配置的 GPG 密钥为:https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey,https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg
下载的软件包已保存在缓存中,直到下一次成功的交易。
您可以通过执行 'dnf clean packages' 来删除缓存的软件包。
错误:GPG 检查失败
英文:
I'm trying to update gitlab-ee from 15.11.2 to 16.0.1 under fedora 38 through dnf
The update was failed due to the following error.
I had tried many ways to solve this issue but failed. Can any one help me get out of this mire?
error: Verifying a signature using certificate DBEF89774DDB9EB37D9FC3A03CFCF9BAF27EAB47 (GitLab, Inc. <support@gitlab.com>):
1. Certificiate 3CFCF9BAF27EAB47 invalid: certificate is not alive
because: The primary key is not live
because: Expired on 2021-07-01T19:59:40Z
2. Key 3CFCF9BAF27EAB47 invalid: key is not alive
because: The primary key is not live
because: Expired on 2021-07-01T19:59:40Z
error: Verifying a signature using certificate DBEF89774DDB9EB37D9FC3A03CFCF9BAF27EAB47 (GitLab, Inc. <support@gitlab.com>):
1. Certificiate 3CFCF9BAF27EAB47 invalid: certificate is not alive
because: The primary key is not live
because: Expired on 2021-07-01T19:59:40Z
2. Key 3CFCF9BAF27EAB47 invalid: key is not alive
because: The primary key is not live
because: Expired on 2021-07-01T19:59:40Z
gitlab_gitlab-ee 1.9 kB/s | 3.1 kB 00:01
GPG key at https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey (0x51312F3F) is already installed
gitlab_gitlab-ee 3.9 kB/s | 3.8 kB 00:00
GPG key at https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg (0xF27EAB47) is already installed
The GPG keys listed for the "gitlab_gitlab-ee" 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: gitlab-ee-16.0.1-ee.0.el8.x86_64
GPG Keys are configured as: https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey, https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645
A26AB9FBD22.pub.gpg
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
答案1
得分: 3
最终,我通过以下步骤成功解决了这个问题。
找出本地机器上安装的所有 gpg-pubkey:
sudo rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' | grep gitlab
移除所有与 gitlab 相关的 gpg-pubkey:
sudo rpm -e gpg-pubkey-[keyId]
英文:
Finally, I managed to resolve this issue by the following steps.
Find out all gpg-pubkey installed on the local machine
sudo rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' | grep gitlab
Remove all gpg-pubkey which related to gitlab
sudo rpm -e gpg-pubkey-[keyId]
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论