Package conflict check does not take Replaces field into account

Bug #1021320 reported by Todd C. Miller
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

software-center 5.2.3 on Ubuntu 12.04 LTS

Description:

An attempt to install a new package that replaces an existing one will fail if the existing package has the new package listed as a conflict, even if the new packages has a proper Replaces field in the control file.

To reproduce:

Download the "sudo-ldap" package (e.g. apt-get download sudo-ldap) and attempt to install it when the stock "sudo" package is installed. Software center will refuse to install with the following error message:

    Breaks existing package "sudo" conflict: sudo-ldap ()

Works fine when installed via apt-get.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: software-center 5.2.3
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic-pae 3.2.19
Uname: Linux 3.2.0-26-generic-pae i686
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Thu Jul 5 10:07:53 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: software-center
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Todd C. Miller (todd-miller) wrote :
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Hi Todd, and thank you for your report. Unfortunately, I cannot reproduce the issue that you describe. When I try to install sudo-ldap, I get the proper package installation warning dialog as shown in the attached screenshot.

Is your system fully up-to-date? Could you please retry and let us know if you continue to see the error dialog and not the info dialog as per my screenshot.

Many thanks for your help!
Gary

Changed in software-center (Ubuntu):
status: New → Incomplete
Revision history for this message
Todd C. Miller (todd-miller) wrote : Re: [Bug 1021320] Re: Package conflict check does not take Replaces field into account

On Mon, 09 Jul 2012 15:58:02 -0000, Gary Lasker wrote:

> Hi Todd, and thank you for your report. Unfortunately, I cannot
> reproduce the issue that you describe. When I try to install sudo-ldap,
> I get the proper package installation warning dialog as shown in the
> attached screenshot.
>
> Is your system fully up-to-date? Could you please retry and let us know
> if you continue to see the error dialog and not the info dialog as per
> my screenshot.

Interesting. When I search for sudo-ldap under "All software" and
click "install" I get the same dialog as you.

However, if I try to install the .deb file explicitly, e.g.

    $ software-center sudo-ldap_1.8.3p1-1ubuntu3.3_i386.deb

I get an error about the conflict and am not given a chance to
install it.

This is with all 12.04 updates applied.

 - todd

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I'm not sure, but this looks like a duplicate of bug 934587.

Revision history for this message
Todd C. Miller (todd-miller) wrote :

On Mon, 16 Jul 2012 07:39:53 -0000, Matthew Paul Thomas wrote:

> I'm not sure, but this looks like a duplicate of bug 934587.

Yes, it sounds like the same problem, though in my case I don't see
the install button at all. It should probably be marked as a
duplicate of 934587.

 - todd

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.