Re: aptitude update errors for upgrade to Jessie on amd64
On Thu 14 May 2015 at 14:33:49 +0200, Pierre Frenkiel wrote:
> On Thu, 14 May 2015, Brian wrote:
>
> >Do we assume the problem laptop and laptop2 have the same versions of
> >apt? 'dpkg -l apt' for that.
>
> yes: 0.9.7.9+deb7u7
> It's the 1st thing I checked when I found this difference of behaviuor.
>
> I may-be forgot to say that the problem occurs with apt-get as well as
> aptitude.
Ok, you want to upgrade our amd64 laptop to Jessie but this 'Hash Sum
mismatch' doesn't appear to be amenable to the usual treatment such as
changing mirror, deleting /var/lib/apt/lists/ or waiting for the problem
to sort itself out etc, etc.
You could try bypassing the 'apt-get update' step and upgrading from
there.
1. Have
deb http://ftp.fr.debian.org/debian jessie main
as the only line in sources.list.
2. Delete files in /var/lib/apt/lists and the subdirectory partial.
3. cd /var/lib/apt/lists
4. Download Translation-fr.bz2, Packages.gz and InRelease:
wget http://ftp.fr.debian.org/debian/dists/jessie/main/i18n/Translation-fr.bz2
wget http://ftp.fr.debian.org/debian/dists/jessie/main/binary-amd64/Packages.gz
wget http://ftp.fr.debian.org/debian/dists/jessie/InRelease
4. Uncompress Translation-fr.bz2 and Packages.gz.
5. mv Translation-fr ftp.fr.debian.org_debian_dists_jessie_main_i18n_Translation-fr
mv Packages ftp.fr.debian.org_debian_dists_jessie_main_binary-i386_Packages
mv InRelease ftp.fr.debian.org_debian_dists_jessie_InRelease
6. Check the result of these steps for a package you know you have on
the system.
apt-cache show aptitude | less
7. Upgrade to Jessie with 'apt-get upgrade' and apt-get 'dist-upgrade'.
An alternative open to you would be to update on laptop2 and copy the
three files over.
Not being able to reproduce your problem I don't know how well this will
work for you. But it should keep you off the streets for a while this
evening. :)
Reply to: