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'
.........
网上看了很多问题是dns配置问题,修改不解决问题。
ifconfig发现ip为127.0.0.1,结果原因是我切换了网络,重启了Ubuntu,成功apt-get update的错误