如何修复 Kali Linux 2020.1 哈希和不匹配错误?

如何修复 Kali Linux 2020.1 哈希和不匹配错误?

我最近刚刚从以下网站下载了 Kali Linux .ova这里

当我运行时sudo apt update,它返回

Get:1 https://packages.microsoft.com/repos/vscode stable InRelease [3,958 B]
Get:2 https://packages.microsoft.com/repos/vscode stable/main amd64 Packages [177 kB]
Get:3 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease [30.5 kB]
Get:4 http://kali.cs.nctu.edu.tw/kali kali-rolling/main amd64 Packages [16.5 MB]
Err:4 http://kali.cs.nctu.edu.tw/kali kali-rolling/main amd64 Packages                                                                                                                                                                    
  Hash Sum mismatch
  Hashes of expected file:
   - Filesize:16481917 [weak]
   - SHA256:e8104c6e141812dc6112dfe9d0c29a37c78fd966aaab11ab62dc805b739ef477
   - SHA1:f719fb7dce0d1c7dcfe4bf23425ff0a0c0765093 [weak]
   - MD5Sum:5670a40723666e7553acbc5f3413aae2 [weak]
  Hashes of received file:
   - SHA256:e8104c6e141812dc6112dfe9d0c29a37c78fd966aaab11ab62dc805b739ef477
   - SHA1:61b82f2d260b2264a577a73f24c8acfce688c534 [weak]
   - MD5Sum:5670a40723666e7553acbc5f3413aae2 [weak]
   - Filesize:16481917 [weak]
  Last modification reported: Wed, 06 May 2020 06:12:17 +0000
  Release file created at: Wed, 06 May 2020 06:13:11 +0000
Get:5 http://kali.cs.nctu.edu.tw/kali kali-rolling/non-free amd64 Packages [195 kB]                                                                                                                                                       
Get:6 http://kali.cs.nctu.edu.tw/kali kali-rolling/contrib amd64 Packages [97.6 kB]                                                                                                                                                       
Fetched 17.0 MB in 13s (1,327 kB/s)                                                                                                                                                                                                       
Reading package lists... Done
E: Failed to fetch http://kali.cs.nctu.edu.tw/kali/dists/kali-rolling/main/binary-amd64/Packages.gz  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:16481917 [weak]
    - SHA256:e8104c6e141812dc6112dfe9d0c29a37c78fd966aaab11ab62dc805b739ef477
    - SHA1:f719fb7dce0d1c7dcfe4bf23425ff0a0c0765093 [weak]
    - MD5Sum:5670a40723666e7553acbc5f3413aae2 [weak]
   Hashes of received file:
    - SHA256:e8104c6e141812dc6112dfe9d0c29a37c78fd966aaab11ab62dc805b739ef477
    - SHA1:61b82f2d260b2264a577a73f24c8acfce688c534 [weak]
    - MD5Sum:5670a40723666e7553acbc5f3413aae2 [weak]
    - Filesize:16481917 [weak]
   Last modification reported: Wed, 06 May 2020 06:12:17 +0000
   Release file created at: Wed, 06 May 2020 06:13:11 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

我已经做了sudo rm -rf /var/lib/apt/listssudo apt clean。我也换了镜子。但什么也没发生。

我在 Windows 10 2004 (19041.208) 中使用 VirtualBox 版本 6.1.6。

答案1

$ sudo bash
# mkdir /etc/gcrypt
# echo all > /etc/gcrypt/hwf.deny

执行这些命令,然后再次更新。

相关内容