Bug#612556: rheolef-doc and librheolef-doc: error when trying to install together

Ralf Treinen treinen at free.fr
Wed Feb 9 06:40:17 UTC 2011


Package: librheolef-doc,rheolef-doc
Version: librheolef-doc/5.91-1
Version: rheolef-doc/5.92-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2011-02-09
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:


WARNING: The following packages cannot be authenticated!
  librheolef-doc rheolef-doc
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package librheolef-doc.
(Reading database ... 8712 files and directories currently installed.)
Unpacking librheolef-doc (from .../librheolef-doc_5.91-1_all.deb) ...
Selecting previously deselected package rheolef-doc.
Unpacking rheolef-doc (from .../rheolef-doc_5.92-1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/rheolef-doc_5.92-1_all.deb (--unpack):
 trying to overwrite '/usr/share/doc/librheolef-doc/usrman.pdf', which is also in package librheolef-doc 5.91-1
configured to not write apport reports
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/rheolef-doc_5.92-1_all.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/doc-base/librheolef-usrman
  /usr/share/doc/librheolef-doc/bamg.ps.gz
  /usr/share/doc/librheolef-doc/examples/Makefile
  /usr/share/doc/librheolef-doc/examples/cahouet-chabart.h
  /usr/share/doc/librheolef-doc/examples/cavity.h
  /usr/share/doc/librheolef-doc/examples/contraction-bubble.cc
  /usr/share/doc/librheolef-doc/examples/contraction.bamgcad
  /usr/share/doc/librheolef-doc/examples/contraction.dmn
  /usr/share/doc/librheolef-doc/examples/convect.cc
  /usr/share/doc/librheolef-doc/examples/cube-gmsh.mshcad
  /usr/share/doc/librheolef-doc/examples/cube-old.dmn
  /usr/share/doc/librheolef-doc/examples/cube-qmg.off
  /usr/share/doc/librheolef-doc/examples/cube-qmg.tcl
  /usr/share/doc/librheolef-doc/examples/cube.bdry
  /usr/share/doc/librheolef-doc/examples/cube.dmn
  /usr/share/doc/librheolef-doc/examples/dirichlet-nh.cc
  /usr/share/doc/librheolef-doc/examples/dirichlet.cc
  /usr/share/doc/librheolef-doc/examples/embankment-adapt-2d.cc
  /usr/share/doc/librheolef-doc/examples/embankment.cc
  /usr/share/doc/librheolef-doc/examples/embankment.h
  /usr/share/doc/librheolef-doc/examples/heat.cc
  /usr/share/doc/librheolef-doc/examples/incompressible-elasticity.cc
  /usr/share/doc/librheolef-doc/examples/my-cube.mshcad
  /usr/share/doc/librheolef-doc/examples/my-line.mshcad
  /usr/share/doc/librheolef-doc/examples/my-square.bamgcad
  /usr/share/doc/librheolef-doc/examples/my-square.dmn
  /usr/share/doc/librheolef-doc/examples/my-square.mshcad
  /usr/share/doc/librheolef-doc/examples/navier-stokes-cavity.cc
  /usr/share/doc/librheolef-doc/examples/navier-stokes-solve.h
  /usr/share/doc/librheolef-doc/examples/navier-stokes-solve0.h
  /usr/share/doc/librheolef-doc/examples/neumann-laplace-assembly.h
  /usr/share/doc/librheolef-doc/examples/neumann-laplace.cc
  /usr/share/doc/librheolef-doc/examples/neumann.cc
  /usr/share/doc/librheolef-doc/examples/p-laplacian-damped-newton.cc
  /usr/share/doc/librheolef-doc/examples/p-laplacian-fixed-point.cc
  /usr/share/doc/librheolef-doc/examples/p-laplacian-fixed-point.h
  /usr/share/doc/librheolef-doc/examples/p-laplacian-newton.cc
  /usr/share/doc/librheolef-doc/examples/p-laplacian.h
  /usr/share/doc/librheolef-doc/examples/p-laplacian.icc
  /usr/share/doc/librheolef-doc/examples/pcg_solver.h
  /usr/share/doc/librheolef-doc/examples/poisson-dirichlet.icc
  /usr/share/doc/librheolef-doc/examples/robin.cc
  /usr/share/doc/librheolef-doc/examples/square-gmsh.mshcad
  /usr/share/doc/librheolef-doc/examples/square-qmg.tcl
  /usr/share/doc/librheolef-doc/examples/square-region.bdry
  /usr/share/doc/librheolef-doc/examples/square-region.dmn
  /usr/share/doc/librheolef-doc/examples/stokes-assembly.h
  /usr/share/doc/librheolef-doc/examples/stokes-cavity.cc
  /usr/share/doc/librheolef-doc/examples/stokes-poiseuille-bubble.cc
  /usr/share/doc/librheolef-doc/examples/stokes-poiseuille.cc
  /usr/share/doc/librheolef-doc/examples/streamf-cavity.cc
  /usr/share/doc/librheolef-doc/examples/stress.cc
  /usr/share/doc/librheolef-doc/examples/transmission-weight.cc
  /usr/share/doc/librheolef-doc/examples/transmission.cc
  /usr/share/doc/librheolef-doc/examples/user2D.template
  /usr/share/doc/librheolef-doc/examples/user3D.template
  /usr/share/doc/librheolef-doc/examples/vortex-position.cc
  /usr/share/doc/librheolef-doc/examples/vorticity.cc
  /usr/share/doc/librheolef-doc/usrman.pdf

This bug is assigned to 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
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