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

Bug#644900: apt from testing cannot read archives created with apt-utils from stable



Package: apt
Version: 0.8.10.3+squeeze1
Severity: normal

Hello,

I am creating apt archive using the following script (which uses pool split by
release).

It works flawlessly with stable apt but with testing I get:
W: Failed to fetch copy:/var/lib/apt/lists/partial/127.0.0.1_debs_dists_squeeze_live_binary-amd64_Packages Hash Sum mismatch

The file is still compressed in this location. Decompressing and
checksumming yields the checksum present in the Release file as stable
apt correctly determines.

There is
/var/lib/apt/lists/partial/127.0.0.1_debs_dists_squeeze_live_binary-amd64_Packages.decomp.FAILED
which is a copy of the compressed list above.

I suspect that apt does not decompress the file before use. When I
modified the script to do checksumming after compression I got error
about invalid field before package header.



#!/bin/sh -ex

archs="i386 amd64"
suite="stable"
codenames="lenny squeeze"
comp="live"

for codename in $codenames ; do

rm -f dists/$suite
ln -sf $codename dists/$suite

find $codename -name \*.deb -exec dpkg-name '{}' ';'

for a in $archs ; do

mkdir -p  dists/$codename/$comp/binary-$a
dpkg-scanpackages -a $a -m $codename /dev/null >
dists/$codename/$comp/binary-$a/Packages
rm -f dists/$codename/$comp/binary-$a/Packages.*

done

#-o APT::FTPArchive::Release::Date= \
#-o APT::FTPArchive::Release::Version=None \

apt-ftparchive \
-o APT::FTPArchive::Release::Origin=hramrach \
-o APT::FTPArchive::Release::Suite=$suite \
-o APT::FTPArchive::Release::Codename=$codename \
-o APT::FTPArchive::Release::Architectures="$a" \
-o APT::FTPArchive::Release::Components="$comp" \
-o APT::FTPArchive::Release::Description="Some packages patched for
testing/debugging stuff in d-l" \
-o APT::FTPArchive::Release::Label="hramrach's Debian Live patch
repository" \
release dists/$codename >dists/$codename/Release

gpg -b dists/$codename/Release
mv dists/$codename/Release.{sig,gpg}


for a in $archs ; do
gzip -f -9 dists/$codename/$comp/binary-$a/Packages
done

done


-- Package-specific info:

-- (/etc/apt/preferences present, but not submitted) --


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'testing'), (410, 'unstable'), (200, 'experimental'), (111, 'oldstable'), (107, 'natty-updates'), (107, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring  2010.08.28      
ii  gnupg                   1.4.10-4        
ii  libc6                   2.13-21         
ii  libgcc1                 1:4.6.1-13      
ii  libstdc++6              4.6.1-13        
ii  zlib1g                  1:1.2.3.4.dfsg-3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc     0.8.10.3+squeeze1 
pn  aptitude    0.6.3-3.2+squeeze1
pn  bzip2       1.0.5-6           
pn  dpkg-dev    1.16.1            
pn  lzma        4.43-14           
pn  python-apt  <none>            

-- no debconf information



Reply to: