Rocky linux, Failed to download metadata for repo ‘gitlab_gitlab-ee’: repomd.xml GPG signature verification error: Bad GPG signature

Posted in :

在使用 sudo dnf update 遇到錯誤.

解法:
https://forum.gitlab.com/t/error-on-update-rhel8-repomd-xml-gpg-signature/66498

Remove any existing key from the repository keyrings:

for pubring in /var/cache/dnf/gitlab_gitlab-?e-*/pubring
do
  gpg --homedir $pubring --delete-key F6403F6544A38863DAA0B6E03F01618A51312F3F
done

Update the repository data/cache, which asks you to confirm keys:

dnf check-update

Download the new key and import it

curl "https://gitlab-org.gitlab.io/omnibus-gitlab/gitlab_new_gpg.key" -o /tmp/omnibus_gitlab_gpg.key
sudo rpm --import /tmp/omnibus_gitlab_gpg.key

這時候, 再執行 sudo dnf update 就變正常了。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *