Ubuntu中解决E:Failed to fetch问题(修改DNS)

输入命令:

sudo vim /etc/resolv.conf

在resolv.conf添加如下DNS(阿里的):

nameserver 223.5.5.5
nameserver 223.6.6.6

保存后联网更新:

sudo apt-get update

猜你喜欢

转载自blog.csdn.net/gls_nuaa/article/details/131499691