21.10 sudo apt update 总是报告哈希不匹配

21.10 sudo apt update 总是报告哈希不匹配

sudo apt update总是报告有不匹配错误,无论使用哪个镜像。所有建议的解决方法(如apt-get clean等)都无济于事。

我很感激一些想法,Ubuntu 21.10 桌面作为 VM Fusion 中的 VM 运行。

sudo apt update
Get:1 http://packages.microsoft.com/repos/code stable InRelease [10,4 kB]
Hit:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease                                                                                 
Get:7 http://archive.ubuntu.com/ubuntu impish InRelease [270 kB]
Get:8 http://archive.ubuntu.com/ubuntu impish-security/main amd64 c-n-f Metadata [112 B]
Err:9 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages
  Hash Sum mismatch
  Hashes of expected file:
   - Filesize:1396112 [weak]
   - SHA256:3bd421210c26b7d66f5599c57e6a9c96a9dbc19596be48b1bacde5e6bf461207
   - SHA1:e3d4e72562ef8fb5c2400798a9b612ea57e426e5 [weak]
   - MD5Sum:e5fb2960ff175a9dec6a323ab06f053a [weak]
  Hashes of received file:
   - SHA256:9cb47a4d87cf4d363d8b80bde50abe172b560dd8af99a343939439aece9d9733
   - SHA1:2f5f9efb94eb66d86340804fb084a1c6d1c08cbb [weak]
   - MD5Sum:32889de2629cb9d26174dd78cc301771 [weak]
   - Filesize:1396112 [weak]
  Last modification reported: Wed, 13 Oct 2021 19:31:05 +0000
  Release file created at: Thu, 14 Oct 2021 16:35:09 +0000
  
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/impish/main/binary-amd64/by-hash/SHA256/3bd421210c26b7d66f5599c57e6a9c96a9dbc19596be48b1bacde5e6bf461207  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:1396112 [weak]
    - SHA256:3bd421210c26b7d66f5599c57e6a9c96a9dbc19596be48b1bacde5e6bf461207
    - SHA1:e3d4e72562ef8fb5c2400798a9b612ea57e426e5 [weak]
    - MD5Sum:e5fb2960ff175a9dec6a323ab06f053a [weak]
   Hashes of received file:
    - SHA256:9cb47a4d87cf4d363d8b80bde50abe172b560dd8af99a343939439aece9d9733
    - SHA1:2f5f9efb94eb66d86340804fb084a1c6d1c08cbb [weak]
    - MD5Sum:32889de2629cb9d26174dd78cc301771 [weak]
    - Filesize:1396112 [weak]
   Last modification reported: Wed, 13 Oct 2021 19:31:05 +0000
   Release file created at: Thu, 14 Oct 2021 16:35:09 +0000

谢谢

答案1

从软件和更新应用程序更改更新服务器对我来说很有效,这通常是由于互联网故障而发生的,解决方案是删除任何类型的互联网过滤器,或者如果你不使用过滤器,请像我一样更改服务器

相关内容