conflict between getopt and util-linux packages

Bug #312064 reported by Jason Upton
4
Affects Status Importance Assigned to Milestone
Nexenta Operating System
Fix Released
Medium
Jason Upton

Bug Description

NCP2 Beta1 b104+

# cat /etc/issue
NexentaCore 2.0 Beta 1 (Hardy 8.04/b104+)

with the "getopt" package already installed, an "apt-get dist-upgrade" fails with a package conflict due to wanting to install the "util-linux" package:

# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  util-linux
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.6kB of archives.
After this operation, 101kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://apt.nexenta.org hardy-unstable/main util-linux 2.12r-4nexenta7 [35.6kB]
Fetched 35.6kB in 0s (156kB/s)
(Reading database ... 24597 files and directories currently installed.)
Unpacking util-linux (from .../util-linux_2.12r-4nexenta7_solaris-i386.deb) ...
dpkg: error processing /var/cache/apt/archives/util-linux_2.12r-4nexenta7_solaris-i386.deb (--unpack):
 trying to overwrite `/usr/bin/getopt', which is also in package getopt
Errors were encountered while processing:
 /var/cache/apt/archives/util-linux_2.12r-4nexenta7_solaris-i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Tim Spriggs (tim-tajinc) wrote :

This should be a quick fix for someone willing to add a diversion to the getopt package.

Revision history for this message
Jason Upton (wavejumper00) wrote :

dpkg-divert added to debian/preinst and debian/postrm files like in the m4 package. Rebuilt and uploaded.

Revision history for this message
Tim Spriggs (tim-tajinc) wrote :

I still get this when upgrading:

Unpacking util-linux (from .../util-linux_2.12r-4nexenta7_solaris-i386.deb) ...
dpkg: error processing /var/cache/apt/archives/util-linux_2.12r-4nexenta7_solaris-i386.deb (--unpack):
 trying to overwrite `/usr/bin/getopt', which is also in package getopt

Revision history for this message
Tim Spriggs (tim-tajinc) wrote :

Seems the repository snapshot containing the uploaded package was not released. The new getopt package does implement the divert correctly.

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

Other bug subscribers

Related blueprints

Remote bug watches

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