Comment 10 for bug 948461

Revision history for this message
Scott Moser (smoser) wrote : Re: apt-get hashsum/size mismatch due caused by swapped local file names

Ben,
  Can you see this fail on mirrors other than the new s3 backed mirrors?
  I've tried several times and have been unable to reproduce on the us-east-1.ec2.archive.ubuntu.com mirrors.
  However, I can reproduce fairly regularly against s3 mirrors

  See log at http://paste.ubuntu.com/872478/
  The command I was using was:

 ( sudo apt-get clean; sudo apt-get update --assume-yes ; sudo apt-get --download-only -y install -o=Debug::Acquire::http=true --assume-yes firefox ; echo $? ) </dev/null 2>&1 | tee /tmp/apt-download.log

  r=0; log=/tmp/apt-download.log; pkg="ubuntu-desktop";
  while [ "$r" = "0" ]; do
    ( sudo apt-get clean; sudo apt-get update --assume-yes &&
      sudo apt-get --download-only -y install -o=Debug::Acquire::http=true --assume-yes $pkg ;
      echo $? ) </dev/null 2>&1 | tee $log
    tail -n 1 $log > out; read r < out ;
    echo "$(date): finished, $r";
   done

Then, I've got this running in a loop from a precise m1.large in us-east-1:

r=0; log=/tmp/apt-download.log;
while [ $r -eq 0 ]; do
  ( sudo apt-get clean; sudo apt-get update --assume-yes && sudo apt-get --downl
oad-only -y install -o=Debug::Acquire::http=true --assume-yes ubuntu-desktop ; echo $? ) </dev/null 2>&1 | tee $log ;
  tail -n 1 $log > out; read r < out ;

  Until we can see it fail against more traditional http server, we almost have to suspect failure of S3 mirrors. Anything
 "$(date): finished, $r"; done