您的位置:首页 > 运维架构 > Linux

yum [Errno 14] problem making ssl connection CentOs

2018-11-12 20:18 393 查看

yum [Errno 14] problem making ssl connection CentOs

 

 

CentOS下执行yum install时提示无法下载https的package包,异常信息提示如下

 

[root@ebs-62781 mysql]# yum -y  install docker-io
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
 

 

 

解决方法
vim /etc/yum.repos.d/epel.repo

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearc
h
failovermethod=priority
enabled=1
#enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 
将enabled=1先改为enabled=0
然后命令行执行

yum install ca-certificates,安装成功后,将enabled重新改为1,再行

yum install -y XXXX可以正常安装了


--------------------- 
作者:冥王 • 雷利 
来源:CSDN 
原文:https://blog.csdn.net/chao_1990/article/details/76959691 
版权声明:本文为博主原创文章,转载请附上博文链接!

阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: