Bug#747393: libsdformat2 and libsdformat1: error when trying to install together

Ralf Treinen treinen at free.fr
Thu May 8 08:32:52 UTC 2014


Package: libsdformat1,libsdformat2
Version: libsdformat1/1.4.11-1
Version: libsdformat2/2.0.0-2
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2014-05-08
Architecture: amd64
Distribution: sid

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:


Selecting previously unselected package libboost-system1.54.0:amd64.
(Reading database ... 10937 files and directories currently installed.)
Preparing to unpack .../libboost-system1.54.0_1.54.0-5_amd64.deb ...
Unpacking libboost-system1.54.0:amd64 (1.54.0-5) ...
Selecting previously unselected package libboost-filesystem1.54.0:amd64.
Preparing to unpack .../libboost-filesystem1.54.0_1.54.0-5_amd64.deb ...
Unpacking libboost-filesystem1.54.0:amd64 (1.54.0-5) ...
Selecting previously unselected package libboost-program-options1.54.0:amd64.
Preparing to unpack .../libboost-program-options1.54.0_1.54.0-5_amd64.deb ...
Unpacking libboost-program-options1.54.0:amd64 (1.54.0-5) ...
Selecting previously unselected package libicu52:amd64.
Preparing to unpack .../libicu52_52.1-3_amd64.deb ...
Unpacking libicu52:amd64 (52.1-3) ...
Selecting previously unselected package libboost-regex1.54.0:amd64.
Preparing to unpack .../libboost-regex1.54.0_1.54.0-5_amd64.deb ...
Unpacking libboost-regex1.54.0:amd64 (1.54.0-5) ...
Selecting previously unselected package libboost-thread1.54.0:amd64.
Preparing to unpack .../libboost-thread1.54.0_1.54.0-5_amd64.deb ...
Unpacking libboost-thread1.54.0:amd64 (1.54.0-5) ...
Selecting previously unselected package libtinyxml2.6.2:amd64.
Preparing to unpack .../libtinyxml2.6.2_2.6.2-2_amd64.deb ...
Unpacking libtinyxml2.6.2:amd64 (2.6.2-2) ...
Selecting previously unselected package libconsole-bridge0.2:amd64.
Preparing to unpack .../libconsole-bridge0.2_0.2.5-2_amd64.deb ...
Unpacking libconsole-bridge0.2:amd64 (0.2.5-2) ...
Selecting previously unselected package liburdfdom-model-state0.2:amd64.
Preparing to unpack .../liburdfdom-model-state0.2_0.2.10+dfsg-1_amd64.deb ...
Unpacking liburdfdom-model-state0.2:amd64 (0.2.10+dfsg-1) ...
Selecting previously unselected package liburdfdom-model0.2:amd64.
Preparing to unpack .../liburdfdom-model0.2_0.2.10+dfsg-1_amd64.deb ...
Unpacking liburdfdom-model0.2:amd64 (0.2.10+dfsg-1) ...
Selecting previously unselected package liburdfdom-sensor0.2:amd64.
Preparing to unpack .../liburdfdom-sensor0.2_0.2.10+dfsg-1_amd64.deb ...
Unpacking liburdfdom-sensor0.2:amd64 (0.2.10+dfsg-1) ...
Selecting previously unselected package liburdfdom-world0.2:amd64.
Preparing to unpack .../liburdfdom-world0.2_0.2.10+dfsg-1_amd64.deb ...
Unpacking liburdfdom-world0.2:amd64 (0.2.10+dfsg-1) ...
Selecting previously unselected package libsdformat1:amd64.
Preparing to unpack .../libsdformat1_1.4.11-1_amd64.deb ...
Unpacking libsdformat1:amd64 (1.4.11-1) ...
Selecting previously unselected package liburdfdom-model-state0.3:amd64.
Preparing to unpack .../liburdfdom-model-state0.3_0.3.0-1_amd64.deb ...
Unpacking liburdfdom-model-state0.3:amd64 (0.3.0-1) ...
Selecting previously unselected package liburdfdom-model0.3:amd64.
Preparing to unpack .../liburdfdom-model0.3_0.3.0-1_amd64.deb ...
Unpacking liburdfdom-model0.3:amd64 (0.3.0-1) ...
Selecting previously unselected package liburdfdom-sensor0.3:amd64.
Preparing to unpack .../liburdfdom-sensor0.3_0.3.0-1_amd64.deb ...
Unpacking liburdfdom-sensor0.3:amd64 (0.3.0-1) ...
Selecting previously unselected package liburdfdom-world0.3:amd64.
Preparing to unpack .../liburdfdom-world0.3_0.3.0-1_amd64.deb ...
Unpacking liburdfdom-world0.3:amd64 (0.3.0-1) ...
Selecting previously unselected package libsdformat2:amd64.
Preparing to unpack .../libsdformat2_2.0.0-2_amd64.deb ...
Unpacking libsdformat2:amd64 (2.0.0-2) ...
dpkg: error processing archive /var/cache/apt/archives/libsdformat2_2.0.0-2_amd64.deb (--unpack):
 trying to overwrite '/usr/share/sdformat/1.3/model.sdf', which is also in package libsdformat1:amd64 1.4.11-1
