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:
# 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.
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 ppa.launchpad. net/ubuntu- mozilla- daily/ppa/ ubuntu karmic main #Mozilla PPA
deb http://
# cat /etc/apt/ preferences. d/mozilla- ppa ubuntu- mozilla- daily
Package: *
Pin: release o=LP-PPA-
Pin-Priority: 101
# apt-cache policy firefox-3.5 -0ubuntu0. 9.10.1 -0ubuntu0. 9.10.1 5.8~hg20100115r 26722+nobinonly -0ubuntu2~ umd1~karmic 0 ppa.launchpad. net karmic/main Packages -0ubuntu0. 9.10.1 0 us.archive. ubuntu. com karmic-updates/main Packages security. ubuntu. com karmic- security/ main Packages dpkg/status 5.3+build1+ nobinonly- 0ubuntu6 0 us.archive. ubuntu. com karmic/main Packages
firefox-3.5:
Installed: 3.5.7+nobinonly
Candidate: 3.5.7+nobinonly
Version table:
3.
101 http://
*** 3.5.7+nobinonly
500 http://
500 http://
100 /var/lib/
3.
500 http://
# 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 3.5-branding firefox- 3.5-gnome- support
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 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.