Kali Linux apt-get update Hash sum mismatch error

I downloaded Offensive Security Kali Linux 2020.2 Virtual Box ova from their website. When I try to update apt, hash sum mismatch error occurs. I tried to update my repositories but to no avail. I have attached the screenshot from /etc/apt/sources.listThis is my kali version No LSB modules are available Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2020.2 Codename: kali-rolling

I have also attached the screenshot of the error from sudo apt-get update "screenshot 1" "screenshot 2

0

1 Answer

It seems gcrypto20 that SHA256 and SHA1 have different hash values ​​because they are used in the new Linux. I was able to solve it by the following procedure based on the site posted for reference.

Solution 1: Disable WSL 1/2 on windows if not required, This solved my issue and i shifted my docker to Linux.

Solution 2: Workaround!

$ sudo bash

$ mkdir /etc/gcrypt

$ echo all >> /etc/gcrypt/hwf.deny

After applying this setting run

$ sudo apt-get update

Now the above workaround solves the update issues, as MD5sum matches while updating, but i found my git commands to break and throw errors.

Reference:

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like