GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-Cent

错误描述:cento更新完源之后安装软件会出现这个错误

GPG key retrieval failed: [Errno 14] curl#37 - "Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6"

解决方法:修改/etc/yum.repos.d/CentOS-Base.repo

最后面的数字改成版本号,例如我用的是centos7,那就所有的gpgkey的最后一个数字都改成7

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

然后再执行

# yum makecache
# yum update

问题解决

文章来自:http://blog.csdn.net/moolight_shadow/article/details/45749065
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3