PDA

View Full Version : "Hash Sum missmatch" when installing packages



ben1144
2016-03-17, 20:57
Hi everyone!

I'm getting a couple of "Hash Sum mismatch" errors when trying to install packages or running "apt-get upgrade". I searched the forums and the usually recommended solution "rm -rf /var/lib/apt/lists/partial/*" unfortunately didn't help.

my sources.list:
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb http://http.kali.org/kali kali-rolling main/debian-installer
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

output of apt-get upgrade:
...
Get:1 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 gcc-5-base amd64 5.3.1-11 [169 kB]
Get:2 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 libgfortran3 amd64 5.3.1-11 [253 kB]
Get:3 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 libc6 amd64 2.21-9 [2,589 kB]
Get:4 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 sysvinit-utils amd64 2.88dsf-59.3 [66.2 kB]
Get:5 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 libperl5.22 amd64 5.22.1-8 [3,445 kB]
Get:6 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 perl amd64 5.22.1-8 [237 kB]
Err:6 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 perl amd64 5.22.1-8
Hash Sum mismatch
Get:7 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 perl-base amd64 5.22.1-8 [1,282 kB]
Get:8 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 perl-modules-5.22 all 5.22.1-8 [2,695 kB]
Err:8 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 perl-modules-5.22 all 5.22.1-8
Hash Sum mismatch
Get:9 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 init amd64 1.29+kali1 [6,966 B]


The funny thing is that when I try to install a package that threw such errors separately, everything seems to work fine. For example, "apt-get install perl" terminates successfully.


output of apt-key list:
/etc/apt/trusted.gpg
--------------------
pub 4096R/1804772E 2014-11-24
uid Emdebian Toolchain Archive (signing key)

/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
----------------------------------------------------------
pub 4096R/2B90D010 2014-11-21 [expires: 2022-11-19]
uid Debian Archive Automatic Signing Key (8/jessie) <[email protected]>

/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
-------------------------------------------------------------------
pub 4096R/C857C906 2014-11-21 [expires: 2022-11-19]
uid Debian Security Archive Automatic Signing Key (8/jessie) <[email protected]>

/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
-------------------------------------------------------
pub 4096R/518E17E1 2013-08-17 [expires: 2021-08-15]
uid Jessie Stable Release Key <[email protected]>

/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
-----------------------------------------------------------
pub 4096R/473041FA 2010-08-27 [expires: 2018-03-05]
uid Debian Archive Automatic Signing Key (6.0/squeeze) <[email protected]>

/etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg
--------------------------------------------------------
pub 4096R/B98321F9 2010-08-07 [expires: 2017-08-05]
uid Squeeze Stable Release Key <[email protected]>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
----------------------------------------------------------
pub 4096R/46925553 2012-04-27 [expires: 2020-04-25]
uid Debian Archive Automatic Signing Key (7.0/wheezy) <[email protected]>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
-------------------------------------------------------
pub 4096R/65FFB764 2012-05-08 [expires: 2019-05-07]
uid Wheezy Stable Release Key <[email protected]>

/etc/apt/trusted.gpg.d/kali-archive-keyring.gpg
-----------------------------------------------
pub 4096R/7D8D0BF6 2012-03-05 [expires: 2018-02-02]
uid Kali Linux Repository <[email protected]>
sub 4096R/FC0D0DCB 2012-03-05 [expires: 2018-02-02]



Thanks for the help!

duxim
2016-03-18, 11:04
delete in source list this
deb http://http.kali.org/kali kali-rolling main/debian-installer (or comment it with #)
and try again

ben1144
2016-03-19, 22:24
hi! thanks for the reply. i commented the line out, ran apt-get clean && apt-get update && apt-get upgrade but encountered the same errors. i also tried deleting the files in /var/lib/apt/lists/partial/* and rerunning this command, but it didn't help either.

TheMantis
2016-08-10, 18:59
hi! thanks for the reply. i commented the line out, ran apt-get clean && apt-get update && apt-get upgrade but encountered the same errors. i also tried deleting the files in /var/lib/apt/lists/partial/* and rerunning this command, but it didn't help either.

Is the computer at home or at work? I have the same issue with update and upgrade when at work. Bring the system home and do an update.