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

Bug#256829: Preferences origin attribute ignored



I'm trying to debug an apt problem now which this bug appears related to.  It
seems to me that the Release files are completely ignored if you're running
through an apt proxy.

For example, I removed the Release files from the apt proxy archive and run
"apt-get update".  It claims a hit on the files (even though the files do not
exist).  I force an update by removing the Packages/Release/Sources files from
/var/lib/apt/lists/ and running "apt-get update" again.

Still, the policy does not show what the preferences file dictates, eg I pin
unstable at 900 and experimental at -10 (or whatever value, it doesn't matter -
nothing makes a difference) however the policy says they're both at the default
500.  And, in fact, it shows "origin fqdn.of.my.apt.proxy" but none of the
other options in the Release file.  But non-US does!  Look:

--- snip /etc/apt/preferences ---
Package: *
Pin: origin www.os-works.com
Pin-Priority: 999

Package: enlightenment
Pin: version 0.16.999*
Pin-Priority: 999

Package: enlightenment-data
Pin: version 0.16.999*
Pin-Priority: 999

Package: *
Pin: release o=Christian Marillat
Pin-Priority: 800

Package: *
Pin: release a=unstable
Pin-Priority: 900

Package: *
Pin: release a=experimental
Pin-Priority: 600

Package: *
Pin: release o=Debian
Pin-Priority: -10

--- snip apt-cache policy output ---

Package Files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://soulmachine.net unstable/ Packages
     origin soulmachine.net
 500 http://people.debian.org unstable/ Packages
     release o=Norbert Tretkowski,l=nobse
     origin people.debian.org
 990 http://www.lxtec.de binary-i386/ Packages
     release o=LXTEC Network,a=unstable,l=LXTEC,c=lxtec
     origin www.lxtec.de
 500 http://debian.intology.com.au unstable/main Packages
     release v=2005.03.19.20.15.12,o=www.os-cillation.com,a=sarge,l=os-cillation Debian repositry,c=main
     origin debian.intology.com.au
 500 http://debian.intology.com.au ./ Packages
     origin debian.intology.com.au
 990 http://debian.intology.com.au unstable/main Packages
     release o=Christian Marillat,a=unstable,l=Unofficial Packages Free,c=main
     origin debian.intology.com.au
 500 http://debian.intology.com.au ../project/experimental/non-free Packages
     origin debian.intology.com.au
 500 http://debian.intology.com.au ../project/experimental/contrib Packages
     origin debian.intology.com.au
 500 http://debian.intology.com.au ../project/experimental/main Packages
     origin debian.intology.com.au
 990 http://debian.intology.com.au sid/non-US/non-free Packages
     release o=Debian,a=unstable,l=Debian,c=non-US/non-free
     origin debian.intology.com.au
 990 http://debian.intology.com.au sid/non-US/contrib Packages
     release o=Debian,a=unstable,l=Debian,c=non-US/contrib
     origin debian.intology.com.au
 990 http://debian.intology.com.au sid/non-US/main Packages
     release o=Debian,a=unstable,l=Debian,c=non-US/main
     origin debian.intology.com.au
 500 http://debian.intology.com.au sid/non-free Packages
     origin debian.intology.com.au
 500 http://debian.intology.com.au sid/contrib Packages
     origin debian.intology.com.au
 500 http://debian.intology.com.au sid/main Packages
     origin debian.intology.com.au
Pinned Packages:
     enlightenment-data -> 0.16.999.005-0cvs20050429
     enlightenment -> 0.16.999.005-0cvs20050429

--- end snip ---

Look what happens if I edit my preferences thusly:

--- snip /etc/apt/preferences ---

Package: *
Pin: origin www.os-works.com
Pin-Priority: 999

Package: enlightenment
Pin: version 0.16.999*
Pin-Priority: 999

Package: enlightenment-data
Pin: version 0.16.999*
Pin-Priority: 999

Package: *
Pin: release o=Christian Marillat
Pin-Priority: 800

Package: *
Pin: release a=unstable
Pin-Priority: 900

