[Bug 508545] Re: Aptitude ignores /etc/apt/preferences.d/*

Rolf Leggewie 508545 at bugs.launchpad.net
Fri Oct 21 19:34:10 UTC 2011


Wesley, as you can see from my comment #23 I already have a pinning
preferences file.  And the correct values are picked up whether the file
is named /etc/apt/preferences or /etc/apt/preferences.d/preferences.
Therefore, as far as I am concerned the issue does not exist.

How about you run the following cadence instead with the old aptitude
package installed?

+--[ /etc/apt/preferences.d/lp508545 ]
|
| Package: *
| Pin: release a=lucid-proposed
| Pin-Priority: 99
|
+--

Then, show us the output of "apt-cache policy aptitude".  For me, that
snippet works in BOTH locations, i.e. no bug.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptitude in Ubuntu.
https://bugs.launchpad.net/bugs/508545

Title:
  Aptitude ignores /etc/apt/preferences.d/*

Status in aptitude:
  Fix Released
Status in “aptitude” package in Ubuntu:
  Fix Released
Status in “aptitude” source package in Lucid:
  Fix Committed

Bug description:
  Binary package hint: aptitude

  Aptitude honors pinning settings in /etc/apt/preferences, but ignores
  any settings in /etc/apt/preferences.d/*.

  To reproduce, add

   deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic
  main

  to your sources list and and entry of the form

    Package: *
    Pin: release o=LP-PPA-ubuntu-mozilla-daily
    Pin-Priority: 101

  to the preferences file and observe that aptitude will try to upgrade
  firefox if the setting is in /etc/apt/preferences.d/, and (correctly)
  stick with the karmic version of the setting is made in
  /etc/apt/preferences.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aptitude/+bug/508545/+subscriptions




More information about the foundations-bugs mailing list