在Fedora36执行sudo dnf update
遇到这个错误
The GPG keys listed for the “packages for the GitHub CLI” repository are already installed but they are not correct for this package
执行以下代码
curl -fsSL -o /var/tmp/githubcli-archive-keyring.gpg \
https://cli.github.com/packages/githubcli-archive-keyring.gpg
gpg --keyring /var/tmp/githubcli-archive-keyring.gpg \
--no-default-keyring --export --armor > /var/tmp/githubcli-archive-keyring.asc
sudo rpm --import /var/tmp/githubcli-archive-keyring.asc
然后更新。
引用 https://ask.fedoraproject.org/t/the-gpg-keys-listed-for-the-packages-for-the-github-cli-repository-are-already-installed-but-they-are-not-correct-for-this-package/26241