记录解决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
- iWFHosting→KVM2G 每月 8.99 美元起 洛杉矶可选 1全球[VPS测评]
- ShockHosting→$5 月 KVM-1G 200G 1TB 洛杉全球[VPS测评]
- js 限制 input 只能输入数字(包括小数)全球[VPS测评]
- 80VPS→韩国 KVM 双核 1GB 20GB 3M 年付 349 元韩国VPS[主机]
- 线路不行-1GServers 凤凰城 E3-1230v2 8G 1TB 独立服务器[U]
- DMIT→新用户买 PVM.LAX.Pro 送 3 个月 PVM.LAX全球[VPS测评]
- 价格屠夫-VirMach→价格屠夫促销 VPS 4.9 美元 年起 50独立服务器[U]
- 无版权服务器 荷兰服务器 VPS underhost全球[VPS测评]
- DiyVM→香港&美国 VPS 五折起 2G 套餐 XEN 月付 69 美国VPS[主机]
- Hosteons→KVM 八折 OpenVZ 年付五折 不限流量 免费升全球[VPS测评]
- 口对号心错号是什么成语?全球[VPS测评]
- RackNerd 洛杉矶鲨鱼机房 vps 速度及综合性能测评,新品促销方全球[VPS测评]
- teraswitch→$4 月 OpenStack 1g 内存 1 核 美国VPS[主机]
- 给WordPress博客添加一个搜索引擎蜘蛛爬行及分析页面全球[VPS测评]
- 阳帝云 美国CN2 GIA高防 VPS 1g内存40G硬盘外带200G防美国VPS[主机]
- 盘点2021年国内外VPS云服务器可视化面板和一键安装脚本全球[VPS测评]
- VPS推荐:io/zoom美国VPS主机美国VPS[主机]
- 主机商WHMCS是否官方授权正版查询地址全球[VPS测评]
- 6种样式社交论坛网站HTML5模板 - Social全球[VPS测评]
- 全球云lovps,香港CN2线路vps 新品七折月付49元香港VPS[主机]
- 外贸无界烟台市有多少跨境电商?烟台跨境电商开发平台,烟台跨境电商选品全球[VPS测评]
- 硅云香港云服务器促销活动:CPU性能100%性能,无需备案香港VPS[主机]
- sugarhosts:虚拟主机3折(有独立IP),云服务器5折,香港\\独立服务器[U]
- 拼多多拟建跨境电商平台:挖角SHEIN员工,0佣金招商入驻全球[VPS测评]
- 网站迁移服务器是如何运作的?新手站长看完这篇文章,很容易就能看完。全球[VPS测评]
- 很简单的图片不规则布局样式,纯css样式实现的图片瀑布流布局全球[VPS测评]
- 野草云怎么样?香港、美国圣何塞高防VPS 1核1G3M 月付19元美国VPS[主机]
- edgeNAT双十二:韩国VPS/美国CN2/香港CN2VPS主机,月付韩国VPS[主机]
- VPS成立BurjeelHoldings全球[VPS测评]
- 麻花云:香港CN2VPS月付19元起,安徽移动8核/16G/20M独服2香港VPS[主机]
转载请注明原文地址:http://140.238.13.167:12355/read-130573.html











