YUM 报错解决集

报如下信息

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was

14: curl#6 – “Could not resolve host: mirrorlist.centos.org; Unknown error”

Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64 error was

14: curl#6 – “Could not resolve host: mirrors.fedoraproject.org; Unknown error”

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was

14: curl#6 – “Could not resolve host: mirrorlist.centos.org; Unknown error”

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock error was

14: curl#6 – “Could not resolve host: mirrorlist.centos.org; Unknown error”

Loading mirror speeds from cached hostfile

请在/etc/resolv.conf里加上

search 10.32.109.221

nameserver 10.156.12.202

    原文作者:高机动老王
    原文地址: https://www.jianshu.com/p/c3e52ac1012c
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