运行yum报错Error: Cannot retrieve metalink

今天给Centos通过rpm -Uvh装了个epel的扩展后,执行yum就开始报错:

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

在网上查了查,解决办法都是编辑/etc/yum.repos.d/epel.repo,把基础的恢复,镜像的地址注释掉

#baseurl
mirrorlist

改成

baseurl
#mirrorlist

时间: 2024-10-26 10:22:31

运行yum报错Error: Cannot retrieve metalink的相关文章

运行yum报错Error: Cannot retrieve metalink for reposit

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 在网上查了查,解决办法都是编辑/etc/yum.repos.d/epel.repo,把基础的恢复,镜像的地址注释掉 #baseurlmirrorlist 改成 baseurl#mirrorlist

运行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 repository metadata (repomd.xml) for repository: rhel-source

思路: rm -fr /etc/yum.repo.d/*  #删除下面内容 wget http://mirrors.aliyun.com/repo/Centos-7.repo wget http://mirrors.aliyun.com/repo/Centos-6.repo   #从三个任一选择一个下载 wget http://mirrors.aliyun.com/repo/Centos-5.repo yum clean all  #清除 yum makecache  #重新加载缓存

epel安装第三方扩展源后,运行yum报错的解决方案

yum安装报错:Cannot retrieve metalink for repository: epel. Please verify its path and try again 解决方法: 一句话:把/etc/yum.repos.d/epel.repo,文件baseurl的注释放开,mirrorlist注释掉. 具体如下: 打开/etc/yum.repos.d/epel.repo,将 [epel] name=Extra Packages for Enterprise Linux 6 - $

全局安装的 webpack运行时 报错 Error: Cannot find module 'webpack' ......

全局安装的webpack   安装指令如下 cnpm install wepack -save-dev -g 但是 在我的项目空间运行webpack指令的时候 会报如下错误 为了方便抓取{ Error: Cannot find module 'webpack' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:476:23) at Module.require (m

运行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

CentOS 关闭IPv6及运行yum报错解决办法

问题一:关闭IPv6 1.问题:使用yum下载东西的时候提示有一个IPv6的地址不可达,如下 http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/924f970f6436162727781050e63524af37f891ba57c8a374cdd0a87e53d89180-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:

CentOS6.5运行yum报错:No module named yum

公司测试机环境不知道给我卸了什么包,导致yum运行报错状况: 报错情况: There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named sqlite Please install a package which provides this module, orverify that the modu

yum 报错 Error: Cannot find a valid baseurl for repo: base

环境: vmware OS:CentOS release 6.5 双网卡 Eth0(接公网 192.168.80.0),Eth1(接内网 192.168.44.0) 报错: 使用YUM更新软件时报错 Error: Cannot find a valid baseurl for repo: base 之前使用YUM一直没有问题,今天重启了虚拟机后yum就不能使用了.这个报错是DNS解析引起的,检查/etc/resolv.conf ,DNS 变成 192.168.44.1,手动修改后,使用yum正常