yum [Errno 14] problem making ssl connection CentOs

前端之家收集整理的这篇文章主要介绍了yum [Errno 14] problem making ssl connection CentOs前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

# yum install -y PHP-mcrypt.x86_64

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.btte.net
 * updates: mirrors.btte.net
epel                                                     | 4.3 kB     00:00     
http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/56549b7eb81579a5e8512a47955fe5a2ed2c665557b580caa9c2919c2ffd5583-primary.sqlite.bz2: [Errno 14] problem making ssl connection
Trying other mirror.

解决方法

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可以正常安装了

猜你在找的Bash相关文章