当前位置:   article > 正文

yum install 报错_yum install alien -y loaded plugins: fastestmirror

yum install alien -y loaded plugins: fastestmirror, langpacks loading mirror

如下:

  1. Loaded plugins: fastestmirror, langpacks
  2. Loading mirror speeds from cached hostfile
  3. Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
  4. 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
  5. One of the configured repositories failed (Unknown),
  6. and yum doesn't have enough cached data to continue. At this point the only
  7. safe thing yum can do is fail. There are a few ways to work "fix" this:
  8. 1. Contact the upstream for the repository and get them to fix the problem.
  9. 2. Reconfigure the baseurl/etc. for the repository, to point to a working
  10. upstream. This is most often useful if you are using a newer
  11. distribution release than is supported by the repository (and the
  12. packages for the previous distribution release still work).
  13. 3. Run the command with the repository temporarily disabled
  14. yum --disablerepo=<repoid> ...
  15. 4. Disable the repository permanently, so yum won't use it by default. Yum
  16. will then just ignore the repository until you permanently enable it
  17. again or use --enablerepo for temporary usage:
  18. yum-config-manager --disable <repoid>
  19. or
  20. subscription-manager repos --disable=<repoid>
  21. 5. Configure the failing repository to be skipped, if it is unavailable.
  22. Note that yum will try to contact the repo. when it runs most commands,
  23. so will have to try and fail each time (and thus. yum will be be much
  24. slower). If it is a very temporary problem though, this is often a nice
  25. compromise:
  26. yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
  27. Cannot find a valid baseurl for repo: base/7/x86_64

ping了一下,发现连不上网啊 

  1. [root@localhost /]# ping 114.114.114.114
  2. connect: Network is unreachable
  3. [root@localhost /]# ping www.baidu.com
  4. ping: www.baidu.com: Name or service not known

重新移除后,再添加 :

可以上网了

试了一下yum install能用了 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/176883
推荐阅读
相关标签
  

闽ICP备14008679号