关于 yum 的 Error: Cannot retrieve metalink for repository: epel

CentOS 6.4 安装 epel 源后报这个错误,百度一下都是说

编辑/etc/yum.repos.d/epel.repo,把基础的恢复,镜像的地址注释掉

#baseurl
mirrorlist

改成

baseurl
#mirrorlist

这个可以称为 “扬汤止沸”。真正的解决还得借签歪果仁的方法,

"


You just needed to update ca-certificates package. Before that just disable all repos with https that are failing. That‘s why sollution with commenting mirrorlist or using http instead https would work also.

For example if you need to disable only epel repo:

yum --disablerepo=epel -y update  ca-certificates

This will also help wget, curl, and anything else that uses SSL certificates.

"

这是因为 ca-certificates 这个包太旧的原因,更新一下就好了。在新一些的 比如 centos-6.7 上是没有这个问题的。

时间: 2024-12-15 06:51:53

关于 yum 的 Error: Cannot retrieve metalink for repository: epel的相关文章

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

安装eple源,在yum clean all:yum makecache 后出现报错 Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 解决办法: sed -i 's/mirrorlist/\#mirrorlist/g' epel.repo epel-testing.repo sed -i 's/\#baseurl/baseurl/g' epel.repo epel

运行yum报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 当我们安装第三方扩展源后,yum的时候就会出现:Error: Cannot retrieve metalink for repository: epel. Please verify its path报错信息. 然后修改编辑/etc/yum.repos.d/epel.repo把镜像地址注释去掉, 然后把里面的 #ba

Error: Cannot retrieve metalink for repository: epel. 错误的解决方法

问题重现: 当配置epel源成功,yum update的时候出现如下错误: [[email protected] ~]# rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm [[email protected] ~]# yum update Loaded plugins: fastestmirror, security Loading mirror speeds from cached

运行yum报错Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

解决办法: vi /etc/yum.repos.d/epel.repo 编辑[epel]下的baseurl前的#号去掉,mirrorlist前添加#号 参考资料:http://teddysun.com/153.html

yum安装epel库后,安装软件总是提示Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again(无法检索epel仓库)

解决方法: vi /etc/yum.repos.d/epel.repo 将baseurl中的注释取消,将mirrorlist该列注释掉即可. 附图如下:

yum安装时出现:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

将baseurl的注释去掉,并将mirrorlist添加注释 执行yum clean all 在安装想要的包, 原文地址:https://www.cnblogs.com/yumengfei/p/11374393.html

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

报错: 解决方法: 修改文件/etc/yum.repos.d/epel.repo 将baseurl的注释取消, mirrorlist注释掉

yum安装时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again

在CentOS 6.3 x86_64下安装php-mcrypt的时候出现了问题:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,需要安装epel源. 解决方法: 一句话:把/etc/yum.repos.d/epel.repo,文件第3行注释去掉,把第四行注释掉.具体如下: 打开/etc/yum.repos.d/epel.repo,将 [epel] name=Ext

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

今天在测试环境使用yum安装,遇到一个问题: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 处理很简单,修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉.即可.