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

trouble forcing apt-get into using local mirror



Hello,

I'm having trouble getting apt-get to use my local mirror (created
with apt-move) instead of remote debian mirrors. It works if I remove all
remote mirrors. I tried pinning/change origin,labels/make custom
Release/package files with apt-ftparchive , nothing works.
I straced it and it apt-get looks at my local lists in /var/lib/apt/lists
but just picks out the remote ones after processing them all.
Why is it not grabbing from my local mirror with apt-get -d --reinstall
install <somepackage> (I use these options to quickly test local packages,
but it also fails without these option) ?
I searched and saw that more people have this problem, but I didn't see a
solution.
And as a sidenote, why doesn't apt-ftparchive create the
appropiate Release files such as main/binary-i386/Release?

My Release file:
################################
Architectures: i386
Codename: etch
Components: main non-free contrib
Date: Wed, 16 Nov 2005 11:28:37 UTC
Description: Debian Testing distribution - Not Released
Label: Debian
Origin: Local
Suite: testing
MD5Sum:
 fc50f94ffd6db0146f122b5bda9744c6             2381 Release
 d41d8cd98f00b204e9800998ecf8427e                0
contrib/binary-i386/Packages
 4059d198768f9f8dc9372dc1c54bc3c3               14
contrib/binary-i386/Packages.bz2
 4a4dd3598707603b3f76a2378a4504aa               20
contrib/binary-i386/Packages.gz
 c14903aff900d633d2baabc47fac490c               86
contrib/binary-i386/Release
 52e3d27c06bd9f75a6bb7db21b4e3f54           588494
main/binary-i386/Packages
 ec24f920c836e251c91207edd8f23793           114291
main/binary-i386/Packages.bz2
 393508f92e627c9e719bdf449807045d           139485
main/binary-i386/Packages.gz
 3eb0da7fde59b451a823c1496c9d6be6               82 main/binary-i386/Release
 6e1cf5f86ee6b2be65fe9bb9a74bdba7              580
non-free/binary-i386/Packages
 fd57515dbe1875cff43ff453b1a89230              431
non-free/binary-i386/Packages.bz2
 2b66de66cb5b75bfe3d14556c484a8bf              393
non-free/binary-i386/Packages.gz
 e79bd1e29ca3dbf7c48e85532b6d00cb               87
non-free/binary-i386/Release
SHA1:
 9848e4235abb4f899a60baa88cca0aeaacbc9de5             2381 Release
 da39a3ee5e6b4b0d3255bfef95601890afd80709                0
contrib/binary-i386/Packages
 64a543afbb5f4bf728636bdcbbe7a2ed0804adc2               14
contrib/binary-i386/Packages.bz2
 a0fddd5458378c1bf3c10dd2f5c060d1347741ed               20
contrib/binary-i386/Packages.gz
 289d907a67d980c2d473c2a0c944b7fb9f5f3cb4               86
contrib/binary-i386/Release
 026104b19b06a7d44ec9708ca34763bc76b4359c           588494
main/binary-i386/Packages
 9b435a765e210d2a7cc6045ced08ccbe683d64ec           114291
main/binary-i386/Packages.bz2
 20343128a93c8118dd6084930a3c1424e352d093           139485
main/binary-i386/Packages.gz
 3900673ae9ebf668653ba9a0c0cfe64610afb364               82
main/binary-i386/Release
 0b1c475be25b2eb347157d2bf3d97713089ab255              580
non-free/binary-i386/Packages
 80cf3a51ad155e4a29c2a1e4515d8e08aafda3ed              431
non-free/binary-i386/Packages.bz2
 b078ae86b8da6dec44d89be63caa053a204e9930              393
non-free/binary-i386/Packages.gz
 7a0eb4fc987919b71cb9f13efeab3f58cea1562c               87
 non-free/binary-i386/Release
################################

My apt-ftparchive config file:
################################
Dir {
   ArchiveDir "/data/debian";
};

Default {
   Packages::Compress ". gzip bzip2";
   Sources::Compress ". gzip bzip2";
   Contents::Compress ". gzip bzip2";
};

TreeDefault {
   BinCacheDB "packages-$(SECTION)-$(ARCH).db";
   Directory "pool/$(SECTION)";
   Packages "$(DIST)/$(SECTION)/binary-$(ARCH)/Packages";
   Contents "$(DIST)/Contents-$(ARCH)";
};

Tree "dists/testing" {
  Sections "main contrib non-free";
  Architectures "i386";
};
################################

My /etc/apt/preferences:
################################
Package: * 
Pin: release o=Local
Pin-Priority: 1001
################################

Output of apt-cache policy:
################################
...
 500 ftp://ftp.debian.nl testing/main Packages
     release o=Debian,a=testing,l=Debian,c=main
     origin ftp.debian.nl
1001 file: testing/non-free Packages
     release o=Local,a=testing,l=Debian,c=non-free
1001 file: testing/main Packages
     release o=Local,a=testing,l=Debian,c=main
Pinned packages:
################################

Hendrik

Attachment: pgp7iFC8ife1R.pgp
Description: PGP signature


Reply to: