我不断收到这样的消息:
W:Failed to fetch gzip:/var/lib/apt/lists/partial/ph.archive.ubuntu.com_ubuntu_dists_trusty_multiverse_source_Sources Hash Sum mismatch
W:Failed to fetch gzip:/var/lib/apt/lists/partial/ph.archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-i386_Packages Hash Sum mismatch
E:Some index files failed to download. They have been ignored, or old ones used instead.
答案1
这可能会做到
问题在于您递归删除了 /var/lib/apt/lists,这也删除了部分目录。因此,重新创建目录应该可以解决问题:
sudo mkdir -p /var/lib/apt/lists/partial
sudo chmod 755 /var/lib/apt/lists/partial