apt-cache --installed fails to correctly deal with virtual packages

Bug #940848 reported by Hernando Torque
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When using the --installed switch of apt-cache, the result seems to be bad when it has to deal with virtual packages. E.g.:

$ apt-cache depends xfonts-base
xfonts-base
  Depends: xfonts-utils
 |Suggests: xfs
  Suggests: <xserver>
    tightvncserver
    vnc4server
    xnest
    xserver-xephyr
    xserver-xfbdev
    xserver-xorg
    xvfb
  Replaces: <xfonts-misc>
  Replaces: <xfonts-misc:i386>

Now with the --installed switch:

$ apt-cache --installed depends xfonts-base
xfonts-base
  Depends: xfonts-utils
    tightvncserver
    vnc4server
    xnest
    xserver-xephyr
    xserver-xfbdev
    xserver-xorg
    xvfb

It correctly removes "Suggests: <xserver>", but fails to remove all the content of the virtual package.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: apt 0.8.16~exp12ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Sat Feb 25 10:55:52 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110901)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hernando Torque (htorque) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
dino99 (9d9) wrote :

Get the same issue on Precise i386

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.