当 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 就能正常使用了
最后
以上就是兴奋汉堡最近收集整理的关于apt-get update 出错时解决方案的全部内容,更多相关apt-get内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复