Aptitude ignores /etc/apt/preferences.d/*
Bug #508545 reported by
Nikolaus Rath
This bug affects 43 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptitude |
Fix Released
|
Unknown
|
|||
aptitude (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: aptitude
Aptitude honors pinning settings in /etc/apt/
To reproduce, add
deb http://
to your sources list and and entry of the form
Package: *
Pin: release o=LP-PPA-
Pin-Priority: 101
to the preferences file and observe that aptitude will try to upgrade firefox if the setting is in /etc/apt/
Related branches
Changed in aptitude (Ubuntu): | |
status: | New → Confirmed |
summary: |
- Aptitude ignores apt_preferences + Aptitude ignores apt_preferences.d/* |
summary: |
- Aptitude ignores apt_preferences.d/* + Aptitude ignores preferences.d/* |
description: | updated |
description: | updated |
Changed in aptitude: | |
status: | Unknown → New |
summary: |
- Aptitude ignores preferences.d/* + Aptitude ignores /etc/apt/preferences.d/* |
Changed in aptitude: | |
status: | New → Fix Committed |
Changed in aptitude: | |
status: | Fix Committed → Fix Released |
tags: | added: glucid lucid |
tags: | added: maverick |
tags: |
added: verification-done removed: verification-needed |
To post a comment you must log in.
I can confirm this bug. (or I am doing something completely wrong)
summary:
I would like to install one package from karmic-proposed and all other packages from karmic, karmic-updates, or karmic-security. I added the karmic-proposed repository to sources, and a pinning block to apt/prferences.d. The command "apt-cache policy" shows the packages from karmic-proposed at a low priority. The command "apt-get upgrade" respects the priorities. The command "aptitude safe-upgrade" does not respect the priorities and attempts to upgrade all packages from karmic-proposed.
As seen below apt-cache policy reports that the package "cups" (chosen for example) should be install/upgraded from the karmic-security archive. The command apt-get upgrade reports that all packages are up to date as expected. The command aptitude safe-upgrade attempts to install 64 news packages which goes against the policy set in apt/preferences .d/local- pin
Ubuntu: karmic
platform: amd64
All packages up to date from karmic, karmic-updates, karmic-security as of 1 Feb 2010.
Package: aptitude
Version: 0.4.11.11-1ubuntu6
Package: apt
Version: 0.7.23.1ubuntu2
/etc/apt/ preferences. d/local- pin
Package: *
Pin: release a=karmic-proposed
Pin-Priority: 50
/etc/apt/ sources. list ca.archive. ubuntu. com/ubuntu/ karmic main restricted universe ca.archive. ubuntu. com/ubuntu/ karmic-security main restricted universe ca.archive. ubuntu. com/ubuntu/ karmic-updates main restricted universe ca.archive. ubuntu. com/ubuntu/ karmic multiverse ca.archive. ubuntu. com/ubuntu/ karmic-updates multiverse security. ubuntu. com/ubuntu karmic-security multiverse ca.archive. ubuntu. com/ubuntu/ karmic-proposed main multiverse universe
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
$ apt-cache policy cups 4.1-5ubuntu2. 2 0 ca.archive. ubuntu. com karmic- proposed/ main Packages ca.archive. ubuntu. com karmic- security/ main Packages ca.archive. ubuntu. com karmic-updates/main Packages dpkg/status ca.archive. ubuntu. com karmic/main Packages
cups:
Installed: 1.4.1-5ubuntu2.1
Candidate: 1.4.1-5ubuntu2.1
Version table:
1.
50 http://
*** 1.4.1-5ubuntu2.1 0
500 http://
500 http://
100 /var/lib/
1.4.1-5ubuntu2 0
500 http://
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo aptitude safe-upgrade headers- 2.6.31- 18{a} linux-headers- 2.6.31- 18-generic{ a} image-2. 6.31-18- generic{ a} games-common gnome-mahjongg gnome-power-manager gnome-sudoku
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Resolving dependencies...
Resolving dependencies...
The following NEW packages will be installed:
linux-
linux-
The following packages will be upgraded:
aisleriot compiz-core compiz-gnome compiz-plugins compiz-wrapper cups
cups-bsd cups-client cups-common cups-ppdc cupsddk devicekit-power
glchess glines gnect gnibbles gnobots2 gnome-blackjack gnome-games
gnome-
gnometris gnomine gnotravex gno...