[Aptitude-devel] Bug#800570: aptitude: Shows wrong short and long description for "Obsolete and Locally Created Packages" in TUI

Axel Beckert abe at debian.org
Thu Oct 1 00:31:50 UTC 2015


Package: aptitude
Version: 0.7.2-1
Severity: important

So far I noticed the following only on one system running Debian
Testing. I cross-checked and I have at least one Debian Sid system
where this is not reproducible (by looking at the same "Obsolete and
Locally Created Packages" in the TUI).

The following is shown in aptitude's TUI for the
linux-image-4.2.0-trunk-amd64 packages which has been removed from
experimental just a few days ago:

---8<---
			 Packages                                       linux-image-4.2.0-trunk-amd64 info
aptitude 0.7.2                                            Will free 170 MB of disk space
i        --\ linux-image-4.2.0-trunk-amd64      0            169 MB   4.2-1~exp1               <none>
  Description: RPM build shared library
    The RPM Package Manager (RPM) is a command-line driven package management system capable of installing,
    uninstalling, verifying, querying, and updating computer software packages.

    This library provides an interface for building RPM packages.
  Homepage: http://rpm.org/
  Priority: optional
  Section: kernel
  Maintainer: Michal Čihař <nijel at debian.org>
  Architecture: amd64
  Compressed Size: 0
  Uncompressed Size: 169 M
  Source Package: rpm
  --\ Depends (4)
    --- debconf (>= 0.5) | debconf-2.0
    --- initramfs-tools (>= 0.110~) | linux-initramfs-tool
    --- kmod
    --- linux-base (>= 3~)
  --\ PreDepends (1)
    --- debconf | debconf-2.0
  --\ Suggests (3)
    --- debian-kernel-handbook (UNSATISFIED)
    --- grub-pc | grub-efi | extlinux (UNSATISFIED)
    --- linux-doc-4.2 (UNSATISFIED)
  --\ Recommends (2)
    --- firmware-linux-free (>= 3~)
    --- irqbalance
RPM build shared library
--->8---

The package name, section, uncompressed size and dependencies fit, but
short description, long description, Maintainer field, Source package
name and Homepage field are the one from a package built from the rpm
source package.

The same short and long description are also displayed in the package
list view, but neither with "aptitude search" nor with "aptitude show":

→ aptitude show linux-image-4.2.0-trunk-amd64
Package: linux-image-4.2.0-trunk-amd64
State: installed
Automatically installed: no
Version: 4.2-1~exp1
Priority: optional
Section: kernel
Maintainer: Debian Kernel Team <debian-kernel at lists.debian.org>
Architecture: amd64
Uncompressed Size: 169 M
Depends: kmod, linux-base (>= 3~), debconf (>= 0.5) | debconf-2.0, initramfs-tools (>= 0.110~) | linux-initramfs-tool
PreDepends: debconf | debconf-2.0
Recommends: firmware-linux-free (>= 3~), irqbalance
Suggests: linux-doc-4.2, debian-kernel-handbook, grub-pc | grub-efi | extlinux
Breaks: at (< 3.1.12-1+squeeze1), initramfs-tools (< 0.110~), udev (< 208-8~)
Provides: linux-modules-4.2.0-trunk-amd64
Description: Linux 4.2 for 64-bit PCs
 The Linux kernel 4.2 and modules for use on PCs with AMD64, Intel 64 or VIA Nano processors.

 This kernel also runs on a Xen hypervisor.  It supports both privileged (dom0) and unprivileged (domU) operation.
 Homepage: https://www.kernel.org/

I've also checked /var/lib/dpkg/status: It contains the correct and
expected short and long descriptions, too.

Looking into that file shows that the package coming directly after
linux-image-4.2.0-trunk-amd64 is librpmbuild3 -- which has the wrongly
shown short and long description. Both packages are installed.

Another case (same running aptitude instance):

---8<---
			 Packages                                       linux-image-4.1.0-trunk-amd64 info
aptitude 0.7.2                                            Will free 170 MB of disk space
ip       --\ linux-image-4.1.0-trunk-amd64      0  -170 MB   170 MB   4.1.2-1~exp1             <none>
  Description: Perl module for merging hierarchies using the C3 algorithm
    The Algorithm::C3 module implements the C3 algorithm.

    C3 is the name of an algorithm which aims to provide a sane method resolution order under multiple inheritence. It
    was first introduced in the language Dylan, and then later adopted as the preferred MRO (Method Resolution Order)
    for the new-style classes in Python 2.3. Most recently it has been adopted as the 'canonical' MRO for Perl 6
    classes, and the default MRO for Parrot objects as well.
  Homepage: https://metacpan.org/release/Algorithm-C3
  Priority: optional
  Section: kernel
  Maintainer:
  Architecture: amd64
  Compressed Size: 0
  Uncompressed Size: 170 M
  Source Package: linux-image-4.1.0-trunk-amd64
  --\ Depends (4)
    --- debconf (>= 0.5) | debconf-2.0
    --- initramfs-tools (>= 0.110~) | linux-initramfs-tool
    --- kmod
    --- linux-base (>= 3~)
  --\ PreDepends (1)
    --- debconf | debconf-2.0
  --\ Suggests (3)
    --- debian-kernel-handbook (UNSATISFIED)
    --- grub-pc | grub-efi | extlinux (UNSATISFIED)
    --- linux-doc-4.1 (UNSATISFIED)
  --\ Recommends (2)
Perl module for merging hierarchies using the C3 algorithm
--->8---

Again, the short and long description are clearly wrong. But here the
Maintainer field's content is missing completely, but the Source
package field seems to be correct upon a first glance -- but it's a
binary package (the one which is displayed) and hence wrong, too.

There are only two other packages listed in /var/lib/dpkg/status
between linux-image-4.1.0-trunk-amd64 and libalgorithm-c3-perl (namely
libdbus-1-3 and colorgcc, both installed, too).

Yet another case:

---8<---
			 Packages                                         linux-image-4.0.0-2-amd64 info
aptitude 0.7.2                                            Will free 170 MB of disk space
i        --\ linux-image-4.0.0-2-amd64          0            170 MB   4.0.8-2                  <none>
  Description:

  Priority: optional
  Section: kernel
  Maintainer:
  Architecture: amd64
  Compressed Size: 0
  Uncompressed Size: 170 M
  Source Package: linux-image-4.0.0-2-amd64
  --\ Depends (4)
    --- debconf (>= 0.5) | debconf-2.0
    --- initramfs-tools (>= 0.110~) | linux-initramfs-tool
    --- kmod
    --- linux-base (>= 3~)
  --\ PreDepends (1)
    --- debconf | debconf-2.0
  --\ Suggests (3)
    --- debian-kernel-handbook (UNSATISFIED)
    --- grub-pc | grub-efi | extlinux (UNSATISFIED)
    --- linux-doc-4.0 (UNAVAILABLE)
  --\ Recommends (2)
    --- firmware-linux-free (>= 3~)
    --- irqbalance
  --\ Breaks (3)
    --- at (< 3.1.12-1+squeeze1)
    --- initramfs-tools (< 0.110~)
    --- udev (< 208-8~)

--->8---

Here the contents of the Maintainer fields as well as of the short and
long description are completely missing. The source package name is
again the binary package name of the shown package.

I've created an aptitude state-bundle (70 MB) which is available upon
request.

-- Package-specific info:
Terminal: xterm-256color
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.7.2 compiled at Sep 19 2015 16:51:55
Compiler: g++ 5.2.1 20150903
Compiled against:
  apt version 4.16.0
  NCurses version 6.0
  libsigc++ version: 2.4.1
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 6.0.20150810
  cwidget version: 0.5.17
  Apt version: 4.16.0

aptitude linkage:
	linux-vdso.so.1 (0x00007ffc5adfc000)
	libapt-pkg.so.4.16 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.16 (0x00007f19f7525000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f19f72f5000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f19f70ca000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f19f6ec4000)
	libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3 (0x00007f19f6bc5000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f19f68f7000)
	libboost_iostreams.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.58.0 (0x00007f19f66de000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007f19f62dc000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f19f60be000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f19f5d43000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f19f5a42000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f19f582b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f19f5482000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f19f527f000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f19f507a000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f19f4e5f000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f19f4c4f000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f19f4a2b000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f19f4823000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f19f461d000)
	/lib64/ld-linux-x86-64.so.2 (0x00005577fd96d000)

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (300, 'unstable'), (210, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages aptitude depends on:
ii  aptitude-common           0.7.2-1
ii  libapt-pkg4.16            1.0.10.2
ii  libboost-iostreams1.58.0  1.58.0+dfsg-3+b1
ii  libc6                     2.19-22
ii  libcwidget3v5             0.5.17-4
ii  libgcc1                   1:5.2.1-17
ii  libncursesw5              6.0+20150810-1
ii  libsigc++-2.0-0v5         2.4.1-2
ii  libsqlite3-0              3.8.11.1-1
ii  libstdc++6                5.2.1-17
ii  libtinfo5                 6.0+20150810-1
ii  libxapian22v5             1.2.21-1.2

Versions of packages aptitude recommends:
ii  aptitude-doc-en [aptitude-doc]  0.7.2-1
ii  libparse-debianchangelog-perl   1.2.0-8
ii  sensible-utils                  0.0.9

Versions of packages aptitude suggests:
pn  apt-xapian-index  <none>
pn  debtags           <none>
pn  tasksel           <none>

-- no debconf information



More information about the Aptitude-devel mailing list