ubuntu执行sudo apt-get update报错解决方案

Song1702 次浏览0个评论2019年03月28日

sudo apt-get update更新服务器出现如下错误:

Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
  Temporary failure resolving 'archive.ubuntu.com'

修改

/etc/resolv.conf

追加

nameserver 8.8.8.8

nameserver 114.114.114.114

重启网络

sudo /etc/init.d/networking restart

更新就好了

提交评论

请登录后评论

用户评论

    当前暂无评价,快来发表您的观点吧...

更多相关好文

    当前暂无更多相关好文推荐...