YUM更新出错 [Errno 14] problem making ssl connection

升级saltstack出错,原因是yum installl时报错如下

[root@localhost:yum.repos.d]$ yum install salt salt-minion
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 1. base: mirrors.cn99.com
 2. epel: mirrors.tuna.tsinghua.edu.cn
 3. extras: mirrors.cn99.com
 4. updates: mirrors.163.com
https://repo.saltstack.com/yum/redhat/6/x86_64/2019.2/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: salt-2019.2. Please verify its path and try again

第一步,修改出问题的repolist配置文件

vim salt-2019.2.repo
[salt-2019.2]
name=SaltStack 2019.2 Release Channel for Python 2 RHEL/Centos $releasever
baseurl=https://repo.saltstack.com/yum/redhat/6/$basearch/2019.2
failovermethod=priority
enabled=0        # enabled修改为0                                                                                             
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/saltstack-signing-key

第二步,更新服务器的软件包

yum -y install ca-certificates openssl nss curl

第三步,修改repolist配置文件,设置enabled=1

然后就可以yum install,问题得到解决

参考:http://centosquestions.com/yum-update-giving-errno-14-problem-making-ssl-connection/

猜你喜欢

转载自blog.csdn.net/tony_wzx/article/details/105946851