如題,在使用sudo apt-get update的時候遇到了hash不匹配的錯誤,如下:
Fetched 141 kB in 9s (14.9 kB/s)
W: Failed to fetchhttp://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.
可能參考這篇文章:http://unix.stackexchange.com/questions/116641/how-do-you-fix-apt-get-update-hash-sum-mismatch
其實主要的步驟就幾條命令,
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