您的位置:首页
Ubuntu apt-get update 失败【转】
2017-04-08 11:43
423 查看
本文转载自:http://www.jianshu.com/p/0de2b5717ce8
1 $ sudo apt-get update 报了一堆错误: Err http://cn.archive.ubuntu.com trusty InRelease Err http://cn.archive.ubuntu.com trusty-updates InRelease Err http://cn.archive.ubuntu.com trusty-backports InRelease Err http://cn.archive.ubuntu.com trusty Release.gpg W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty/InRelease[/code] 解决方案: 修改DNSsudo vi /etc/resolvconf/resolv.conf.d/base
在里面插入:nameserver 8.8.8.8 nameserver 8.8.4.4
修改好保存!wq,
然后执行$ sudo resolvconf -u
再看 /etc/resolv.conf,最下面就多了2行:$ cat /etc/resolv.conf
显示# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 8.8.8.8 nameserver 8.8.4.4
此时执行$ sudo apt-get update
可以运行,然后就可以使用sudo apt-get install **指令了。
相关文章推荐
- ubuntu apt-get update 更新源失败的解决办法
- ubuntu apt-get update 失败解决
- ubuntu apt-get update 失败解决。安装新的ubuntu时出现 mirror连接不上
- ubuntu apt-get update 失败解决。
- ubuntu 14.10系统 apt-get_update 失败解决办法
- ubuntu 12.10 sudo apt-get update 失败
- Ubuntu apt-get update 失败
- ubuntu apt-get update 更新失败
- ubuntu apt-get update 失败解决。
- ubuntu sudo apt-get update 失败 解决方法
- ubuntu apt-get update 更新源失败总结
- ubuntu apt-get update 失败解决,也就是使用源失败
- Ubuntu apt-get update 失败 : Sub-process /usr/bin/dpkg returned an error code (1)
- Ubuntu sudo apt-get update失败的原因
- Ubuntu sudo apt-get update失败的原因
- Ubuntu14.04虚拟机能ping通外网但是浏览器却上不了网,apt-get update也失败
- 关于Ubuntu apt-get update 失败,问题解决
- ubuntu apt-get update 失败解决
- Ubuntu apt-get update 失败
- ubuntu apt-get update 失败解决