Package: *
Pin: release a=experimental
Pin-Priority: 600

Package: *
Pin: origin debian.intology.com.au
Pin-Priority: -10

--- snip apt-cache policy ---

Package Files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://soulmachine.net unstable/ Packages
     origin soulmachine.net
 500 http://people.debian.org unstable/ Packages
     release o=Norbert Tretkowski,l=nobse
     origin people.debian.org
 990 http://www.lxtec.de binary-i386/ Packages
     release o=LXTEC Network,a=unstable,l=LXTEC,c=lxtec
     origin www.lxtec.de
 -10 http://debian.intology.com.au unstable/main Packages
     release v=2005.03.19.20.15.12,o=www.os-cillation.com,a=sarge,l=os-cillation Debian repositry,c=main
     origin debian.intology.com.au
 -10 http://debian.intology.com.au ./ Packages
     origin debian.intology.com.au
 990 http://debian.intology.com.au unstable/main Packages
     release o=Christian Marillat,a=unstable,l=Unofficial Packages Free,c=main
     origin debian.intology.com.au
 -10 http://debian.intology.com.au ../project/experimental/non-free Packages
     origin debian.intology.com.au
 -10 http://debian.intology.com.au ../project/experimental/contrib Packages
     origin debian.intology.com.au
 -10 http://debian.intology.com.au ../project/experimental/main Packages
     origin debian.intology.com.au
 990 http://debian.intology.com.au sid/non-US/non-free Packages
     release o=Debian,a=unstable,l=Debian,c=non-US/non-free
     origin debian.intology.com.au
 990 http://debian.intology.com.au sid/non-US/contrib Packages
     release o=Debian,a=unstable,l=Debian,c=non-US/contrib
     origin debian.intology.com.au
 990 http://debian.intology.com.au sid/non-US/main Packages
     release o=Debian,a=unstable,l=Debian,c=non-US/main
     origin debian.intology.com.au
 -10 http://debian.intology.com.au sid/non-free Packages
     origin debian.intology.com.au
 -10 http://debian.intology.com.au sid/contrib Packages
     origin debian.intology.com.au
 -10 http://debian.intology.com.au sid/main Packages
     origin debian.intology.com.au
Pinned Packages:
     enlightenment-data -> 0.16.999.005-0cvs20050429
     enlightenment -> 0.16.999.005-0cvs20050429
--- end snip ---

FWIW I'm running apt 0.5.28.6, the proxy is approx 1.12 on another machine.  My
sources.list reads:

--- snip /etc/apt/sources.list ---

deb http://debian.intology.com.au:9999/debian sid main contrib non-free
deb-src http://debian.intology.com.au:9999/debian sid main contrib non-free
deb http://debian.intology.com.au:9999/debian-non-US sid/non-US main contrib non-free
deb-src http://debian.intology.com.au:9999/debian-non-US sid/non-US main contrib non-free
deb http://debian.intology.com.au:9999/debian ../project/experimental main contrib non-free
deb-src http://debian.intology.com.au:9999/debian ../project/experimental main contrib non-free
deb http://debian.intology.com.au:9999/marillat	unstable main
deb-src http://debian.intology.com.au:9999/marillat	unstable main
deb http://debian.intology.com.au:9999/dricvs	./
deb-src	http://debian.intology.com.au:9999/dricvs	./
deb http://debian.intology.com.au:9999/xfce42	unstable main
deb-src http://debian.intology.com.au:9999/xfce42	unstable main
deb http://www.lxtec.de/debarchiv binary-i386/
deb-src http://www.lxtec.de/debarchiv sources/
deb http://people.debian.org/~nobse/debian/ unstable/
deb http://soulmachine.net/debian/ unstable/

--- end snip ---

Even the entry for Christian Marillat's archive makes no sense, its policy
appears to be 990 yet preferences is dictating 800.

Whiskey Tango Foxtrot?

-- 
Matt

Attachment: pgpS70rGBqFBO.pgp
Description: PGP signature


Reply to: