Centos GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
======================================================================
解决方案是:
rpm --import /etc/pki/rpm-gpg/RPM*
如果/etc/pki/rmp-gpg目录下没有RPM-GPG-KEY-EPEL-6
请用下面命令下载指定目录下
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
https://fedoraproject.org/static/0608B895.txt 再次运行
rpm --import /etc/pki/rpm-gpg/RPM*即可解决