记录解决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
- windows 2012 R2系统更新KB2919355补丁,提示此更新 WINDOWS
- Kvmla:十周年香港/新加坡/日本vps全场年付5折月付8折,新加坡/ 独立服务器[U]
- Fatal error: Allowed memory size of 全球[VPS测评]
- ERP库存管理系统HTML5模板 - DreamsPOS 全球[VPS测评]
- 拼多多回应筹备跨境电商业务:不予置评 全球[VPS测评]
- 厘米云,江苏移动100G高防云服务器,4核4G内存20M带宽79元/月 全球[VPS测评]
- JGKVM活动钜惠:美国cn2,香港cmi,大带宽vps,三网直连,10 美国VPS[主机]
- 瓜云互联怎么样?香港/美国洛杉矶CN2高防vps 50G月付34元 美国VPS[主机]
- 磐逸云怎么样?CN2线路香港VPS月付20元 香港VPS[主机]
- Aoyohost:1核1GB/20GB/600GB流量/60Mbps端口 香港VPS[主机]
- 快云科技:2核2G3M香港云BGP/新界CN2云服务器,月付33元 香港VPS[主机]
- 磐逸云:深圳/大连/成都/香港机房vps,1核1G3M仅26元/月,65 香港VPS[主机]
- 56云服务器怎么样?56云服务器价格和优势是什么? 全球[VPS测评]
- 阿里云ecs香港服务器怎么购买?阿里云香港2核8G5M云服务器仅2449 香港VPS[主机]
- tmhhost:香港安畅机房三网CN2 GIA VPS,月付45起;美国 美国VPS[主机]
- 无忧云:雅安/德阳100G高防云主机月付78元起,香港CN2云服务器月付 香港VPS[主机]
- 孤狼云:香港沙田CN2/安畅CN2云服务器仅9.9元/月_香港虚拟主机2 香港VPS[主机]
- 触摸云:喜迎新春回馈活动_香港/美国VPS全场特惠价85折起_续费同价! 美国VPS[主机]
- HostKvm:香港国际/美国洛杉矶七折优惠,其它业务全场八折,适合做站 美国VPS[主机]
- UCloud香港云服务器:免备案,CN2,全球31个机房,香港2核4G2 香港VPS[主机]
- 众创逸云:香港CN2/美国CN2降价促销,4核4G云服务器低至68元/月 美国VPS[主机]
- ucloud云服务器全球购:香港/韩国/日本/台湾/越南/泰国服务器最低 日本VPS[主机]
- 腾讯云香港轻量云2核2G服务器:30M带宽低至704元/年;2312元/ 香港VPS[主机]
- VoLLCloud:香港200Mbps不限速大宽带VPS,免费vps领取 香港VPS[主机]
- 购买香港服务器需要做哪些准备 香港VPS[主机]
- 美国信贷市场的痛苦将不亚于上世纪70年代的通胀时期 美国VPS[主机]
- 拼多多正筹建跨境电商平台:密集挖角SHEIN员工,零佣金招商入驻 全球[VPS测评]
- 跨境电商洋码头生死攸关:买手流失资金被冻结保全 全球[VPS测评]
- 戈登云VPS,6折,充值送50%,香港cn2,美国cn云服务器,2核2G 美国VPS[主机]
- 企鹅小屋:深港IPLC节点,0.25元/G流量,不用不花钱 全球[VPS测评]
转载请注明原文地址: http://140.238.13.167:12355/read-33933.html











