Subject: aptitude accepts /etc/apt/preferences but ignores /etc/apt/preferences.d/* Package: aptitude Version: 0.6.1.3-3 Severity: normal
On a mixed sid/testing system, the same text behaves differently whether
placed in /etc/apt/preferences or in /etc/apt/preferences.d/pinning.
apt-get respects files placed in either location, and apt-cache policy
also shows the expected behavior. aptitude alone behaves this way.
I saw the same behavior on version 0.4.11.11-1+b2, and tried upgrading
to 0.6.1.3-3 to see if it was fixed in sid, but the misbehavior remains.
below is an example transcript showing the misbehavior.
0 attica:~# apt-cache policy libxapian15
libxapian15:
Installed: 1.0.16-3
Candidate: 1.0.16-3
Version table:
1.0.17-1 0
200 http://ftp.us.debian.org sid/main Packages
*** 1.0.16-3 0
500 http://ftp.us.debian.org squeeze/main Packages
100 /var/lib/dpkg/status
0 attica:~# cat /etc/apt/preferences
Package: *
Pin: release a=unstable
Pin-Priority: 200
0 attica:~# mv /etc/apt/preferences /etc/apt/preferences.d/pinning
0 attica:~# apt-cache policy libxapian15
libxapian15:
Installed: 1.0.16-3
Candidate: 1.0.16-3
Version table:
1.0.17-1 0
200 http://ftp.us.debian.org sid/main Packages
*** 1.0.16-3 0
500 http://ftp.us.debian.org squeeze/main Packages
100 /var/lib/dpkg/status
0 attica:~# aptitude full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information... Done
Initializing package states... Done
Reading task descriptions... Done
The following packages are BROKEN:
esound-common libesd-alsa0 libesd0 linux-image-2.6-powerpc
The following NEW packages will be installed:
dash{a} keyboard-configuration{a} libffi-dev{a} libgsl0ldbl{a}
liblzma0{a} liblzma1{a} libmagickcore2-extra{a} libmozjs2d{a}
libneon27-gnutls{a} libpoppler5{a} rpm-common{a} rpm2cpio{a}
The following packages will be REMOVED:
haskell-utils{u} libmozjs1d{u} libncurses5-dev{u} libneon27{u}
libpoppler4{u} libreadline5-dev{u} xulrunner-1.9{u}
The following packages will be upgraded:
apt-utils bash bsdmainutils console-setup console-terminus consolekit
coreutils cpp cpp-4.3 cups cups-client cups-common debianutils defoma
devscripts dpkg dpkg-dev esound-clients fakeroot fbset foomatic-db-engine
gcc gcc-4.3 gcc-4.3-base gcc-4.4-base ghc6 gimp gimp-data gnome-keyring
gvfs iceweasel imagemagick inkscape libboost-iostreams1.40.0
libck-connector0 libcups2 libcupscgi1 libcupsdriver1 libcupsimage2
libcupsmime1 libcupsppdc1 libcwidget3 libdb4.5 libeggdbus-1-0
libenchant1c2a libevent-1.4-2 libexif12 libgcc1 libgcr0 libgdbm3
libgfortran3 libgimp2.0 libgirepository1.0-0 libgnome-keyring0
libgnome2-0 libgnome2-common libgnutls26 libgomp1 libgp11-0 libgraphviz4
libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libmagick++2
libmagickcore2 libmagickwand2 libmysqlclient16 libnautilus-extension1
libpam-ck-connector libpam-gnome-keyring libpango1.0-0 libpango1.0-common
libperl5.10 libpolkit-gobject-1-0 libpoppler-glib4 librpm0 librpmbuild0
librpmio0 libsasl2-2 libsasl2-modules libsepol1 libssl0.9.8 libstdc++6
libudev0 libv4l-0 libvte-common libvte9 libxapian15 libxmmsclient-glib1
libxmmsclient5 ltrace lxde lxde-common lxde-core manpages manpages-dev
manpages-fr manpages-fr-dev mysql-common nano openoffice.org-common
openoffice.org-core openoffice.org-gtk openoffice.org-style-crystal
openoffice.org-style-galaxy openoffice.org-style-oxygen
openoffice.org-style-tango openssl p7zip-full perl perl-base perl-modules
perlmagick pm-utils poppler-utils psfontmgr python-central
python-gtkhtml2 python-pyorbit python2.5 python2.5-minimal rpm
ttf-opensymbol tzdata ucf udev uno-libs3 ure xmms2-core xmms2-plugin-alsa
xmms2-plugin-id3v2 xmms2-plugin-mad xmms2-plugin-vorbis
xserver-xorg-input-synaptics
The following packages are RECOMMENDED but will NOT be installed:
at bash-completion bsd-mailx build-essential bzr cvs cvsnt dctrl-tools
debian-keyring debian-maintainers dput dupload equivs git-core
heirloom-mailx libauthen-sasl-perl libcrypt-ssleay-perl
libparse-debcontrol-perl libsoap-lite-perl libterm-size-perl libwww-perl
libyaml-syck-perl lintian lsb-release mailutils mercurial patchutils
subversion svk tla wdiff
135 packages upgraded, 15 newly installed, 7 to remove and 0 not upgraded.
Need to get 250MB of archives. After unpacking 13.9MB will be used.
The following packages have unmet dependencies:
libesd-alsa0: Conflicts: libesd0 but 0.2.41-6 is to be installed.
esound-common: Conflicts: libesd-alsa0 but 0.2.41-5 is installed.
libesd0: Conflicts: libesd-alsa0 but 0.2.41-5 is installed.
linux-image-2.6-powerpc: Depends: linux-image-2.6.31-1-powerpc which is a virt
ual package.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
esound-clients [0.2.41-5 (testing, now)]
esound-common [0.2.41-5 (testing, now)]
libesd0 [Not Installed]
linux-image-2.6-powerpc [2.6.30+21 (testing, now)]
Tier: Safe actions (10000)
Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
0 attica:~# mv /etc/apt/preferences.d/pinning /etc/apt/preferences
0 attica:~# aptitude full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information... Done
Initializing package states... Done
Reading task descriptions... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information... Done
Initializing package states... Done
Reading task descriptions... Done
0 attica:~#
here's plain ol' apt-get behaving properly:
1 attica:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
dash
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 101kB of archives.
After this operation, 250kB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
1 attica:~# mv /etc/apt/preferences /etc/apt/preferences.d/pinning
0 attica:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
dash
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 101kB of archives.
After this operation, 250kB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
1 attica:~#
Thanks for maintaining aptitude!
--dkg
-- Package-specific info:
aptitude 0.6.1.3 compiled at Nov 20 2009 20:16:43
Compiler: g++ 4.3.4
Compiled against:
apt version 4.8.1
NCurses version 5.7
libsigc++ version: 2.0.18
Ept support enabled.
Gtk+ support disabled.
Current library versions:
NCurses version: ncurses 5.7.20090803
cwidget version: 0.5.13
Apt version: 4.8.1
linux-vdso32.so.1 => (0x00100000)
libapt-pkg-libc6.9-6.so.4.8 => /usr/lib/libapt-pkg-libc6.9-6.so.4.8
(0x0feff000)
libncursesw.so.5 => /lib/libncursesw.so.5 (0x0fe8e000)
liblog4cxx.so.10 => /usr/lib/liblog4cxx.so.10 (0x0fc76000)
libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x0fc4f000)
libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x0fb57000)
libept.so.0 => /usr/lib/libept.so.0 (0x0fab0000)
libxapian.so.15 => /usr/lib/libxapian.so.15 (0x0f908000)
libz.so.1 => /usr/lib/libz.so.1 (0x0f8d3000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x0f81c000)
libboost_iostreams.so.1.40.0 => /usr/lib/libboost_iostreams.so.1.40.0
(0x0f7ef000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0f7b5000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0f669000)
libm.so.6 => /lib/libm.so.6 (0x0f59b000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0f560000)
libc.so.6 => /lib/libc.so.6 (0x0f3d1000)
libutil.so.1 => /lib/libutil.so.1 (0x0f3ae000)
libdl.so.2 => /lib/libdl.so.2 (0x0f38a000)
libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0x0f343000)
libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x0f2e2000)
libuuid.so.1 => /lib/libuuid.so.1 (0x0f2bd000)
librt.so.1 => /lib/librt.so.1 (0x0f294000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x0f243000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x0f210000)
/lib/ld.so.1 (0x203ec000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x0f1c2000)
Terminal: screen
$DISPLAY not set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:
aptitude linkage:
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (200, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.30-2-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages aptitude depends on:
ii apt [libapt-pkg-libc6. 0.7.24 Advanced front-end for dpkg
ii libboost-iostreams1.40 1.40.0-2 Boost.Iostreams Library
ii libc6 2.10.1-7 GNU C Library: Shared libraries
ii libcwidget3 0.5.13-1 high-level terminal interface libr
ii libept0 0.5.29 High-level library for managing De
ii libgcc1 1:4.4.1-4 GCC support library
ii liblog4cxx10 0.10.0-1 A logging library for C++
ii libncursesw5 5.7+20090803-2 shared libraries for terminal hand
ii libsigc++-2.0-0c2a 2.0.18-2 type-safe Signal Framework for C++
ii libsqlite3-0 3.6.20-1 SQLite 3 shared library
ii libstdc++6 4.4.1-4 The GNU Standard C++ Library v3
ii libxapian15 1.0.16-3 Search engine library
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
Versions of packages aptitude recommends:
pn apt-xapian-index <none> (no description available)
pn aptitude-doc-en | aptitude-do <none> (no description available)
pn libparse-debianchangelog-perl <none> (no description available)
ii sensible-utils 0.0.1 Utilities for sensible alternative
Versions of packages aptitude suggests:
pn debtags <none> (no description available)
ii tasksel 2.80 Tool for selecting tasks for insta
-- no debconf information
signature.asc
Description: OpenPGP digital signature

