提示报错信息:
Could not retrieve mirrorlist/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolvehost ''"
Could not retrieve mirrorlist/?release=6&arch=x86_64&repo=extras errorwas
14: PYCURL ERROR 6 - "Couldn't resolvehost ''"
Could not retrieve mirrorlist/?release=6&arch=x86_64&repo=updates errorwas
14: PYCURL ERROR 6 - "Couldn't resolvehost ''"
/centos/6.2/os/x86_64/repodata/repomd.xml:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host ''"
Trying other mirror.
Error: Cannot retrieve repository metadata(repomd.xml) for repository: base. Please verify its path and try again
[root@hbase01-222 ~]# service iptables stop
[root@hbase01-222 ~]#
;; connection timed out; no servers couldbe reached
解决办法:
修改一下dns,找到/etc/sysconfig/network-scripts/ifcfg-eno33(后面的数字是随机产生的)
将ONBOOT=no改成yes
然后重启网络service network restart
参考:/ziliao/33477
---------------------
作者:纠结哥_CK
来源:CSDN
原文:/weixin_36104843/article/details/80252422
版权声明:本文为博主原创文章,转载请附上博文链接!