yum 安装软件包时报错

yum安装软件时出现该报错:

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

[root@cloud ~]# yum -y install python-pip
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@cloud ~]# 

这表明你需要更新CA证书了,那么只需要更新CA证书就可以,不过在此同时需要临时禁用epel源并更新就可以了,命令如下:

[root@cloud ~]# yum --disablerepo=epel -y update ca-certificates

接着在使用 yum 安装软件就正常了

[root@cloud ~]# yum -y install python-pip
...
...Installed:
python-pip.noarch 0:7.1.0-1.el6                                                                                                        

Dependency Installed:
python-setuptools.noarch 0:0.6.10-3.el6                                                                                                

Complete!
[root@cloud ~]# 
comments powered by Disqus