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

Bug#405279: marked as done (apt: can't get preferences to work correctly)



Your message dated Thu, 13 Aug 2015 15:40:32 +0200
with message-id <20150813153855.GA6969@debian.org>
and subject line Re: Bug#405279: apt: can't get preferences to work correctly
has caused the Debian Bug report #405279,
regarding apt: can't get preferences to work correctly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
405279: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=405279
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.6.46.4

I'm running a testing distribution.  I've got
www.debian-multimedia.org in my sources.list, but I want the Debian
version of mplayer to be used in preference to the debian-multimedia
version.

In my sources.list I have:

deb http://ftp.uk.debian.org/debian/ testing main contrib non-free
deb http://www.debian-multimedia.org testing main
[...]


In my /etc/apt/apt.conf I have the single line:

APT::Default-Release "testing";

and there's nothing relevant in /etc/apt/apt.conf.d/ .

In my /etc/apt/preferences I have:

Package: *
Pin: origin "www.debian-multimedia.org"
Pin-Priority: 50

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

But it doesn't work: it always tries to download the
www.debian-multimedia.org version (which has a higher version number
than the debian.org one).

The output of apt-cache policy includes:

 990 http://www.debian-multimedia.org testing/main Packages
     release o=Unofficial Multimedia Packages,a=testing,l=Unofficial Multimedia Packages,c=main
     origin www.debian-multimedia.org


What am I doing wrong?  Or is it a bug in APT?

Thanks,

   Julian


--- End Message ---
--- Begin Message ---
On Tue, Jan 02, 2007 at 10:06:48AM +0000, Julian Gilbey wrote:
> Package: apt
> Version: 0.6.46.4
> 
> I'm running a testing distribution.  I've got
> www.debian-multimedia.org in my sources.list, but I want the Debian
> version of mplayer to be used in preference to the debian-multimedia
> version.
> 
> In my sources.list I have:
> 
> deb http://ftp.uk.debian.org/debian/ testing main contrib non-free
> deb http://www.debian-multimedia.org testing main
> [...]
> 
> 
> In my /etc/apt/apt.conf I have the single line:
> 
> APT::Default-Release "testing";
> 
> and there's nothing relevant in /etc/apt/apt.conf.d/ .
> 
> In my /etc/apt/preferences I have:
> 
> Package: *
> Pin: origin "www.debian-multimedia.org"
> Pin-Priority: 50
> 
> Package: *
> Pin: release a=unstable
> Pin-Priority: 60
> 
> But it doesn't work: it always tries to download the
> www.debian-multimedia.org version (which has a higher version number
> than the debian.org one).
> 
> The output of apt-cache policy includes:
> 
>  990 http://www.debian-multimedia.org testing/main Packages
>      release o=Unofficial Multimedia Packages,a=testing,l=Unofficial Multimedia Packages,c=main
>      origin www.debian-multimedia.org
> 
> 
> What am I doing wrong?  Or is it a bug in APT?
> 

Thanks for your bug report. The value of APT::Default-Release
overrides any pin specified in the preferences file, and your
Default-Release was testing, so the 990 pin for the default
release was applied to www.debian-multimedia.org as well.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
    - If you don't I might ignore you.

--- End Message ---

Reply to: