首页 > 代码库 > Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
CentOS7安装任何软件,比如
yum -y install ansible
出现错误信息:
Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
名词解释:
EPEL:extra packages for enterprise linux.
一般情况下用不到EPEL,直接disable这个功能。
vi /etc/yum.repos.d/epel.repo
修改前:
[epel]name=Extra Packages for Enterprise Linux 7 - $basearch#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearchmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
修改后:
[epel]name=Extra Packages for Enterprise Linux 7 - $basearch#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearchmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
重新yum -y install ansible,解决。
Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。