redhat yum install - GPG 密钥检索失败

redhat yum install - GPG 密钥检索失败

我尝试在 Linux 机器上使用 yum install etckeeper。详细信息如下。

安装在检索密钥时失败。

我想知道为什么密钥文件的地址是 file:///etc/pki/。密钥文件不是应该通过 http 来检索吗?

[me@linux ~]$ sudo yum install etckeeper
[sudo] password for me: 
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package etckeeper.noarch 0:1.4-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
Package                  Arch                  Version                    Repository             Size
=====================================================================================================
Installing:
 etckeeper                noarch                1.4-1.el6                  epel                   38 k

Transaction Summary
=====================================================================================================
 Install       1 Package(s)

Total size: 38 k
Installed size: 61 k
Is this ok [y/N]: y
Downloading Packages:
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-6

答案1

尝试手动导入

# rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6

答案2

您也可以直接使用命令安装 yum install --nogpgcheck {packagename}

答案3

您必须先安装 epel-release 包才能安装 GPG-Keys:

sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

相关内容