PDA

View Full Version : update error Hash Sum mismatch



sorna
2016-09-01, 06:42
hi
i'm trying update but error:

Get:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease [30.5 kB]
Get:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 Packages [13.9 MB]
Err:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 Packages
Hash Sum mismatch
Hashes of expected file:
- Checksum-FileSize:13916092 [weak]
- SHA256:8d1dc133e36a2b0e4eddf7edfddd20fbc0c0dd8ccb7 f4ae851731021b006934b
- SHA1:bfe14432fcd4ab12e4fcd8686107eb7998faaa32 [weak]
- MD5Sum:56bd556d12fd86340c4be97ea56de8f9 [weak]
Hashes of received file:
- SHA256:8c9e70c9ce6c322457a21f8c1339590259622be632a 6a78644fa3c12a62e0a6e
- SHA1:cb2b98fe9f5d58cb3758e38537bd9fcf68cdaef2 [weak]
- MD5Sum:493e573d3a7129f8cefa489b819abc8b [weak]
- Checksum-FileSize:13900479 [weak]
Last modification reported: Tue, 23 Aug 2016 20:40:10 +0000
Release file created at: Wed, 31 Aug 2016 12:21:27 +0000
Get:3 http://kali.mirror.garr.it/mirrors/kali kali-rolling/contrib amd64 Packages [91.0 kB]
Err:3 http://kali.mirror.garr.it/mirrors/kali kali-rolling/contrib amd64 Packages

Get:4 http://kali.mirror.garr.it/mirrors/kali kali-rolling/non-free amd64 Packages [150 kB]
Err:4 http://kali.mirror.garr.it/mirrors/kali kali-rolling/non-free amd64 Packages

Fetched 14.2 MB in 14s (1,002 kB/s)
Reading package lists... Done
E: Failed to fetch http://kali.mirror.garr.it/mirrors/kali/dists/kali-rolling/main/binary-amd64/Packages.gz Hash Sum mismatch
Hashes of expected file:
- Checksum-FileSize:13916092 [weak]
- SHA256:8d1dc133e36a2b0e4eddf7edfddd20fbc0c0dd8ccb7 f4ae851731021b006934b
- SHA1:bfe14432fcd4ab12e4fcd8686107eb7998faaa32 [weak]
- MD5Sum:56bd556d12fd86340c4be97ea56de8f9 [weak]
Hashes of received file:
- SHA256:8c9e70c9ce6c322457a21f8c1339590259622be632a 6a78644fa3c12a62e0a6e
- SHA1:cb2b98fe9f5d58cb3758e38537bd9fcf68cdaef2 [weak]
- MD5Sum:493e573d3a7129f8cefa489b819abc8b [weak]
- Checksum-FileSize:13900479 [weak]
Last modification reported: Tue, 23 Aug 2016 20:40:10 +0000
Release file created at: Wed, 31 Aug 2016 12:21:27 +0000
E: Failed to fetch http://kali.mirror.garr.it/mirrors/kali/dists/kali-rolling/contrib/binary-amd64/Packages.gz
E: Failed to fetch http://kali.mirror.garr.it/mirrors/kali/dists/kali-rolling/non-free/binary-amd64/Packages.gz
E: Some index files failed to download. They have been ignored, or old ones used instead.

sources.list
#

# deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160120-18:14]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160120-18:14]/ kali-rolling contrib main non-free

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free


cat /proc/version
Linux version 4.6.0-kali1-amd64 ([email protected]) (gcc version 5.4.0 20160609 (Debian 5.4.0-6) ) #1 SMP Debian 4.6.4-1kali1 (2016-07-21)

sijiloso
2016-10-05, 21:58
already have the solution please comment it I feel the same

limkokhole
2017-02-26, 01:04
I've encountered "Hash Sum mismatch" too, most likely the mirror is bad.

So, visits http://http.kali.org/README.mirrorlist with your web browser.

Then choose another mirror, and replace the host with this new mirror in `/etc/apt/sources.list`, e.g.:


deb http://<your new mirror>/kali kali-rolling main non-free contrib

Note that if the mirror too slow, you don't have to waste your time, you should stop it by Ctrl+C and change it to another mirror.

This solved my problem :)

Sagaryal
2017-03-04, 05:09
<Hash Sum Mismatch> is actually one of the most irritating problems I've faced. To solve this problem just change the mirror you have been using.

Go to this site http://http.kali.org/README.mirrorlist for the list of mirrors. You will also find some suggested mirrorlist near your region (Country).
You can try using one of those first.

Then, first Open your source file "/etc/apt/sources.list". You might see your file similar to this.



#

# deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free

deb http://http.kali.org/kali kali-rolling main contrib non-free
#deb-src http://http.kali.org/kali kali-rolling main contrib non-free



For eg. lets use http://ftp.hands.com/kali/README

Replace

deb http://http.kali.org/kali kali-rolling main contrib non-free
with

deb http://ftp.hands.com/kali kali-rolling main contrib non-free

we just replace the part in between http://<some link part>/kali

Replace similarly if you want deb-src package too.

In this link

deb http://http.kali.org/kali kali-rolling main contrib non-freewhat actually happens, is the bold part is replaced with the nearest and best mirror according to your region.

The problem was actually with the mirror used. Just change to other mirroe as given in the link if any problem provided by one.

Hope it helped.