ubuntu apt-get 错误 Temporary failure resolving ‘us.archive.ubuntu.com’ 解决
原因是dns没有配置,解决办法 加入dns服务器地址:
vi /etc/resolv.conf
添加
nameserver 202.96.134.133
nameserver 8.8.8.8
如果提示只读,用sudo运行,即:
sudo vi /etc/resolv.conf
运行完重启系统解决
ubuntu apt-get 错误 Temporary failure resolving ‘us.archive.ubuntu.com’ 解决
原因是dns没有配置,解决办法 加入dns服务器地址:
vi /etc/resolv.conf
添加
nameserver 202.96.134.133
nameserver 8.8.8.8
如果提示只读,用sudo运行,即:
sudo vi /etc/resolv.conf
运行完重启系统解决