记录解决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
- LosAngelesVPS 洛杉矶高性价比无限流量 VPS,1G 带宽端全球[VPS测评]
- Purplehost→$7.1 月 2 核 4GB 内存 30GB SS虚拟空间(主机)
- 闪购 RackNerd→1 核 768M 内存 20G SSD 3T 流全球[VPS测评]
- 超值 腾讯云助力复工→香港 1 核 1G 3M 带宽机器年付 299 元香港VPS[主机]
- 便宜 腾讯云智惠上云→2 核 4G 5M 套餐年付 368 元 1 核 全球[VPS测评]
- hostkvm 香港湾仔机房补货 2G 内存 30G 硬盘每月 68 元香港VPS[主机]
- 老薛主机 共同抗疫 共渡难关 网络创业 VPS 爆款 9.9 元疯抢全球[VPS测评]
- 虎字下面的几换成了蛇字是什么成语?全球[VPS测评]
- 便宜 Supremevps→$18 年 2 核 2G 35G SSD 3全球[VPS测评]
- vps-mart→$49 月 E3-1230 32GB 内存 1.5TB全球[VPS测评]
- 美尔联→31 元 月 1GB 内存 20GB SSD 空间 200GB 虚拟空间(主机)
- 特价 碳氧云→6 核 CPU 6G 内存 80G 硬盘 6Mbps 不限香港VPS[主机]
- WordPress插件:The Paste方便图片粘贴上传全球[VPS测评]
- CloudIPLC 泉州电信CN2 大带宽出国优质线路 ¥560起/月全球[VPS测评]
- MillenialHost → 香港HGC → 非大陆直连 → 1G内香港VPS[主机]
- 为什么要拥有一台VPS?全球[VPS测评]
- 6种样式社交论坛网站HTML5模板 - Social全球[VPS测评]
- HTML5绿色有机食品电商网站模板 - Organtio全球[VPS测评]
- 一篇漫画,看懂云计算全球[VPS测评]
- CombCloud,香港沙田CN2VPS测评,2核1G52元/月,安畅C香港VPS[主机]
- 网站迁移服务器是如何运作的?新手站长看完这篇文章,很容易就能看完。全球[VPS测评]
- 7月份,经济复苏边际趋缓,央行降息幅度先稳后升全球[VPS测评]
- 宝塔面板怎么放行端口?宝塔面板放行端口的方法全球[VPS测评]
- 品光网络:香港美国免备案云服务器超低价,2核2G2M年付仅750元/年美国VPS[主机]
- 恒星云:高防服务器优惠活动,成都高防云服务器及辽宁香港服务器特惠活动香港VPS[主机]
- tmhhost:8折优惠,美国cn2 gia高防vps,香港NTT vp美国VPS[主机]
- 快云科技:2核2G3M云服务器14.98元/月;香港vps全场7.5折,香港VPS[主机]
- 56云服务器怎么样?56云服务器价格和优势是什么?全球[VPS测评]
- 雪花云怎么样?雪花云香港云服务器1核1G2M仅19元/月香港VPS[主机]
- 桔子数据怎么样?美国、香港CN2云服务器2核2G10M带宽仅480元/年美国VPS[主机]
转载请注明原文地址:http://140.238.13.167:12355/read-136934.html











