apt-get update 出错时解决方案
2018-06-29 本文已影响0人
入间
当 apt-get update 指令报错时
Failed to fetch http://archive.canonical.com/ubuntu/dists/xenial/InRelease Temporary failure resolv
更换系统源也没有作用,这时一般是dns解析有问题
sudo vim /etc/resolv.conf
增加一行
nameserver 114.114.114.114
之后再执行 apt-get update 就能正常使用了