Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Persistent Hash Sum Mismatch

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
Sajjad Kabir Joy
Posts: 28
Joined: 2015-02-22 16:35
Location: Bangladesh

Persistent Hash Sum Mismatch

#1 Post by Sajjad Kabir Joy »

It happened when I was trying to install Debian Stretch amd64 on my new computer 2 days ago. While installing desktop and additional packages, it would fail at the last moment (while trying to install/upgrade libxml2) and only the core Debian system would be installed. As a "solution", I unplugged the LAN cable and began the installation all over again. This time the installation succeeded. But when I tried to upgrade the installed packages, it was failing because of "Hash Sum Mismatch", which was preventing apt-get (or apt, or aptitude) from upgrading libxml2. Using --fix-broken or --fix-missing did nothing. I get this:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  libxml2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 920 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.debian.org stretch/updates/main amd64 libxml2 amd64 2.9.4+dfsg1-2.2+deb9u1 [920 kB]
Err:1 http://security.debian.org stretch/updates/main amd64 libxml2 amd64 2.9.4+dfsg1-2.2+deb9u1
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:ae2e74a33ea43d59d4a8294dd15a4ad4caeb059075968166cd3fd161167c5f2e
   - SHA1:00e554c7820d9bb7b9f7950ec745775a85944e52 [weak]
   - MD5Sum:d7f38e00685687502743bec5818875ea [weak]
   - Filesize:919596 [weak]
  Hashes of received file:
   - SHA256:df089ff7b3701b88f7bd9845702fd9472629e1e51b3b5ff15cd22bd1bcfc4fcb
   - SHA1:e255e9223d4685595320c35d58820828ab305e51 [weak]
   - MD5Sum:af7be94ec155be5b72372e0b84c557ac [weak]
   - Filesize:919596 [weak]
  Last modification reported: Sat, 19 Aug 2017 19:40:40 +0000
Fetched 920 kB in 5s (156 kB/s)  
E: Failed to fetch http://security.debian.org/pool/updates/main/libx/libxml2/libxml2_2.9.4+dfsg1-2.2+deb9u1_amd64.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:ae2e74a33ea43d59d4a8294dd15a4ad4caeb059075968166cd3fd161167c5f2e
    - SHA1:00e554c7820d9bb7b9f7950ec745775a85944e52 [weak]
    - MD5Sum:d7f38e00685687502743bec5818875ea [weak]
    - Filesize:919596 [weak]
   Hashes of received file:
    - SHA256:df089ff7b3701b88f7bd9845702fd9472629e1e51b3b5ff15cd22bd1bcfc4fcb
    - SHA1:e255e9223d4685595320c35d58820828ab305e51 [weak]
    - MD5Sum:af7be94ec155be5b72372e0b84c557ac [weak]
    - Filesize:919596 [weak]
   Last modification reported: Sat, 19 Aug 2017 19:40:40 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
So far I've tried apt-get clean, clearing the /var/cache/apt/ and /var/lib/apt/lists/ directories and apt-get update. I've even made a config file in /etc/apt/apt.conf.d/ which says

Code: Select all

Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy    true;
Can anyone please tell me how to resolve this issue and prevent it from happening in the future?

EDIT: This is my sources.list file, if it's helpful:

Code: Select all

deb http://ftp.se.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.se.debian.org/debian/ stretch main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free

deb http://ftp.se.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.se.debian.org/debian/ stretch-updates main contrib non-free

User avatar
Sajjad Kabir Joy
Posts: 28
Joined: 2015-02-22 16:35
Location: Bangladesh

Re: Persistent Hash Sum Mismatch

#2 Post by Sajjad Kabir Joy »

SOLVED: I had a feeling that the problem was with security.debian.org, and it has been confirmed. Changing the security update mirror immediately solved the problem!

Post Reply