在 CentOS 6 上运行时:
yum update
Run Code Online (Sandbox Code Playgroud)
我接受它提供的交易摘要,然后立即收到以下信息:
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 4520afa9: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
The GPG keys listed for the "CentOS / Red Hat Enterprise Linux 6 - atomicrocketturtle.com" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
当我运行这个:
rpm -q --queryformat "%{SUMMARY}\n" gpg-pubkey
Run Code Online (Sandbox Code Playgroud)
我得到这个回应:
gpg(CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>)
gpg(EPEL (6) <epel@fedoraproject.org>) …Run Code Online (Sandbox Code Playgroud)