如题,在使用sudo apt-get update的时候遇到了hash不匹配的错误,如下:
Fetched 141 kB in 9s (14.9 kB/s)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/source/Sources Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
解决方法:
其实主要的步骤就几条命令,
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
sudo apt-get update --fix-missing
sudo apt-get clean
如果出现关于ppa 404或者是not found的问题,可以删除这些ppa:
sudo apt-add-repository --remove ppa_name