Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  (Solved) Hash Sum Mismatch  (Read 10641 times)

Offline GoinEasy9

  • User
  • Posts: 560
(Solved) Hash Sum Mismatch
« on: 2014/02/13, 18:34:32 »
I'm sorry guys, but, it's been a long time since I had to deal with this error.
Code: [Select]
W: Failed to fetch http://http.debian.net/debian/dists/unstable/main/binary-amd64/PackagesIndex  Hash Sum mismatch

W: Failed to fetch http://http.debian.net/debian/dists/unstable/contrib/binary-amd64/PackagesIndex  Hash Sum mismatch

W: Failed to fetch http://http.debian.net/debian/dists/unstable/main/i18n/Translation-enIndex  Hash Sum mismatch

W: Failed to fetch http://http.debian.net/debian/dists/experimental/main/binary-amd64/PackagesIndex  Hash Sum mismatch

W: Failed to fetch http://http.debian.net/debian/dists/experimental/main/i18n/Translation-enIndex  Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
In Fedora the command was "yum clean all".  I've been getting this error for the past day and a half, so, it's something wrong on my machine.

I see a bug report was filed with similar symptoms: http://permalink.gmane.org/gmane.linux.debian.apt.devel/26132

In the bug report it gives two ways of fixing the problem.  One is by deleting the package lists in /var/lib/apt/lists, the other is to change apt.conf to disable using pdiff's.  What is the best way of dealing with this error? 
« Last Edit: 2014/02/13, 20:09:27 by GoinEasy9 »
Linux Counter number 348347

Offline michaa7

  • User
  • Posts: 2.298
Re: Hash Sum Mismatch
« Reply #1 on: 2014/02/13, 19:10:34 »
Hm, i'd say the repo is syncing. But as the problem lasts more than a day I really wonder what's going on.

The bug report is a not verified assumption, so nothing to really count on. Still I'd say these errors occure when a repo is syncing and hasn't completed.

Did you try any other mirrors?

Or you could try to disable pdiffs temporarily (if it really isnt't the mirror):

Code: [Select]
apt-get update -o Acquire::Pdiffs=false && apt-get dist-upgrade -d
« Last Edit: 2014/02/13, 19:24:34 by michaa7 »
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline GoinEasy9

  • User
  • Posts: 560
Re: Hash Sum Mismatch
« Reply #2 on: 2014/02/13, 20:09:07 »
I was also thinking it was a syncing problem, it's why I waited a day.  The problem seems to be with the repos that are under the Debian loadbalancer header.  I thought the load bablancer was changing repos each time I did apt-get update, but, it seemed to bring up the "Noodle" server each time I put https://www.debian.org/ into the url slot.  I manually changed it to http://ftp.us.debian.org/debian/ and apt-get update completed.  So much for the load balancer. 
 
That particular mirror, http://noodle.portalus.net/debian/ has a line that reads, "Archive-Update-in-Progress-noodle.portalus.net", dated today.  Whether that has anything to do with the problem or not, I don't know.

Thanks for the hints michaa7.
Linux Counter number 348347

Offline michaa7

  • User
  • Posts: 2.298
Re: Hash Sum Mismatch
« Reply #3 on: 2014/02/13, 20:39:23 »
I was also thinking it was a syncing problem, it's why I waited a day.  The problem seems to be with the repos that are under the Debian loadbalancer header. 

What do you mean by "loadbalancer"? http://http.debian.net ? Works flawlessly since years for me.


Quote
That particular mirror, http://noodle.portalus.net/debian/ has a line that reads, "Archive-Update-in-Progress-noodle.portalus.net", dated today.  Whether that has anything to do with the problem or not, I don't know....

I'd say this clearly indicates the sync didn't complete and the admin hasn'd noticed.
« Last Edit: 2014/02/14, 00:09:01 by michaa7 »
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline GoinEasy9

  • User
  • Posts: 560
Re: (Solved) Hash Sum Mismatch
« Reply #4 on: 2014/02/13, 21:20:03 »
Loadbalancer always worked flawlessly for me also.  This is the first time I've had a problem with it.  After the dist-upgrade completed, I looked again at the "Noodles" mirror and "Archive-Update-in-Progress" line was gone, so, I switched the repos back under debian.list and apt-get update ran successfully.  You were probably right, michaa7, it probably was an incomplete sync that was the problem.  I guess the admin finally noticed.

Thanks again for the help.
Linux Counter number 348347

Offline michaa7

  • User
  • Posts: 2.298
Re: (Solved) Hash Sum Mismatch
« Reply #5 on: 2014/02/18, 02:13:02 »
Today I had the same problem. And it seemed that this hapened not due to the mirror was syncing as it happend still after hours.
I found the solution elsewhere:
Code: [Select]
rm -rf /var/lib/apt/lists did the trick. To me it seems pdiffs sometimes corrupt the mirror database on one's computer. When you remove this database you get a cleanone afterwards (no pdiffs, as you begin from zero).

Removing the apt lists solved the problem here.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake