TransWikia.com

How to fix Kali Linux 2020.1 hash sum mismatch error?

Unix & Linux Asked on October 31, 2021

I just recently download Kali Linux .ova from here

When I run sudo apt update , it returns

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.

I have already done sudo rm -rf /var/lib/apt/lists and sudo apt clean. I have also changed the mirror. But nothing happens.

I use VirtualBox version 6.1.6 with Windows 10 2004 (19041.208).

One Answer

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

Do these comands and then update again.

Answered by Vishal Singh Rana on October 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP