Centos 14: problem making ssl connection

Posted fsong

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos 14: problem making ssl connection相关的知识,希望对你有一定的参考价值。

在执行 yum 命令时,会提示

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
14: problem making ssl connection

解决方法是将: /etc/yum.repos.d/epel.repo 文件中的[epel] 节点的mirrorlist注释掉,baseurl去除注释,enable的值为1

命令:

使用vim 编辑器打开/etc/yum.repos.d/epel.repo文件

vim /etc/yum.repos.d/epel.repo

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
# baseurl 前去除#号
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
# mirrorlist 前加#好
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
# enable值改为1
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

修改完epel.repo 文件之后,然后再试 yum 命令
如:

yum list php
References
  1. linux下yum错误:Errno 14 problem making ssl connection Trying other mirror.

以上是关于Centos 14: problem making ssl connection的主要内容,如果未能解决你的问题,请参考以下文章

CDOJ-P65 CD Making

CentOS安装glibc-2.14(转)

centos升级glibc(升级到2.14版)

(转)CentOS7安装Nginx1.14.2

centos 安装 libiconv

centos 64位编译安装 glibc-2.14