1. 程式人生 > >yum [Errno 14] problem making ssl connection CentOs

yum [Errno 14] problem making ssl connection CentOs

yum [Errno 14] problem making ssl connection CentOs

 

 

CentOS下執行yum install時提示無法下載https的package包,異常資訊提示如下

 

[[email protected] 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 
版權宣告:本文為博主原創文章,轉載請附上博文連結!