Siduction Forum

Siduction Forum => Upgrade Warnings => Topic started by: GoinEasy9 on 2014/02/13, 18:34:32

Title: (Solved) Hash Sum Mismatch
Post by: GoinEasy9 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 (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? 
Title: Re: Hash Sum Mismatch
Post by: michaa7 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
Title: Re: Hash Sum Mismatch
Post by: GoinEasy9 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 (http://noodle.portalus.net/debian/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.
Title: Re: Hash Sum Mismatch
Post by: michaa7 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 (http://noodle.portalus.net/debian/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.
Title: Re: (Solved) Hash Sum Mismatch
Post by: GoinEasy9 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.
Title: Re: (Solved) Hash Sum Mismatch
Post by: michaa7 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.