Linux使用Atomicorp的YUM源时提示key ID 4520afa9: NOKEY

来源:互联网 发布:全球数据交换中心 编辑:程序博客网 时间:2024/06/06 14:02

如题,在使用Atomicorp的YUM源的时候,有时候会出现下面的提示:

[html] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 4520afa9: NOKEY  

或类似下面的提示:

[html] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 4520afa9: NOKEY  
  2. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt  
  3.   
  4. 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.  
  5. Check that the correct key URLs are configured for this repository.  

总之就是NOKEY。

解决方法如下:

打开Atomic的YUM配置文件

[plain] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. #vim /etc/yum.repos.d/atomic.repo  

找到里面的getkey共有两个将文件改为:

https://www.atomicorp.com/RPM-GPG-KEY.atomicorp.txt

即:

[html] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. getkey=https://www.atomicorp.com/RPM-GPG-KEY.atomicorp.txt  

重新执行yum的安装问题解决!!
0 0