← Back to team overview

registry team mailing list archive

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

 

This bug also affects the Lucid version of aptitude. I tried with a file
in /etc/apt/preferences.d/ without extension and with .pref extension
and the bug still manifests.

# cat /etc/apt/preferences.d/test.pref
Package: libldap-2.4-2
Pin: release a=lucid-updates
Pin-Priority: -10

Package: libldap2-dev
Pin: release a=lucid-updates
Pin-Priority: -10

# aptitude safe-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
The following packages will be upgraded:
  libldap-2.4-2 libldap2-dev 
2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,189kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?]

# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.1 LTS
Release:	10.04
Codename:	lucid

# apt-cache policy aptitude
aptitude:
  Installed: 0.4.11.11-1ubuntu10
  Candidate: 0.4.11.11-1ubuntu10
  Version table:
 *** 0.4.11.11-1ubuntu10 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

-- 
Aptitude ignores /etc/apt/preferences.d/*
https://bugs.launchpad.net/bugs/508545
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for aptitude.