upgrade fails: trying to overwrite '/usr/bin/mkpasswd', which is also in package mkpasswd 5.0.6ubuntu1

Bug #632791 reported by Steve Beattie
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
whois (Ubuntu)
Fix Released
Critical
Mathias Gug
Maverick
Fix Released
Critical
Mathias Gug

Bug Description

Binary package hint: whois

The recent sync of whois is lacking a conflicts/replaces with the mkpasswd package, which was separated out by ubuntu in the lucid cycle to fix bug 284416. However, it was decided in bug 601803 to resume syncing whois with debian, but this breaks people who installed the mkpasswd package because mkpasswd is, you know, a useful utility.

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  whois
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/42.0kB of archives.
After this operation, 221kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 372258 files and directories currently installed.)
Preparing to replace whois 5.0.6ubuntu1 (using .../archives/whois_5.0.7_amd64.deb) ...
Unpacking replacement whois ...
dpkg: error processing /var/cache/apt/archives/whois_5.0.7_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/mkpasswd', which is also in package mkpasswd 5.0.6ubuntu1
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/whois_5.0.7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: whois 5.0.6ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-19.28-server 2.6.35.3
Uname: Linux 2.6.35-19-server x86_64
Architecture: amd64
Date: Tue Sep 7 16:50:00 2010
InstallationMedia: Ubuntu-Server 10.04 "Lucid Lynx" - Alpha amd64 (20100330)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: whois

Revision history for this message
Steve Beattie (sbeattie) wrote :
Thierry Carrez (ttx)
Changed in whois (Ubuntu):
assignee: nobody → Mathias Gug (mathiaz)
importance: Undecided → Critical
milestone: none → ubuntu-10.10
status: New → Confirmed
tags: added: server-mrs
Revision history for this message
Steve Beattie (sbeattie) wrote :

Attached is a debdiff to add replaces: mkpasswd. I've verified that it fixes the broken upgrade issue on a couple of hosts that have hit the issue.

Revision history for this message
Colin Watson (cjwatson) wrote :

I think you need to add "Conflicts: mkpasswd" as well, since we want the old mkpasswd package to be entirely replaced and removed. See Debian Policy 7.6.2.

Also, it would be helpful to include a note in the changelog saying that this change needs to be kept until after the next LTS release.

Revision history for this message
Steve Beattie (sbeattie) wrote :

Thanks for the feedback, Colin. Updated debdiff attached.

Mathias Gug (mathiaz)
Changed in whois (Ubuntu Maverick):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package whois - 5.0.7ubuntu1

---------------
whois (5.0.7ubuntu1) maverick; urgency=low

  * Add replaces/conflicts as mkpasswd is no longer a separate package.
    (LP: #632791)
  * NOTE: This needs to be kept until the next LTS release
    as mkpasswd is a published package in lucid.
 -- Steve Beattie <email address hidden> Tue, 07 Sep 2010 17:24:56 -0700

Changed in whois (Ubuntu Maverick):
status: In Progress → Fix Released
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.