Use sudo apt-get there can not resolve the domain name problem: "cn.archive.ubuntu.com"

When the ping www.baidu.com ping nowhere, indicating a problem with dns.

Modify dns: sudo vi /etc/resolvconf/resolv.conf.d/base (This file is empty by default)

Add Content:
nameserver 8.8.8.8

There are more than one line on a DNS

To take effect: sudo resolvconf -u

Guess you like

Origin www.cnblogs.com/IT-DavidYang/p/11094657.html