Submitted by Polo on Tue, 05/02/2017 - 10:58
Hi, I'm traying to upgrade my Debian squeeze to wheezy (following this guide https://www.virtualmin.com/documentation/system/os/debian-squeeze-to-whe...), but I encounter this blocking error when I run # apt-get dist-upgrade :
Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-wheezy/main/b... Hash Sum mismatch
I tried # apt-get clean before # apt-get update, but I still get the same error. Here is my /etc/apt/sources/list file :
deb http://debian.mirrors.ovh.net/debian/ wheezy main
deb-src http://debian.mirrors.ovh.net/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-wheezy main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main
Thanks for your help
Status:
Closed (fixed)
Comments
Submitted by Polo on Tue, 05/02/2017 - 11:00 Comment #1
Submitted by andreychek on Tue, 05/02/2017 - 11:01 Comment #2
Thanks for letting us know, I'm assigning this to Joe.
Submitted by Polo on Wed, 05/03/2017 - 07:46 Comment #3
Ok thanks, I am in a relative urge since I need to upgrade to wheezy to get the latest openSSL version with TLSv1.2 protocol, which will become mandatory to accept PayPal payments on any server from June 27, 2017.
Submitted by Polo on Wed, 05/10/2017 - 09:01 Comment #4
Hi, I can't upgrade my now obsolete Debian Squeeze until this issue is solved, could you provide any estimation date for a fix, or a workaround to bypass the hash mismatch issue (can't find one...) ?
Thanks
This issue is confusing, as I'm not able to reproduce it on my Debian 7 box, but it's not been upgraded from Debian 6, so maybe there's something weird in old apt-get working against newer repo.
We're still trying to figure out why it's wrong.
Submitted by andreychek on Tue, 05/23/2017 - 10:25 Comment #7
Sorry for the delay -- I just wanted to let you know that Joe and I are looking into this.
Oh, figured it out. Something changed in the way apt repo generation works somewhere along the way (I guess sometime after Debian 7), and it doesn't seem to work with symlinked packages. So, the gpl debian 7 repos were getting incorrect hashes.
Try it again? An apt-get clean is probably needed to get rid of the old incorrect hashes.
Oh, wait. The sums still don't match. WTH. Sometimes I really hate apt.
Still looking into why it's miscalculating these sums.
Submitted by andreychek on Tue, 05/23/2017 - 10:47 Comment #10
Also, I refunded the $50 from your premium support incident. You shouldn't have to pay for us to fix an issue with our repository (and certainly not when it takes us as long as it did).
OK, it should actually be fixed now. apt-ftparchive caches package info, so I had to delete the caches and force it to regenerate all of the repo meta data. It should work now after an apt-get clean; apt-get update
Submitted by Polo on Wed, 05/24/2017 - 17:37 Comment #12
Hi Joe, it works ! We have been able to upgrade our server from Squeeze to Wheezy, and then to Jessie !
Thanks for great work and great support.
Submitted by IssueBot on Tue, 06/27/2017 - 23:30 Comment #14
Automatically closed - issue fixed for 2 weeks with no activity.