文章参考自:腾讯云论坛
错误提示:could not resolve host mirrors.tencentyun.com,no address associated with hostname,trying other mirror
错误原因:DNS服务器错误,腾讯云服务器内网yum源的域名 mirrors.tencentyun.com 需要有内网的DNS才能访问,但是实际情况下,我们会根据需要修改DNS,为了使用腾讯云内网快速稳定的内网源,我们需要把DNS恢复为内网DNS,下面为各地区服务器DNS地址
北京服务器:
nameserver 10.53.216.182
nameserver 10.53.216.198广州服务器:
nameserver 10.182.24.12
nameserver 10.182.20.26上海服务器:
nameserver 10.237.148.54
nameserver 10.237.148.60香港服务器:
nameserver 10.145.0.57
nameserver 10.145.0.58北美服务器:
nameserver 10.116.19.185
nameserver 10.116.19.188
解决办法:
修改 /etc/resolv.conf:
- vim /etc/resolv.conf
- 修改nameserver 8.8.8.8为nameserver 10.237.148.54(上海)
搞定