Unable to upgrade from Debian Squeeze to Wheezy : hash mismatch when fetching virtualmin-base_1.0-36.1_all.deb

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

Assigned: Unassigned »

Thanks for letting us know, I'm assigning this to Joe.

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.

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

Joe's picture
Submitted by Joe on Tue, 05/23/2017 - 10:19 Pro Licensee

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.

Sorry for the delay -- I just wanted to let you know that Joe and I are looking into this.

Joe's picture
Submitted by Joe on Tue, 05/23/2017 - 10:40 Pro Licensee

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.

Joe's picture
Submitted by Joe on Tue, 05/23/2017 - 10:46 Pro Licensee

Oh, wait. The sums still don't match. WTH. Sometimes I really hate apt.

Still looking into why it's miscalculating these sums.

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).

Joe's picture
Submitted by Joe on Tue, 05/23/2017 - 11:08 Pro Licensee

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

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.

Joe's picture
Submitted by Joe on Tue, 06/13/2017 - 23:29 Pro Licensee

Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.