CentOS使用第三方源yum时,出现如下报错:
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
两种方法:
编辑 etc/yum.repos.d/rpmforge.repo,更改 gpgcheck=0
执行 rpm --import /etc/pki/rpm-gpg/RPM* 或者 rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
转载于:https://my.oschina.net/HeAlvin/blog/388452