记录解决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
- FDCServers→$1999 月 2*E5-2650 128GB 内日本VPS[主机]
- 特价促销 DediPath→所有架构 VPS 全场 5 折优惠 hybr全球[VPS测评]
- 线路渣-StockServers→$3 月 2 核 2G 1G 宽带 5美国VPS[主机]
- 桔子 VPS 五一大促,美国 cn2gia 带宽升级+赠送流量+五折,看美国VPS[主机]
- 优惠 阿里云双十二活动→特惠满减 最高 12000 元 送淘现金红包 云全球[VPS测评]
- 便宜 racknerd→1 核 768M 内存 20G SSD 1T 流全球[VPS测评]
- VirMach - 特价便宜 VPS 方案汇总全球[VPS测评]
- 动力云→588 元 月 2GB 内存 32GB SSD 空间 40TB 虚拟空间(主机)
- PHPExcel 循环生成 sheet 报错 You tried to 全球[VPS测评]
- 疯狂猜成语 图猜成语一个意字长了一双腿走在路上是什么成语?全球[VPS测评]
- PuzCloud→103.2 元 季 1GB 内存 10GB 空间 50虚拟空间(主机)
- XenSpec→$2.4 月 KVM-1GB 10GB 无限流量(1Gb全球[VPS测评]
- friendhosting→11 周年庆 5 折优惠 多送一倍时间 VP全球[VPS测评]
- 结合预算和需求来选择香港服务器和美国服务器美国VPS[主机]
- Catixs 8$东京VPS 测试记录 三网NTT 日本流媒体解锁日本VPS[主机]
- wordpress 上传附件报错 “抱歉,出于安全的考虑,不支持此文件类全球[VPS测评]
- 很简单的图片不规则布局样式,纯css样式实现的图片瀑布流布局全球[VPS测评]
- 自适应bootstrap左侧导航可关闭全球[VPS测评]
- ERP库存管理系统HTML5模板 - DreamsPOS全球[VPS测评]
- 咖啡主机:美国高防vps、香港vps 可享受6-7折促销 每月仅需14元美国VPS[主机]
- UCloud香港云主机怎么样?UCloud香港云主机1核1G1M评测香港VPS[主机]
- 快速云:云服务器和vps区别是什么云服务器和vps哪个比较安全2022-全球[VPS测评]
- 2021恒创科技开年采购季:香港/美国云服务器低至299元/年美国VPS[主机]
- 创意IT服务公司主页网站模板 - Softets全球[VPS测评]
- 咖啡主机怎么样?美国洛杉矶高防vps,cn2直连,香港沙田vps美国VPS[主机]
- SEO和网页加载速度有关系吗?如何提升?全球[VPS测评]
- 八成企业看好出海投资 防止“溺水”需重视这一点全球[VPS测评]
- 触摸云:香港BGP/香港CN2/美国GIA高防CN2 GIA云服务器2H美国VPS[主机]
- 云计算到底是谁发明的?全球[VPS测评]
- 魔方云:香港原生IP vps/大带宽,月付79元起;美国洛杉矶CN2 G美国VPS[主机]
转载请注明原文地址:http://140.238.13.167:12355/read-33933.html











