E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-i386/by-hash/SHA256/a94eda4aa2d3ef5591bfc752e3446df9449aeaeef37cddda99c5a5089b9fb665 Hash Sum mismatch Hashes of expected file:
- Filesize:489712 [weak]
- SHA256:a94eda4aa2d3ef5591bfc752e3446df9449aeaeef37cddda99c5a5089b9fb665
- SHA1:4783af61fdabef822421f227c2a968540608bb34 [weak]
- MD5Sum:1fe09da1647b451c6e918f78310cca31 [weak] Hashes of received file:
- SHA256:d4811bef2509943ed331570c5039a8b652d13d67fe1561c52f0f8ebb61e4dae0
- SHA1:becffd49c534396f23867c6d7659e83784cb70a1 [weak]
- MD5Sum:2a207edc62799b702bf497cc5464177a [weak]
- Filesize:489712 [weak] Last modification reported: Tue, 15 Jun 2021 07:37:08 +0000 Release file created at: Tue, 15 Jun 2021 09:11:40 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
这实际上是操作系统下载软件包的某些部分失败了。
Linux 下载一个包及其哈希值以确保下载正确进行。
它会下载这些文件并获取文件的预期哈希值,然后将其与实际哈希值输出进行比较,以确保下载的文件是正确的。
因此你可以尝试运行:
sudo apt-get autoclean
sudo apt autoremove
sudo apt update
现在尝试下载您正在下载的包。