Errors were encountered while processing:
 /var/cache/apt/archives/libsdformat2_2.0.0-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is a serious bug as it makes installation fail, and violates
sections 7.6.1 and 10.1 of the policy. An optimal solution would
consist in only one of the packages installing that file, and renaming
or removing the file in the other package. Depending on the
circumstances you might also consider Replace relations or file
diversions. If the conflicting situation cannot be resolved then, as a
last resort, the two packages have to declare a mutual
Conflict. Please take into account that Replaces, Conflicts and
diversions should only be used when packages provide different
implementations for the same functionality.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

  /usr/share/sdformat/1.0/actor.sdf
  /usr/share/sdformat/1.0/camera.sdf
  /usr/share/sdformat/1.0/collision.sdf
  /usr/share/sdformat/1.0/contact.sdf
  /usr/share/sdformat/1.0/gazebo.sdf
  /usr/share/sdformat/1.0/geometry.sdf
  /usr/share/sdformat/1.0/gripper.sdf
  /usr/share/sdformat/1.0/gui.sdf
  /usr/share/sdformat/1.0/inertial.sdf
  /usr/share/sdformat/1.0/joint.sdf
  /usr/share/sdformat/1.0/light.sdf
  /usr/share/sdformat/1.0/link.sdf
  /usr/share/sdformat/1.0/model.sdf
  /usr/share/sdformat/1.0/physics.sdf
  /usr/share/sdformat/1.0/plugin.sdf
  /usr/share/sdformat/1.0/projector.sdf
  /usr/share/sdformat/1.0/ray.sdf
  /usr/share/sdformat/1.0/rfid.sdf
  /usr/share/sdformat/1.0/rfidtag.sdf
  /usr/share/sdformat/1.0/road.sdf
  /usr/share/sdformat/1.0/scene.sdf
  /usr/share/sdformat/1.0/sensor.sdf
  /usr/share/sdformat/1.0/state.sdf
  /usr/share/sdformat/1.0/surface.sdf
  /usr/share/sdformat/1.0/visual.sdf
  /usr/share/sdformat/1.0/world.sdf
  /usr/share/sdformat/1.2/1_0.convert
  /usr/share/sdformat/1.2/actor.sdf
  /usr/share/sdformat/1.2/camera.sdf
  /usr/share/sdformat/1.2/collision.sdf
  /usr/share/sdformat/1.2/contact.sdf
  /usr/share/sdformat/1.2/gazebo.sdf
  /usr/share/sdformat/1.2/geometry.sdf
  /usr/share/sdformat/1.2/gripper.sdf
  /usr/share/sdformat/1.2/gui.sdf
  /usr/share/sdformat/1.2/inertial.sdf
  /usr/share/sdformat/1.2/joint.sdf
  /usr/share/sdformat/1.2/light.sdf
  /usr/share/sdformat/1.2/link.sdf
  /usr/share/sdformat/1.2/model.sdf
  /usr/share/sdformat/1.2/physics.sdf
  /usr/share/sdformat/1.2/plugin.sdf
  /usr/share/sdformat/1.2/projector.sdf
  /usr/share/sdformat/1.2/ray.sdf
  /usr/share/sdformat/1.2/rfid.sdf
  /usr/share/sdformat/1.2/rfidtag.sdf
  /usr/share/sdformat/1.2/road.sdf
  /usr/share/sdformat/1.2/scene.sdf
  /usr/share/sdformat/1.2/sensor.sdf
  /usr/share/sdformat/1.2/state.sdf
  /usr/share/sdformat/1.2/surface.sdf
  /usr/share/sdformat/1.2/visual.sdf
  /usr/share/sdformat/1.2/world.sdf
  /usr/share/sdformat/1.3/1_2.convert
  /usr/share/sdformat/1.3/actor.sdf
  /usr/share/sdformat/1.3/camera.sdf
  /usr/share/sdformat/1.3/collision.sdf
  /usr/share/sdformat/1.3/contact.sdf
  /usr/share/sdformat/1.3/geometry.sdf
  /usr/share/sdformat/1.3/gripper.sdf
  /usr/share/sdformat/1.3/gui.sdf
  /usr/share/sdformat/1.3/imu.sdf
  /usr/share/sdformat/1.3/inertial.sdf
  /usr/share/sdformat/1.3/joint.sdf
  /usr/share/sdformat/1.3/light.sdf
  /usr/share/sdformat/1.3/link.sdf
  /usr/share/sdformat/1.3/model.sdf
  /usr/share/sdformat/1.3/physics.sdf
  /usr/share/sdformat/1.3/plugin.sdf
  /usr/share/sdformat/1.3/projector.sdf
  /usr/share/sdformat/1.3/ray.sdf
  /usr/share/sdformat/1.3/rfid.sdf
  /usr/share/sdformat/1.3/rfidtag.sdf
  /usr/share/sdformat/1.3/road.sdf
  /usr/share/sdformat/1.3/root.sdf
  /usr/share/sdformat/1.3/scene.sdf
  /usr/share/sdformat/1.3/sensor.sdf
  /usr/share/sdformat/1.3/state.sdf
  /usr/share/sdformat/1.3/surface.sdf
  /usr/share/sdformat/1.3/visual.sdf
  /usr/share/sdformat/1.3/world.sdf
  /usr/share/sdformat/1.4/1_3.convert
  /usr/share/sdformat/1.4/actor.sdf
  /usr/share/sdformat/1.4/audio_sink.sdf
  /usr/share/sdformat/1.4/audio_source.sdf
  /usr/share/sdformat/1.4/box_shape.sdf
  /usr/share/sdformat/1.4/camera.sdf
  /usr/share/sdformat/1.4/collision.sdf
  /usr/share/sdformat/1.4/contact.sdf
  /usr/share/sdformat/1.4/cylinder_shape.sdf
  /usr/share/sdformat/1.4/forcetorque.sdf
  /usr/share/sdformat/1.4/geometry.sdf
  /usr/share/sdformat/1.4/gps.sdf
  /usr/share/sdformat/1.4/gripper.sdf
  /usr/share/sdformat/1.4/gui.sdf
  /usr/share/sdformat/1.4/heightmap_shape.sdf
  /usr/share/sdformat/1.4/image_shape.sdf
  /usr/share/sdformat/1.4/imu.sdf
  /usr/share/sdformat/1.4/inertial.sdf
  /usr/share/sdformat/1.4/joint.sdf
  /usr/share/sdformat/1.4/light.sdf
  /usr/share/sdformat/1.4/link.sdf
  /usr/share/sdformat/1.4/mesh_shape.sdf
  /usr/share/sdformat/1.4/model.sdf
  /usr/share/sdformat/1.4/noise.sdf
  /usr/share/sdformat/1.4/physics.sdf
  /usr/share/sdformat/1.4/plane_shape.sdf
  /usr/share/sdformat/1.4/plugin.sdf
  /usr/share/sdformat/1.4/projector.sdf
  /usr/share/sdformat/1.4/ray.sdf
  /usr/share/sdformat/1.4/rfid.sdf
  /usr/share/sdformat/1.4/rfidtag.sdf
  /usr/share/sdformat/1.4/road.sdf
  /usr/share/sdformat/1.4/root.sdf
  /usr/share/sdformat/1.4/scene.sdf
  /usr/share/sdformat/1.4/sensor.sdf
  /usr/share/sdformat/1.4/sonar.sdf
  /usr/share/sdformat/1.4/sphere_shape.sdf
  /usr/share/sdformat/1.4/spherical_coordinates.sdf
  /usr/share/sdformat/1.4/state.sdf
  /usr/share/sdformat/1.4/surface.sdf
  /usr/share/sdformat/1.4/transceiver.sdf
  /usr/share/sdformat/1.4/visual.sdf
  /usr/share/sdformat/1.4/world.sdf

This bug has been filed against both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may then
also register in the BTS that the other package is affected by the bug.

-Ralf.

PS: for more information about the detection of file overwrite errors
of this kind see http://edos.debian.net/file-overwrites/.



More information about the debian-science-maintainers mailing list