解决步骤:
1.用编辑器打开resolv.conf
vi /etc/resolv.conf
改为如下内容:
search localdomain
nameserver 8.8.8.8 //希望修改成的DNS
nameserver 8.8.6.6 //备用的DNS
2.重启网络:
sudo /etc/init.d/networking restart
3.然后:
apt-get update
---------------------
原文:https://blog.csdn.net/tmpbook/article/details/31771657
来源:CSDN
作者:Uyangbaby
链接:https://blog.csdn.net/Uyangbaby/article/details/84671908