输入命令: sudo vim /etc/resolv.conf 在resolv.conf添加如下DNS(阿里的): nameserver 223.5.5.5 nameserver 223.6.6.6 保存后联网更新: sudo apt-get update