解决Ubuntu错误: Failed to download repository information Check your Internet connection

时间:2020-01-09 10:45:30  来源:igfitidea点击:

打开终端应用程序,并使用以下命令:

sudo apt-get update

仔细查看最后两三行。找到确切的错误。

W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_restricted_binary-i386_Packages Hash Sum mismatch
W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages 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