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 hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

解决方法:

修改/etc/yum.repos.d/epel.repo文件,将mirrirlist注释掉,并把baseurl的注释取消。搞定
时间: 2024-08-10 17:20:45

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

Cannot retrieve metalink for repository: epel 错误解决办法

centos下安装完EPEL源, 然后更新一下yum缓存, 如果发现这样的错误:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again这就表明需要更新CA证书了,那么只需要更新CA证书就可以,不过在此同时需要临时禁用epel源并更新就可以了,命令如下:     yum --disablerepo=epel -y update ca-certificates

执行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. Please verify its path and try again

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

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

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 di

运行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安装时出现: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

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