[Bug 987161] Re: aptitude search reports outdated dependency

Daniel Hartwig 987161 at bugs.launchpad.net
Wed May 30 03:20:14 UTC 2012


This is by design.  To match only the dependencies of the installed package use the ?narrow term, such as:
$ aptitude search '?narrow(~i, ~Dlinux-image-2.6.32-40-generic)'

See the section Sections and Versions in the user manual for info.


** Changed in: aptitude (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptitude in Ubuntu.
https://bugs.launchpad.net/bugs/987161

Title:
  aptitude search reports outdated dependency

Status in “aptitude” package in Ubuntu:
  Invalid

Bug description:
  Seen in lucid after the latest kernel ABI upgrade to 2.6.32-41:

  $ aptitude search --disable-columns ~i~Dlinux-image-2.6.32-40-generic
  i  linux-image-generic - Generic Linux kernel image

  $ aptitude show linux-image-generic
  Package: linux-image-generic
  State: installed
  Automatically installed: no
  Version: 2.6.32.41.48
  Priority: optional
  Section: metapackages
  Maintainer: Ubuntu Kernel Team <kernel-team at lists.ubuntu.com>
  Uncompressed Size: 32.8k
  Depends: linux-image-2.6.32-41-generic, linux-firmware
  Description: Generic Linux kernel image
   This package will always depend on the latest generic kernel image available.

  Since the currently installed version of linux-image-generic does not
  depend on linux-image-2.6.32-40-generic, I would expect it NOT to be
  returned by a search for packages that depend on linux-
  image-2.6.32-40-generic.

  It doesn't matter whether I include ~i in the search filter or not. If
  I leave out ~i the output is naturally longer but still mentions
  linux-image-generic.

  It also doesn't matter whether linux-image-2.6.32-40-generic is still
  installed. The above gave identical results before and after I purged
  the package. One thing did change, though: after purging I see

  $ aptitude search --disable-columns -F '%r %p %v %V' linux-image-2.6.32-40-generic
  0 linux-image-2.6.32-40-generic <none> 2.6.32-40.87
  0 linux-image-2.6.32-40-generic-pae <none> 2.6.32-40.87

  but when linux-image-2.6.32-40-generic was still installed there was a
  1 in the %r column for it.

  Version information:
  $ lsb_release -rd
  Description:	Ubuntu 10.04.4 LTS
  Release:	10.04
  $ aptitude search --disable-columns -F '%p %v' '^aptitude$'
  aptitude 0.4.11.11-1ubuntu10lucid1
  $ aptitude --version
  aptitude 0.4.11.11 compiled at Oct 20 2011 13:35:11
  Compiler: g++ 4.4.3
  Compiled against:
    apt version 4.8.0
    NCurses version 5.7
    libsigc++ version: 2.2.4.2
    Ept support enabled.

  Current library versions:
    NCurses version: ncurses 5.7.20090803
    cwidget version: 0.5.13
    Apt version: 4.8.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/987161/+subscriptions




More information about the foundations-bugs mailing list