Fix kali linux hash sum mismatch

Hash Sum mismatch Kali Linux 
kali linux hash sum mismatch

Few days ago i got sometime to setup Kali Linux  on VMware everything seems fine until i tried to update it using apt-get update i get this annoying error

apt-get update

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/contrib Sources [66.1 kB]
Get:3 http://kali.mirror.garr.it/mirrors/kali kali-rolling/non-free Sources [124 kB
Get:4 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main Sources [11.0 MB]
Get:4 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main Sources [11.0 MB]
Err:4 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main Sources

  Hash Sum mismatch

  Hashes of expected file:
   - Filesize:11015732 [weak]
   - SHA256:b20b6264d4bd5200e6e3cf319df56bd7fea9b2ff5c9dbd44f3e7e530a6e6b9e0
   - SHA1:2d8b15ab8109d678fe1810800e0be8ce3be87201 [weak]
   - MD5Sum:d0b5f94ba474b31f00f8911ac78258ec [weak]

  Hashes of received file:

   - SHA256:a7b9ca82fc1a400b2e81b2ebc938542abfdbfa5aecdfa8744f60571746ec967b
   - SHA1:5d870530aa87398dcb11ecb07e6a25ca0746985f [weak]
   - MD5Sum:9a4824220c0a5fa6cb74390851116b73 [weak]
   - Filesize:9828918 [weak]

  Last modification reported: Wed, 23 Dec 2015 00:03:15 +0000

  Release file created at: Thu, 01 Jun 2017 12:15:05 +0000

Get:5 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Packages [15.0 MB]
Get:6 http://kali.mirror.garr.it/mirrors/kali kali-rolling/contrib i386 Packages [98.7 kB]
Get:7 http://kali.mirror.garr.it/mirrors/kali kali-rolling/non-free i386 Packages [145 kB]
Fetched 25.3 MB in 11min 20s (37.2 kB/s)                              

Reading package lists... Done

E: Failed to fetch http://kali.mirror.garr.it/mirrors/kali/dists/kali-rolling/main/source/Sources.gz  Hash Sum mismatch

   Hashes of expected file:

    - Filesize:11015732 [weak]
    - SHA256:b20b6264d4bd5200e6e3cf319df56bd7fea9b2ff5c9dbd44f3e7e530a6e6b9e
    - SHA1:2d8b15ab8109d678fe1810800e0be8ce3be87201 [weak]
    - MD5Sum:d0b5f94ba474b31f00f8911ac78258ec [weak]

   Hashes of received file:

    - SHA256:a7b9ca82fc1a400b2e81b2ebc938542abfdbfa5aecdfa8744f60571746ec967b
    - SHA1:5d870530aa87398dcb11ecb07e6a25ca0746985f [weak]
    - MD5Sum:9a4824220c0a5fa6cb74390851116b73 [weak]
    - Filesize:9828918 [weak]
   Last modification reported: Wed, 23 Dec 2015 00:03:15 +0000

   Release file created at: Thu, 01 Jun 2017 12:15:05 +0000

E: Some index files failed to download. They have been ignored, or old ones used instead.
the problem is clearly must be in the sources.list file of  Kali Linux ... i have tried to fix it in many ways but i always end up where i started Hash Sum mismatch is showing up over and over , things seems too complicated for me but the fix was simple really simple ! and here it is
update your Repositories in sources.list file to :
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb http://repo.kali.org/kali kali-rolling main non-free contrib


To do so Follow those steps
open Terminal as root and follow those command :
leafpad /etc/apt/sources.list
on the new Windows ( text file )
remove every line of code
and add this  Repositories
deb http://repo.kali.org/kali kali-rolling main non-free contrib


Save and close the file
Clean, update, upgrade and dist-upgrade your Kali installation
1apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
I hope this works for you and if it didn't let me know on the comment 

Kali Linux
June 1, 2017
8

Comments

  1. can you help me it dont work for me

    ReplyDelete
    Replies
    1. uninstall the package that are casing the error ...
      if you don;t know it just copy and past the error code in here and i will tell you what to do

      Delete
  2. Thanks a lot man . Was able to solve my virtualbox dkms issue :)

    ReplyDelete
  3. deb https://http.kali.org/kali kali-rolling main contrib non-free

    add this it will work
    :)

    ReplyDelete
  4. can you help me it dont work for me
    please help

    ReplyDelete
  5. getsystem and getprivs is not working for me.
    its showing ""Rex::TimeoutError Operation timed out"" error.
    i tried to get system access of win 7 from my kali 2017.1.
    i have tried many solution nothing get worked for me!

    ReplyDelete
  6. Still didn't work for me


    root@kali:~# apt-get update
    Err:2 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden [IP: 51.161.119.11 80]
    Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease [30.5 kB]
    Get:3 http://ftp.harukasan.org/kali kali-rolling/main amd64 Packages [16.5 MB]
    Err:3 http://ftp.harukasan.org/kali kali-rolling/main amd64 Packages
    Hash Sum mismatch
    Hashes of expected file:
    - Filesize:16536961 [weak]
    - SHA256:3f38da1d2a6fdddd8768b901fb9a1b0e6f28f82a96c3d443f9c9efff786d1dde
    - SHA1:d68d4fcef76616e176daaa9eab361de8a8aa04dd [weak]
    - MD5Sum:1d533b5b271821bb5f9b7ab911c7504b [weak]
    Hashes of received file:
    - SHA256:c739ab97b12d22b9d9a3a34960e7848cad0e97d2f6ba0a697e624e7a71318d68
    - SHA1:a56af9276e3823b274d9333d31c97089389aa2e9 [weak]
    - MD5Sum:1d533b5b271821bb5f9b7ab911c7504b [weak]
    - Filesize:16536961 [weak]
    Last modification reported: Fri, 12 Jun 2020 12:03:20 +0000
    Release file created at: Fri, 12 Jun 2020 12:04:15 +0000
    Get:4 http://ftp.harukasan.org/kali kali-rolling/non-free amd64 Packages [196 kB]
    Get:5 http://ftp.harukasan.org/kali kali-rolling/contrib amd64 Packages [99.7 kB]
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden [IP: 51.161.119.11 80]
    E: The repository 'http://repo.kali.org/kali kali-rolling InRelease' is not signed.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    root@kali:~#

    ReplyDelete

Post a Comment

Search

Popular Posts

USB WiFi adapters that support monitor mode and wireless injection

usb wifi adapter with monitor mode and wireless injection (100% compatibl…

how to update Kali Linux and Fix update error

Kali Linux one of the best Linux distro for penetration testing it's freq…

Fix Kali Linux sources.list Repositories

Fix default repository First after installing a clean Kali Linux the sou…

Recent Comments

Contact Me