CentOS yum [Errno 14] problem making ssl connection CentOs

vi /etc/resolv.conf

nameserver 1.2.4.8

nameserver 8.8.8.8

 

replace yum base repo

1) The download link of centos5.*:
[root@bastion-IDC yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.aliyun.com/repo /Centos-5.repo

2) The download link of centos6.*:
[root@bastion-IDC yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.aliyun.com/repo /Centos-6.repo

3) The download link of centos7.*:
[root@bastion-IDC yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.aliyun.com/repo /Centos-7.repo

 

vi /etc/yum/respos.d/epel.repo

Will

enabled=1

change to

enabled=0

 

yum install ca-certificates

 

vi /etc/yum/respos.d/epel.repo

Will

enabled=0

change to

enabled=1

 

At this point yum has returned to normal

 

refer to:

https://www.cnblogs.com/kevingrace/p/6252659.html

https://blog.csdn.net/chao_1990/article/details/76959691

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325858038&siteId=291194637