Blogger Information
Blog 28
fans 0
comment 0
visits 49060
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Centos7 yum安装软件报错:获取 GPG 密钥失败:[Errno 14]
益伦的博客
Original
7311 people have browsed it

yum -y install vim
执行上述命令时报错,yum源用的iso本机挂载

Transaction Summary

Install 1 Package (+30 Dependent packages)

Total size: 18 M
Installed size: 60 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/base/packages/perl-HTTP-Tiny-0.033-3.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KE-CentOS-7

GPG key retrieval failed: [Errno 14] curl#37 - “Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KE-CentOS-7”

网上搜索尝试了很多办法,更新密匙,修改文件,都没有效果,实际能用是是下面的方法。

解决方案是:
rpm --import /etc/pki/rpm-gpg/RPM*

出自 :https://www.ilanluo.com/7906

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post