论坛风格切换
  • 1557阅读
  • 0回复

[linux服务器]Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 [复制链接]

上一主题 下一主题
离线云天河
 

发帖
52
金币
186
威望
36
只看楼主 倒序阅读 使用道具 楼主  发表于: 2021-02-27
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*即可解决
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
提到某人:
选择好友
上一个 下一个