找回密码
 注册
查看: 6376|回复: 2

yum install 或者yum list 报错[Errno 14] curl#37 - "Couldn't open file

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-8-10 09:55:51 | 显示全部楼层 |阅读模式
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
" z$ P4 b9 H9 @# P
+ U) w0 U" u2 @3 SGPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud"
: g. g5 X% g* \3 e3 e查找这个报错的文件:
* f( ~" k) j6 H: \1 n5 d2 s- bfind /etc/yum.repos.d/ -type f -name "*.repo" |xargs grep -r "RPM-GPG-KEY-CentOS-SIG-Cloud"
/ u+ j- n2 E% ?4 s' ?! K/ Y/etc/yum.repos.d/CentOS-OpenStack-pike.repo:gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
7 ?% P+ U% ~2 A/etc/yum.repos.d/CentOS-OpenStack-pike.repo:gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
0 p. I  A1 X. T' l/ r' J( K, p5 x/etc/yum.repos.d/CentOS-OpenStack-pike.repo:gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud  \6 ~+ G# h$ ~1 l; P! ]4 [
修改认证关系:3 f. l5 J+ ?/ n6 M
find /etc/yum.repos.d/ -type f -name "*pike*" |xargs sed -i 's/gpgcheck=1/gpgcheck=0/g'
* L8 A: M5 A8 Hfind /etc/yum.repos.d/ -type f -name "*pike*" |xargs sed -i 's/gpgcheck=1/gpgcheck=0/g'
& Z1 r" V/ z5 c. v
6 }/ ?- u4 O* y% P0 w% {% z也可以copy已经存在的节点上有的pki目录下的配置文件:2 A5 z- S8 @, u7 q; K
见附件:attach://154., G' _8 G6 @$ S5 I

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-8-10 09:58:57 | 显示全部楼层
这两种方法最好都yum clean all一下,清除yum缓存。在重新安装,就可以了,一种方法是取消yum源认证,这种方法有可能不安全。第二种方式是copy其他系统装好的pki认证文件,这样的话安全认证比较好些。

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-9-7 15:21:27 | 显示全部楼层
现在yum方式还是比较安全的,只要是正规的yum源地址,基本上,可以不用去验证。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:46 , Processed in 0.030316 second(s), 30 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表