[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: etch apt - Failed to fetch kernel, Size Mismatch error



Siju George wrote:
Hi I am unable to upgrade my Debian Etch System to the new kernel.
Could some one please help me with this?

Details below

======================================================
fsdc:~# cat /etc/apt/sources.list
deb http://ftp.de.debian.org/debian/ etch main contrib
deb http://security.debian.org etch/updates main contrib
#for sun java
#deb http://ftp.de.debian.org/debian/ unstable non-free
fsdc:~# apt-get update
Get:1 http://security.debian.org etch/updates Release.gpg [189B]
Get:2 http://ftp.de.debian.org etch Release.gpg [378B]
Hit http://security.debian.org etch/updates Release
Hit http://ftp.de.debian.org etch Release
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://ftp.de.debian.org etch/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://ftp.de.debian.org etch/contrib Packages/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Hit http://ftp.de.debian.org etch/main Packages
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://ftp.de.debian.org etch/contrib Packages
Fetched 2B in 2s (1B/s)
Reading package lists... Done
fsdc:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  dhcp-client librpcsecgss3 linux-image-2.6.18-5-486 linux-image-2.6.18-5-686
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.5MB/32.6MB of archives.
After unpacking 24.6kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://security.debian.org etch/updates/main
linux-image-2.6.18-5-486 2.6.18.dfsg.1-13etch4 [16.2MB]
Get:2 http://security.debian.org etch/updates/main
linux-image-2.6.18-5-686 2.6.18.dfsg.1-13etch4 [16.3MB]
Fetched 652B in 1s (398B/s)
Failed to fetch
http://security.debian.org/pool/updates/main/l/linux-2.6/linux-image-2.6.18-5-486_2.6.18.dfsg.1-13etch4_i386.deb
 Size mismatch
Failed to fetch
http://security.debian.org/pool/updates/main/l/linux-2.6/linux-image-2.6.18-5-686_2.6.18.dfsg.1-13etch4_i386.deb
 Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
fsdc:~# apt-get update --fix-missing
Get:1 http://security.debian.org etch/updates Release.gpg [189B]
Get:2 http://ftp.de.debian.org etch Release.gpg [378B]
Hit http://security.debian.org etch/updates Release
Hit http://ftp.de.debian.org etch Release
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://ftp.de.debian.org etch/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://ftp.de.debian.org etch/contrib Packages/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Hit http://ftp.de.debian.org etch/main Packages
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://ftp.de.debian.org etch/contrib Packages
Fetched 2B in 2s (1B/s)
Reading package lists... Done
fsdc:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  dhcp-client librpcsecgss3 linux-image-2.6.18-5-486 linux-image-2.6.18-5-686
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.5MB/32.6MB of archives.
After unpacking 24.6kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://security.debian.org etch/updates/main
linux-image-2.6.18-5-486 2.6.18.dfsg.1-13etch4 [16.2MB]
Get:2 http://security.debian.org etch/updates/main
linux-image-2.6.18-5-686 2.6.18.dfsg.1-13etch4 [16.3MB]
Fetched 652B in 1s (465B/s)
Failed to fetch
http://security.debian.org/pool/updates/main/l/linux-2.6/linux-image-2.6.18-5-486_2.6.18.dfsg.1-13etch4_i386.deb
 Size mismatch
Failed to fetch
http://security.debian.org/pool/updates/main/l/linux-2.6/linux-image-2.6.18-5-686_2.6.18.dfsg.1-13etch4_i386.deb
 Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
fsdc:~# uname -a
Linux fsdc 2.6.18-5-486 #1 Thu Aug 30 01:46:45 UTC 2007 i686 GNU/Linux
fsdc:~#
=====================================================
Thank you so much :-)

Kind Regards
Siju



Inspect the output of

$ apt-cache show linux-image-2.6.18-5-486 --no-all-versions

and

$ wget --spider \
http://security.debian.org/pool/updates/main/l/linux-2.6/linux-image-2.6.18-5-486_2.6.18.dfsg.1-13etch4_i386.deb

Compare the "Size" field of apt-cache output with the "Length" field of wget output. They should match. (they do on my system)

If you get different sizes, then delete all the cached package lists in /var/lib/apt/lists, run apt-get update and apt-get dist-upgrade again to see if it fixes the problem



Reply to: