记录解决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
- 预售 $99 月 E3-1230V2 32G 内存 480G SSD 6香港VPS[主机]
- RackNerd→$15 年 KVM-1GB 15GB 3TB 洛杉矶全球[VPS测评]
- 德国 CN2 GIA SaltyfishTech→1 核 1G 30G 全球[VPS测评]
- CloudCone→$15 年 KVM-512MB 10GB 1TB 洛全球[VPS测评]
- 香港大带宽 $6 月 256M 内存 5G SSD 300G 流量@1G香港VPS[主机]
- 标准互联→襄阳电信裸金属服务器 8 核 16G 内存 290GB SSD全球[VPS测评]
- LOCVPS→日本大阪 65 折 XEN 双核 2G 30GB 5M 每日本VPS[主机]
- GigsGigsCloud→$4.99 月 KVM-256MB 15GB全球[VPS测评]
- 便宜 $13.99 年 512M 内存 20G SSD 250G 流量 全球[VPS测评]
- 疯狂猜成语 图猜成语一只兔子对一只乌龟说 welcome 是什么成语?全球[VPS测评]
- 一个坐标上面有 NS 和辕辙是什么成语?全球[VPS测评]
- 蓝米云→29 元 月 1GB 内存 40GB SSD 空间 不限流量 1虚拟空间(主机)
- extravm→俄罗斯 VPS $5 月 KVM 虚拟 1G 内存 1 全球[VPS测评]
- Evolution Host→€6 月 1 核独享 2GB 内存 20G虚拟空间(主机)
- Buyvm→$2 月 512MB 内存 10GB SSD 空间 不限流量虚拟空间(主机)
- budgetvm→$12.5 月 日本云服务器 100M 带宽 不限流量日本VPS[主机]
- WebHorizon-年付6刀 年付12刀500GB流量 45折 日本 日本VPS[主机]
- JGKVM促销,美国cn2vps服务器价格再创新低,平均6.5元/月起美国VPS[主机]
- 快速云:云服务器vps的区别是什么云服务器和vps哪个比较好2022-0全球[VPS测评]
- 恒星云:高防服务器优惠活动,成都高防云服务器及辽宁香港服务器特惠活动香港VPS[主机]
- 春天的风最容易温暖心灵,适合朋友圈和抖音的12条文案全球[VPS测评]
- sugarhosts糖果主机黑五:VPS服务器5折,最低月付24.5元,香港VPS[主机]
- 瓜云互联怎么样?香港/美国洛杉矶CN2高防vps 50G月付34元美国VPS[主机]
- Centos7的firewall 防火墙如何设置端口转发?全球[VPS测评]
- 百看不厌的文案,抖音唯美文案。全球[VPS测评]
- 永恒云:江苏挂机宝6元/月,60元/年;香港建站vps仅18元;深圳BG香港VPS[主机]
- 快云科技:香港VPS服务器_双向CN2/20Mbps大带宽,29元/月起香港VPS[主机]
- 青云互联:香港CN2 GIA VPS,月付15.2起;日本CN2 VPS日本VPS[主机]
- Vmshell:香港免费vps试用机24H,新增在线测速!年付再打9折,香港VPS[主机]
- 2.45亿、成都公安(大数据基座-服务器)采购:神码、虹信、海康、超聚变全球[VPS测评]
转载请注明原文地址:http://140.238.13.167:12355/read-33933.html











