Package: aptitude Version: 0.4.11.11-1+b2 Severity: normal Hi,
if a new version of package foo introduces a Breaks: foo (<< 1.2), but only older versions of foo are available, aptitude full-upgrade will suggest to downgrade foo and bar instead of keeping the current version: % apt-cache show libdatetime-locale-perl | grep -e % '^Version:\|^Breaks:\|^$' Version: 1:0.45-1+ab1 Breaks: libdatetime-format-strptime-perl (<< 1.2000) Version: 1:0.44-1 Version: 1:0.35-1+1.5.0 % apt-cache show libdatetime-format-strptime-perl | grep -e '^Version:' Version: 1.1000-1 Version: 1.0702-2 % dpkg -l libdatetime-locale-perl | grep ii ii libdatetime-locale-perl 1:0.44-1 [...] # aptitude full-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following packages are BROKEN: libdatetime-locale-perl 1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/2272kB of archives. After unpacking 4096B will be freed. The following packages have unmet dependencies: libdatetime-locale-perl: Breaks: libdatetime-format-strptime-perl (< 1.2000) but 1.1000-1 is installed. The following actions will resolve these dependencies: Downgrade the following packages: libdatetime-format-strptime-perl [1.1000-1 (testing, unstable, now) -> 1.0702-2 (stable)] libdatetime-locale-perl [1:0.44-1 (testing, unstable, now) -> 1:0.35-1+1.5.0 (stable)] Score is -10 Accept this solution? [Y/n/q/?] n The following actions will resolve these dependencies: Remove the following packages: libcatalyst-modules-perl libdatetime-format-builder-perl libdatetime-format-iso8601-perl libdatetime-format-strptime-perl libhtml-formfu-model-dbic-perl libhtml-formfu-perl pak2deb Score is -547 Accept this solution? [Y/n/q/?] n Setting Aptitude::ProblemResolver::Discard-Null-Solution=false makes aptitude suggest to keep the currently installed version instead of downgrading: # aptitude -oAptitude::ProblemResolver::Discard-Null-Solution=false full-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following packages are BROKEN: libdatetime-locale-perl 1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/2272kB of archives. After unpacking 4096B will be freed. The following packages have unmet dependencies: libdatetime-locale-perl: Breaks: libdatetime-format-strptime-perl (< 1.2000) but 1.1000-1 is installed. The following actions will resolve these dependencies: Keep the following packages at their current version: libdatetime-locale-perl [1:0.44-1 (testing, unstable, now)] Score is 60 Accept this solution? [Y/n/q/?] I think aptitude should prefer to keep the currently installed version over downgrading (at least when calling aptitude full-upgrade), even when this means no action at all will be taken. Regards, Ansgar PS: I'm not sure if this is the same issue as #338386 so I reported a seperate bug. -- Package-specific info: aptitude 0.4.11.11 compiled at Aug 3 2009 16:22:21 Compiler: g++ 4.3.3 Compiled against: apt version 4.8.0 NCurses version 5.7 libsigc++ version: 2.0.18 Ept support enabled. Current library versions: NCurses version: ncurses 5.7.20090803 cwidget version: 0.5.16 Apt version: 4.8.0 linux-vdso.so.1 => (0x00007fff129ff000) libapt-pkg-libc6.9-6.so.4.8 => /usr/lib/libapt-pkg-libc6.9-6.so.4.8 (0x00007f8d38861000) libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007f8d38610000) libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x00007f8d3840a000) libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007f8d3813e000) libept.so.0 => /usr/lib/libept.so.0 (0x00007f8d37ec7000) libxapian.so.15 => /usr/lib/libxapian.so.15 (0x00007f8d37b75000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f8d3795e000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f8d37742000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f8d37431000) libm.so.6 => /lib/libm.so.6 (0x00007f8d371af000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f8d36f99000) libc.so.6 => /lib/libc.so.6 (0x00007f8d36c44000) libutil.so.1 => /lib/libutil.so.1 (0x00007f8d36a41000) libdl.so.2 => /lib/libdl.so.2 (0x00007f8d3683d000) /lib64/ld-linux-x86-64.so.2 (0x00007f8d38b40000) Terminal: xterm $DISPLAY is set. `which aptitude`: /usr/bin/aptitude aptitude version information: aptitude linkage: -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (900, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages aptitude depends on: ii apt [libapt-pkg-libc6.9 0.7.25.3 Advanced front-end for dpkg ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib ii libcwidget3 0.5.16-3 high-level terminal interface libr ii libept0 0.5.30 High-level library for managing De ii libgcc1 1:4.4.2-9 GCC support library ii libncursesw5 5.7+20090803-2 shared libraries for terminal hand ii libsigc++-2.0-0c2a 2.2.4.2-1 type-safe Signal Framework for C++ ii libstdc++6 4.4.2-9 The GNU Standard C++ Library v3 ii libxapian15 1.0.18-1 Search engine library ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages aptitude recommends: ii aptitude-doc-en [aptitude-do 0.4.11.11-1 English manual for aptitude, a ter ii libparse-debianchangelog-per 1.1.1-2 parse Debian changelogs and output Versions of packages aptitude suggests: ii debtags 1.7.9+b2 Enables support for package tags ii tasksel 2.81 Tool for selecting tasks for insta -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org