linux-mint – apt-get:哈希和不匹配

运行“sudo apt-get update”会导致:

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_saucy-security_main_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_saucy-security_universe_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_saucy_universe_binary-amd64_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_saucy_main_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_saucy_universe_binary-i386_Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

我试图运行:

sudo rm -R /var/lib/apt/lists/partial/*

sudo rm -fR /var/lib/apt/lists/*

sudo apt-get clean

我还尝试了Software Sources工具的Fix MergeList问题按钮.我正在运行Linux Mint 16 Cinnamon 64位.

在Update Manager中,我可以看到我应该安装的许多更新,但尝试安装它们会导致:

E: Unable to parse package file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy-updates_universe_i18n_Translation-en (1)
E: Problem opening /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_saucy-security_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.

有任何想法吗?

最佳答案
这些消息通常是由于下载列表时出现故障或镜像中出现故障.您可以通过删除故障列表来修复它:

$sudo rm /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_saucy_universe_binary-amd64_Package

并使用sudo apt-get update进行更新.如果它仍然发生使用另一个镜像或等待一点.

转载注明原文:linux-mint – apt-get:哈希和不匹配 - 代码日志