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

Re: Warning: file:///cdrom/dists/etch/main/binary-i386/Packages.gz was corrupt



On 10/23/07, Bruce Korb <bruce.korb@gmail.com> wrote:
> What does this really mean?
.....
> I'll take a wild guess that there's a package with some wrong check sum.

The wild guess is wrong.

I've now ground through all the files listed in the Packages.gz file.
The check sums match.  I did not get a mismatch.  (Script below.)
So, what does ``Packages.gz was corrupt'' mean?

Thank you.  - Bruce

#! /bin/bash

exec 2> LOG
set -x

egrep '^(Filename|MD5sum): ' Packages | \
while read file_key file && read sum_key sum
do test "$sum_key" = MD5sum: || { echo OOPS ; exit 1 ; }
   sum2=$(md5sum debian/${file} | awk '{print $1}')
   test ${sum} = ${sum2} || \
       printf '%s != %s for %s\n' ${sum} ${sum2} ${file}
done

P.S. I've followed this and other threads, too:

http://osdir.com/ml/debian.devel.dpkg.general/2003-06/msg00074.html



Reply to: