root@ubuntu:/etc# sudo apt-get update 错误:1 http://mirrors.yun-idc.com/ubuntu bionic InRelease 暂时不能解析域名“mirrors.yun-idc.com” 错误:2 http://mirrors.yun-idc.com/ubuntu bionic-security InRelease 暂时不能解析域名“mirrors.yun-idc.com” 错误:3 http://mirrors.yun-idc.com/ubuntu bionic-updates InRelease 暂时不能解析域名“mirrors.yun-idc.com” 错误:4 http://mirrors.yun-idc.com/ubuntu bionic-backports InRelease 暂时不能解析域名“mirrors.yun-idc.com” 错误:5 http://mirrors.yun-idc.com/ubuntu bionic-proposed InRelease 暂时不能解析域名“mirrors.yun-idc.com” 正在读取软件包列表... 完成 W: 无法下载 http://mirrors.yun-idc.com/ubuntu/dists/bionic/InRelease 暂时不能解析域名“mirrors.yun-idc.com” W: 无法下载 http://mirrors.yun-idc.com/ubuntu/dists/bionic-security/InRelease 暂时不能解析域名“mirrors.yun-idc.com” W: 无法下载 http://mirrors.yun-idc.com/ubuntu/dists/bionic-updates/InRelease 暂时不能解析域名“mirrors.yun-idc.com” W: 无法下载 http://mirrors.yun-idc.com/ubuntu/dists/bionic-backports/InRelease 暂时不能解析域名“mirrors.yun-idc.com” W: 无法下载 http://mirrors.yun-idc.com/ubuntu/dists/bionic-proposed/InRelease 暂时不能解析域名“mirrors.yun-idc.com” W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。 root@ubuntu:/etc# vi /etc/hosts root@ubuntu:/etc# cat /etc/resolv.conf nameserver 223.5.5.5 root@ubuntu:/etc# ping 223.5.5.5 PING 223.5.5.5 (223.5.5.5) 56(84) bytes of data. 64 bytes from 223.5.5.5: icmp_seq=1 ttl=52 time=72.4 ms 64 bytes from 223.5.5.5: icmp_seq=2 ttl=52 time=76.8 ms 64 bytes from 223.5.5.5: icmp_seq=3 ttl=52 time=77.9 ms 64 bytes from 223.5.5.5: icmp_seq=4 ttl=52 time=69.4 ms 64 bytes from 223.5.5.5: icmp_seq=5 ttl=52 time=77.4 ms 64 bytes from 223.5.5.5: icmp_seq=6 ttl=52 time=49.4 ms 64 bytes from 223.5.5.5: icmp_seq=7 ttl=52 time=48.4 ms ^C --- 223.5.5.5 ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6017ms rtt min/avg/max/mdev = 48.486/67.435/77.980/12.017 ms root@ubuntu:/etc# ping mirrors.yun-idc.com PING mirrors.yun-idc.com (114.112.43.174) 56(84) bytes of data. 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=1 ttl=53 time=19.1 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=2 ttl=53 time=19.1 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=3 ttl=53 time=19.2 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=4 ttl=53 time=19.0 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=5 ttl=53 time=19.0 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=6 ttl=53 time=19.3 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=7 ttl=53 time=19.1 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=8 ttl=53 time=21.1 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=9 ttl=53 time=19.1 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=10 ttl=53 time=18.7 ms 64 bytes from 114.112.43.174 (114.112.43.174): icmp_seq=11 ttl=53 time=19.2 ms
pardon110