昊鼎王五:解决获取 GPG 密钥失败(安装蓝鲸过程记录)

#昊鼎王五:解决获取 GPG 密钥失败(安装蓝鲸过程记录)

#报错信息如下:

从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 检索密钥   
获取 GPG 密钥失败:[Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7"
[192.168.1.103]20180411-121211 51   install cmdb requirments failed.

#原因定位:
获取 GPG 密钥失败

#解决方法:
一般情况下用不到EPEL的GPG-KEY,直接disable这个功能。

将gpgcheck=1改成gpgcheck=0

如下

[root@hd103 rpm-gpg]# vim /etc/yum.repos.d/epel.repo
[root@hd103 rpm-gpg]# cat  /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=0      #改成0#
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=0    #改成0#
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=0       #改成0#
[root@hd103 rpm-gpg]#

好了,聪明如你,知道了解决获取 GPG 密钥失败,是不是很欢喜 _

还有其他问题的可以在评论区留言或者扫码加博主获取资源或者提问。
昊鼎王五:解决获取 GPG 密钥失败(安装蓝鲸过程记录)_第1张图片

你可能感兴趣的:(蓝鲸智云)