Broken dependency checking on software removal (does not handle or-depends)

Bug #437870 reported by João Pinto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Binary package hint: software-center

If you install 7zip and then try to remove it you will get a dialog saying that file-roller will need to be removed.
a) 7zip is not a depedency of file-roller
b) probably because of a) file-roller is not removed even if you choose to proceed

ProblemType: Bug
Architecture: amd64
Date: Sun Sep 27 23:34:20 2009
DistroRelease: Ubuntu 9.10
Package: software-center 0.4.0 (and 1.1.7 on lucid)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: software-center
Uname: Linux 2.6.31-11-generic x86_64

Revision history for this message
João Pinto (joaopinto) wrote :
summary: - Removing 7zip erroneously reports that file-roller will be removed
+ Broken dependency checking on software removal
Revision history for this message
Michael Vogt (mvo) wrote :

The problem is:

Package: file-roller
Depends: libc6 (>= 2.4), libgconf2-4 (>= 2.23.2), libglib2.0-0 (>= 2.18.0), libgtk2.0-0 (>= 2.16.0), liblaunchpad-integration1 (>= 0.1.17), libnautilus-extension1 (>= 1:2.26.2), libpango1.0-0 (>= 1.14.0), gconf2 (>= 2.10.1-2), tar (>= 1.13.25), bzip2 (>= 1.0.1), gzip (>= 1.3.2), unzip | p7zip-full, zip | p7zip-full

p7zip-full is part of a or-dependency group and that is not handled (yet) with software-store in the dependency checking (the low-level code will do the right thing, just the display is wrong).

Changed in software-center (Ubuntu):
status: New → Confirmed
summary: - Broken dependency checking on software removal
+ Broken dependency checking on software removal (does not handle or-
+ depends)
Michael Vogt (mvo)
Changed in software-center (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

What is an "or-dependency group"? Does this require showing any interface that isn't designed yet, or does it just involve not showing the "These items must be removed as well" alert in some cases where it is currently shown?

Revision history for this message
João Pinto (joaopinto) wrote :

Matthew,
if you "apt-cache show file-roller" you get "..., unzip | p7zip-full, ...", the package depends on unzip or p7zip-full.

The dialog should not be shown if there is an alternative package installed to satisfy the dependency.

Kiwinote (kiwinote)
description: updated
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

You should use the Simulate method of a transaction to calculate the to be removed packages. Currently you just make a call to apt.Cache.get_installed_rdepends. This doesn't cover a full dependency resolution. Furthermore already queued transaction won't be taken into account. (see. distro/Ubuntu.py: get_removal_warning)

Changed in software-center (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

If you are still experiencing this bug, please:

1. Into the tag list, add the first name of the affected release
2. Set this bug status back to "confirmed".

Thank you.

Changed in software-center (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for software-center (Ubuntu) because there has been no activity for 60 days.]

Changed in software-center (Ubuntu):
status: Incomplete → Expired
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.