ubuntu apt-get update 错误修复
2017-12-27 15:42
204 查看
问题现象:
fetch http资源出错。
解决办法:(修改DNS)
1.修改dns
sudo vi /etc/resolv.conf
在里面插入:
nameserver 8.8.8.8
nameserver 8.8.4.4
修改好保存!wq
2.cat /etc/resolv.conf 显示如下:
3.此时执行sudo apt-get update
fetch http资源出错。
解决办法:(修改DNS)
1.修改dns
sudo vi /etc/resolv.conf
在里面插入:
nameserver 8.8.8.8
nameserver 8.8.4.4
修改好保存!wq
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
3.此时执行sudo apt-get update
相关文章推荐
- Ubuntu17.04 sudo apt-get update升级错误
- ubuntu: apt-get update的时候遇到“Hash Sum mismatch”错误
- ubuntu:运行 apt-get update 错误
- ubuntu更新apt-get update时的索引文件获取错误解决办法
- Ubuntu 执行apt-get update时 Problem executing scripts APT::Update: 错误
- ubuntu: apt-get update的时候遇到“Hash Sum mismatch”错误
- ubuntu 使用sudo apt-get update 出现 被配置多次导致无法升级错误解决方法
- ubuntu: apt-get update的时候遇到“E: Some index files failed to download”错误
- ubuntu apt-get update时出现W: GPG 错误
- Ubuntu14.04 运行命令 sudo apt-get update出现无法解析 软件无法下载的错误
- Ubuntu17.04 sudo apt-get update升级错误
- Ubuntu 16.4.3 apt-get update 错误
- (ubuntu 9.04) sudo apt-get update 错误处理
- 如何修复 apt-get update 无法添加新的 CD-ROM 的错误
- 在Ubuntu终端输入: sudo apt-get update出现错误
- ubuntu更新apt-get update时的索引文件获取错误
- ubuntu14.04: apt-get update的时候遇到“Hash Sum mismatch”错误