Comment 0 for bug 508545

Revision history for this message
Nikolaus Rath (nikratio) wrote : Aptitude ignores apt_preferences

Binary package hint: aptitude

It seems that aptitude ignores settings in apt_preferences. In the following example, apt-get upgrade correctly does not upgrade anything, but aptitude incorrectly wants to upgrade some packages:

# cat /etc/apt/sources.list.d/ubuntu-mozilla-daily-ppa-karmic.list
deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main #Mozilla PPA

# cat /etc/apt/preferences.d/mozilla-ppa
Package: *
Pin: release o=LP-PPA-ubuntu-mozilla-daily
Pin-Priority: 101

# apt-cache policy firefox-3.5
firefox-3.5:
  Installed: 3.5.7+nobinonly-0ubuntu0.9.10.1
  Candidate: 3.5.7+nobinonly-0ubuntu0.9.10.1
  Version table:
     3.5.8~hg20100115r26722+nobinonly-0ubuntu2~umd1~karmic 0
        101 http://ppa.launchpad.net karmic/main Packages
 *** 3.5.7+nobinonly-0ubuntu0.9.10.1 0
        500 http://us.archive.ubuntu.com karmic-updates/main Packages
        500 http://security.ubuntu.com karmic-security/main Packages
        100 /var/lib/dpkg/status
     3.5.3+build1+nobinonly-0ubuntu6 0
        500 http://us.archive.ubuntu.com karmic/main Packages

# 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.

# aptitude upgrade
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
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:
  firefox-3.5 firefox-3.5-branding firefox-3.5-gnome-support
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1,191kB of archives. After unpacking 53.2kB will be freed.
Do you want to continue? [Y/n/?] n
Abort.