Ubuntu更新出错:Failed to fetch Hash Sum mismatch
2018-01-05 09:55
621 查看
环境
Ubuntu 14.04 + 中科大源问题描述
今天更新用apt-get update命令更新Ubuntu,提示
Failed to fetch Hash Sum mismatch,具体报错信息如下:
W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources Hash Sum mismatch, E: Some index files failed to download. They have been ignored, or old ones used instead.
网上给出的一些解决办法:
1, apt-get update –fix-missing
2, 删掉/var/lib/apt/lists/下的文件,然后mkdir /var/lib/apt/lists/partial
3, sudo apt-get clean
sudo apt-get update
sudo apt-get update -o Acquire::No-Cache=True
sudo apt-get update -o Acquire::BrokenProxe=True
sudo rm -rf /var/lib/apt/lists/*
4, 更换其他源(网易的,搜狐的,99的都试过了)
5, 网络不通问题:
1)有人说长城宽带会出现这种问题,换了电信的宽带就不会出现
2)墙的的问题,但是更换了国内源以后,这种说法就说不通了啊
这几个方法均行不通,关于不同宽带的解释,我用的宽带是长城的没错,但是我用一台旧金山的服务器做SSH代理,问题依然存在。
这个问题和网络有关,偶尔能执行成功,但是概率很低,我是试了n次,才碰到过一次成功的情况。
终极解决办法
修改/etc/resolv.conf文件,增加如下一行:nameserver=8.8.8.8
然后依次执行以下命令:
sudo rm -rf /var/lib/apt/lists/* mkdir /var/lib/apt/lists/partial sudo apt-get clean sudo apt-get update --fix-missing
相关文章推荐
- Ubuntu update: Failed to fetch, Hash sum mismatch
- Ubuntu failed to fetch ... hash sum mismatch
- How To Fix “W: Failed to fetch gzip:/var/lib/apt/lists/partial/… Hash Sum mismatch” Error
- ubuntu更新错误W:Failed to fetch
- Ubuntu更新提示哈希和不匹配“Hash Sum mismatch”
- docker ubuntu apt-get update 出错Hash Sum mismatch
- apt-get update 更新 ubuntu时出现Hash sum mismatch的原因及解决方法
- [置顶] ubuntu版本很老,apt-get update更新失败时(W: Failed to fetch ...)------如何创建新的sources.list
- ubuntu-如何解决错误-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
- 更新SDK失败解决办法(Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml)
- Ubuntu使用apt-get update命令时提示Hash Sum mismatch错误的解决方案
- Android SDK安装更新:Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml
- 解决更新SDK出现的Failed to fetch URL
- ubuntu: apt-get update的时候遇到“Hash Sum mismatch”错误
- ubuntu gedit出错:Failed to connect to the session manager的问题
- Failed to fetch http://ppa.launchpad.net/shawn-p-huang/ppa/ubuntu/dists/oneiric/main/source/Sources
- ubuntu: apt-get update的时候遇到“Hash Sum mismatch”错误
- ubuntu14.04: apt-get update的时候遇到“Hash Sum mismatch”错误