【Centos7-minimal安装yum无法使用错误】yum提示“Cannot retrieve metalink for repository: epel/x86_64” 解决方法

港控/mmm° 2021-08-30 17:39 315阅读 0赞

参考:https://www.fujieace.com/linux/epel-x86_64.html

完整的错误提示如下:

  1. One of the configured repositories failed (Unknown),
  2. and yum doesn't have enough cached data to continue. At this point the only
  3. safe thing yum can do is fail. There are a few ways to work "fix" this:
  4. 1. Contact the upstream for the repository and get them to fix the problem.
  5. 2. Reconfigure the baseurl/etc. for the repository, to point to a working
  6. upstream. This is most often useful if you are using a newer
  7. distribution release than is supported by the repository (and the
  8. packages for the previous distribution release still work).
  9. 3. Disable the repository, so yum won't use it by default. Yum will then
  10. just ignore the repository until you permanently enable it again or use
  11. --enablerepo for temporary usage:
  12. yum-config-manager --disable <repoid>
  13. 4. Configure the failing repository to be skipped, if it is unavailable.
  14. Note that yum will try to contact the repo. when it runs most commands,
  15. so will have to try and fail each time (and thus. yum will be be much
  16. slower). If it is a very temporary problem though, this is often a nice
  17. compromise:
  18. yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
  19. Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

发表评论

表情:
评论列表 (有 0 条评论,315人围观)

还没有评论,来说两句吧...

相关阅读