[Partially Solved] Repo Update - Hash Sum Mismatch

Kernels & Hardware, configuring network, installing services

[Partially Solved] Repo Update - Hash Sum Mismatch

Postby milomak » 2017-03-29 19:41

I have the same repo on 3 different sid installs
Code: Select all
deb http://ftp.uk.debian.org/debian stable main contrib non-free
deb http://ftp.uk.debian.org/debian testing main contrib non-free
deb http://ftp.uk.debian.org/debian sid main contrib non-free
deb http://ftp.uk.debian.org/debian experimental main contrib non-free
deb-src http://ftp.uk.debian.org/debian stable main contrib non-free
deb-src http://ftp.uk.debian.org/debian testing main contrib non-free
deb-src http://ftp.uk.debian.org/debian sid main contrib non-free
deb-src http://ftp.uk.debian.org/debian experimental main contrib non-free


On 2 of the installs, aptitude update runs without issue.

On the one however I get Hash Sum mismatch errors. I've tried multiple times
Code: Select all
aptitude clean
rm -rfv /var/lib/apt/lists/*
aptitude update


I am running the same versions of aptitude, dpkg and apt
Code: Select all
# apt-cache policy apt aptitude dpkg
apt:
  Installed: 1.4~rc2
  Candidate: 1.4~rc2
  Version table:
 *** 1.4~rc2 100
        100 /var/lib/dpkg/status
aptitude:
  Installed: 0.8.6-1
  Candidate: 0.8.6-1
  Version table:
 *** 0.8.6-1 100
        100 /var/lib/dpkg/status
dpkg:
  Installed: 1.18.23
  Candidate: 1.18.23
  Version table:
 *** 1.18.23 100
        100 /var/lib/dpkg/status


One run of aptitude update produced
Code: Select all
Err http://ftp.uk.debian.org/debian testing/main amd64 Packages                                                                     
  Hash Sum mismatch
Hashes of expected file:
 - Filesize:7124688 [weak]
 - SHA256:4dfb4b1cdc45cbb9ebf9d87eb36c24ed3d8914bb1203341f372d26b9dc1c48a9
 - MD5Sum:5bee7be6d5041f3ff79d09cce8c5848a [weak]
Hashes of received file:
 - SHA256:4370c30ec9a0e1616b8a8595b8c432b1864f4b21a28537f0ec4e23e7e398867a
 - MD5Sum:9efd732b6c6cd19c6a26cf2da7bf90ea [weak]
 - Filesize:7124688 [weak]
Last modification reported: Wed, 29 Mar 2017 14:23:52 +0000
Release file created at: Wed, 29 Mar 2017 14:33:39 +0000

Code: Select all
Err http://ftp.uk.debian.org/debian sid/main amd64 Packages                                                                         
  Hash Sum mismatch
Hashes of expected file:
 - Filesize:7495464 [weak]
 - SHA256:01bff23d13f430256324ddf8bad432aef4b947b5ece867e1c4b41a333183b20e
 - MD5Sum:b8a39e50f0fe259fe10c005b887be613 [weak]
Hashes of received file:
 - SHA256:72b3af1c10c51148a6fca6a8aa73417c7e97adc22a05b6f235cc1224e468ab46
 - MD5Sum:a739a7c197af91b75e5af042d6ca4832 [weak]
 - Filesize:7495464 [weak]
Last modification reported: Wed, 29 Mar 2017 14:23:57 +0000
Release file created at: Wed, 29 Mar 2017 14:33:39 +0000

Code: Select all
Err http://ftp.uk.debian.org/debian stable/main amd64 Contents (deb)                                                               
  Hash Sum mismatch
Hashes of expected file:
 - Filesize:27347433 [weak]
 - SHA256:ac659840faa6a4495a3fd2cbd11d0b81adcfebd8eec29a2134240bb75b142f59
 - SHA1:d3a371f96edacd7c7b25f871a00a4105f218ff8e [weak]
 - MD5Sum:b41921f64f118692ff9fce8597ef253d [weak]
Hashes of received file:
 - SHA256:9030a417ee67fe66956a8ab3efab9c1a6e73c9176381bc040a85dd0199b4b0e7
 - SHA1:f8108be8491c9f0b3a4239918f362b80eb525b9b [weak]
 - MD5Sum:3d4fa52e34b524f775e2de4af69855e9 [weak]
 - Filesize:27347433 [weak]
Last modification reported: Sat, 14 Jan 2017 10:55:59 +0000
Release file created at: Sat, 14 Jan 2017 11:03:32 +0000

Code: Select all
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/testing/main/binary-amd64/by-hash/SHA256/4dfb4b1cdc45cbb9ebf9d87eb36c24ed3d8914bb1203341f372d26b9dc1c48a9: Hash Sum mismatch
   Hashes of expected file:
    - Filesize:7124688 [weak]
    - SHA256:4dfb4b1cdc45cbb9ebf9d87eb36c24ed3d8914bb1203341f372d26b9dc1c48a9
    - MD5Sum:5bee7be6d5041f3ff79d09cce8c5848a [weak]
   Hashes of received file:
    - SHA256:4370c30ec9a0e1616b8a8595b8c432b1864f4b21a28537f0ec4e23e7e398867a
    - MD5Sum:9efd732b6c6cd19c6a26cf2da7bf90ea [weak]
    - Filesize:7124688 [weak]
   Last modification reported: Wed, 29 Mar 2017 14:23:52 +0000
   Release file created at: Wed, 29 Mar 2017 14:33:39 +0000
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/testing/main/i18n/by-hash/SHA256/091c693173c889ef14508600a902838b7902a556d9365eb951aa34e100d6b581:
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/testing/main/by-hash/SHA256/50012a085c150f19aa33bdb4a791506fe212b2b4e67ffd9db560f43c304efd6d:
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/sid/main/binary-amd64/by-hash/SHA256/01bff23d13f430256324ddf8bad432aef4b947b5ece867e1c4b41a333183b20e: Hash Sum mismatch
   Hashes of expected file:
    - Filesize:7495464 [weak]
    - SHA256:01bff23d13f430256324ddf8bad432aef4b947b5ece867e1c4b41a333183b20e
    - MD5Sum:b8a39e50f0fe259fe10c005b887be613 [weak]
   Hashes of received file:
    - SHA256:72b3af1c10c51148a6fca6a8aa73417c7e97adc22a05b6f235cc1224e468ab46
    - MD5Sum:a739a7c197af91b75e5af042d6ca4832 [weak]
    - Filesize:7495464 [weak]
   Last modification reported: Wed, 29 Mar 2017 14:23:57 +0000
   Release file created at: Wed, 29 Mar 2017 14:33:39 +0000
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/stable/main/Contents-amd64.gz: Hash Sum mismatch
   Hashes of expected file:
    - Filesize:27347433 [weak]
    - SHA256:ac659840faa6a4495a3fd2cbd11d0b81adcfebd8eec29a2134240bb75b142f59
    - SHA1:d3a371f96edacd7c7b25f871a00a4105f218ff8e [weak]
    - MD5Sum:b41921f64f118692ff9fce8597ef253d [weak]
   Hashes of received file:
    - SHA256:9030a417ee67fe66956a8ab3efab9c1a6e73c9176381bc040a85dd0199b4b0e7
    - SHA1:f8108be8491c9f0b3a4239918f362b80eb525b9b [weak]
    - MD5Sum:3d4fa52e34b524f775e2de4af69855e9 [weak]
    - Filesize:27347433 [weak]
   Last modification reported: Sat, 14 Jan 2017 10:55:59 +0000
   Release file created at: Sat, 14 Jan 2017 11:03:32 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.


Is there something I am missing?

EDIT - I had to get dirty on this one
I deleted /etc/apt
rsync'd it from one of the working installs
removed /var/lib/apt/
copied /var/lib/apt/* from one of the computers I wasn't having issues into the one with issues (actually physically copied via usb as rsync was having issues)

Issue resolved. Though not satisfactorily
Last edited by milomak on 2017-03-31 21:36, edited 2 times in total.
iMac - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop (64-bit) - Debian Sid, Win10,
Kodi Box - Debian Sid
milomak
 
Posts: 1640
Joined: 2009-06-09 22:20

Re: Repo Update - Hash Sum Mismatch

Postby bw123 » 2017-03-29 21:01

I'm not sure aptitude was meant to manage dependencies for stable, testing, sid, and experimental all at the same time?

one guess would be, there is a broken, held, half installed, or otherwise borked package state on the machine with the problem?
jessie/KDE4.14.2 plasma netbook, 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
User avatar
bw123
 
Posts: 2378
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Repo Update - Hash Sum Mismatch

Postby milomak » 2017-03-31 21:40

bw123 wrote:I'm not sure aptitude was meant to manage dependencies for stable, testing, sid, and experimental all at the same time?


it would be a first in close to 10 years of using debian

one guess would be, there is a broken, held, half installed, or otherwise borked package state on the machine with the problem?

updating a repo should not be impacted by this. having used sid for a number of years this previously was not something that caused update to fail.
iMac - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop (64-bit) - Debian Sid, Win10,
Kodi Box - Debian Sid
milomak
 
Posts: 1640
Joined: 2009-06-09 22:20


Return to System configuration

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable