记录解决yum报错→Cannot retrieve metalink for repository: epel/x86_64
![]() | ![]() | ![]() | ![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |

在使用Linux系统的VPS、服务器过程当中,有时我们可能会遇到使用yum命名时出现“Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again”错误,详细错误信息如下,那么如何解决“Cannot retrieve metalink for repository: epel/x86_64. ”错误呢?
One of the configured repositories failed (未知), and yum doesn\'t have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work \"fix\" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Disable the repository, so yum won\'t use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable 4. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=.skip_if_unavailable=trueCannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again解决方法可以试试修改“/etc/yum.repos.d”文件夹中的“epel.repo”文件。修改内容如下:
如果你系统“epel.repo”文件当中原内容如下,
[epel]name=Extra Packages for Enterprise Linux 7 - $basearch#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearchmetalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7我们只需要把“metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch”前面加“#”号注释掉,并且把“#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch”取消注释!修改如下即可,一般这个问题就能得到解决了。
[epel]name=Extra Packages for Enterprise Linux 7 - $basearchbaseurl=http://download.fedoraproject.org/pub/epel/7/$basearch#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7[yum报错]历史优惠活动内容
猜你可能想看的VPS
- CombCloud 母亲节促销 7.5 折优惠,香港沙田 大浦 CN2,香港VPS[主机]
- 特价服务器 数脉科技→香港独立服务器 5 折优惠 CN2+BGP 线路大独立服务器[U]
- TmhHost→安畅机房 CN2 GIA 线路补货 新上韩国 CN2 线韩国VPS[主机]
- Thinkphp5 屏蔽 php 中的 warning 错误提示全球[VPS测评]
- 双十一 OneVPS→全场 VPS 限时 7 折优惠 日本 新加坡机房 日本VPS[主机]
- WinRAR 默认压缩为 ZIP 格式 设置鼠标右键菜单 WinRar 全球[VPS测评]
- PHP 生成唯一字符串的简单方法全球[VPS测评]
- Ubuntu 下安装 LXDE+XRDP 实现远程桌面访问用来刷 PT全球[VPS测评]
- 线路优化 hosteons→接入 GTT HE 线路 到国内速度提高 V全球[VPS测评]
- js 定时器讲解全球[VPS测评]
- 阿里云 - 轻量应用服务器香港新加坡多机房可选 最低 24 元 月香港VPS[主机]
- RamNode - OpenStack 正式上线全球[VPS测评]
- $6 月 2 核 CPU 5G 内存 100G SSD 100Mbps 全球[VPS测评]
- 特价补货 tmhhost→512M 1 核 20G 0.5T 流量 季付全球[VPS测评]
- 景文互联→VPS 全场 7 折 年付内存翻倍 充值 1000 元送 30全球[VPS测评]
- 今日头条欲做号内搜索,可搜站外不少内容全球[VPS测评]
- 如何阻止Windows Update捆绑更新设备驱动WINDOWS
- 更换收费 SSL 和 DNSPOD国际版收费服务全球[VPS测评]
- PacificRack → 新构架 更稳定 → 1C 1G RAM 20全球[VPS测评]
- UCloud海外云服务器促销:全场1折起,香港cn2vps最低年付150香港VPS[主机]
- EdgeNat双十二优惠:韩国/香港/美国全场VPS年付,2核2G2M仅韩国VPS[主机]
- UCloud香港云主机怎么样?UCloud香港云主机1核1G1M评测香港VPS[主机]
- 阁天互联怎么样?香港cn2云服务器 圣何塞cn2vps仅20/月香港VPS[主机]
- 恒创科技:免备案香港/美国云服务器低至2.5折,仅需220元/年美国VPS[主机]
- edgeNAT:香港/韩国/美国CN2云服务器,企业运营,年付6折/月付韩国VPS[主机]
- WHMCS 8.1如何简化注册页面全球[VPS测评]
- 阁天互联怎么样?香港cn2云服务器 圣何塞cn2vps仅20/月香港VPS[主机]
- 74块钱一年的云服务器可以用来做什么?全球[VPS测评]
- CombCloud,香港沙田CN2VPS测评,2核1G52元/月,安畅C香港VPS[主机]
- Weebly网站迁移到WordPress的实操上手。全球[VPS测评]
转载请注明原文地址:http://140.238.13.167:12355/read-130573.html











