Bug#596660: code-aster-run and astk: error when trying to install together

Ralf Treinen treinen at free.fr
Mon Sep 13 06:05:01 UTC 2010


Package: astk,code-aster-run
Version: astk/1.8.1-1
Version: code-aster-run/1.8.1-2
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2010-09-13
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!
  ucf ttf-dejavu-core fontconfig-config libgfortran3 libblas3gf libfreetype6
  libfontconfig1 liblapack3gf libxau6 libxdmcp6 libxcb1 libx11-data libx11-6
  libxext6 libxrender1 libxft2 x11-common libxss1 python-numpy tcl8.5 tk8.5
  astk code-aster-run
Preconfiguring packages ...
+ alias stripwhitespace=sed -e 's/^[[:blank:]]*//' -e 's/[[:blank:]]*$//'
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z  ]
+ exec
+ [  ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ dpkg-architecture -qDEB_HOST_ARCH_OS
/tmp/astk.config.223789: 1: dpkg-architecture: not found
+ tr [:lower:] [:upper:]
+ DEB_HOST_ARCH_OS=
+ dpkg-architecture -qDEB_HOST_ARCH_BITS
/tmp/astk.config.223789: 1: dpkg-architecture: not found
+ DEB_HOST_ARCH_BITS=
astk failed to preconfigure, with exit status 127
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package ucf.
(Reading database ... 12258 files and directories currently installed.)
Unpacking ucf (from .../ucf_3.0025+nmu1_all.deb) ...
Moving old data out of the way
Selecting previously deselected package ttf-dejavu-core.
Unpacking ttf-dejavu-core (from .../ttf-dejavu-core_2.31-1_all.deb) ...
Selecting previously deselected package fontconfig-config.
Unpacking fontconfig-config (from .../fontconfig-config_2.8.0-2.1_all.deb) ...
Selecting previously deselected package libgfortran3.
Unpacking libgfortran3 (from .../libgfortran3_4.4.4-14_amd64.deb) ...
Selecting previously deselected package libblas3gf.
Unpacking libblas3gf (from .../libblas3gf_1.2-7_amd64.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.4.2-2_amd64.deb) ...
Selecting previously deselected package libfontconfig1.
Unpacking libfontconfig1 (from .../libfontconfig1_2.8.0-2.1_amd64.deb) ...
Selecting previously deselected package liblapack3gf.
Unpacking liblapack3gf (from .../liblapack3gf_3.2.2-1_amd64.deb) ...
Selecting previously deselected package libxau6.
Unpacking libxau6 (from .../libxau6_1%3a1.0.6-1_amd64.deb) ...
Selecting previously deselected package libxdmcp6.
Unpacking libxdmcp6 (from .../libxdmcp6_1%3a1.0.3-2_amd64.deb) ...
Selecting previously deselected package libxcb1.
Unpacking libxcb1 (from .../libxcb1_1.6-1_amd64.deb) ...
Selecting previously deselected package libx11-data.
Unpacking libx11-data (from .../libx11-data_2%3a1.3.3-3_all.deb) ...
Selecting previously deselected package libx11-6.
Unpacking libx11-6 (from .../libx11-6_2%3a1.3.3-3_amd64.deb) ...
Selecting previously deselected package libxext6.
Unpacking libxext6 (from .../libxext6_2%3a1.1.2-1_amd64.deb) ...
Selecting previously deselected package libxrender1.
Unpacking libxrender1 (from .../libxrender1_1%3a0.9.6-1_amd64.deb) ...
Selecting previously deselected package libxft2.
Unpacking libxft2 (from .../libxft2_2.1.14-2_amd64.deb) ...
Selecting previously deselected package x11-common.
Unpacking x11-common (from .../x11-common_1%3a7.5+7_all.deb) ...
Selecting previously deselected package libxss1.
Unpacking libxss1 (from .../libxss1_1%3a1.2.0-2_amd64.deb) ...
Selecting previously deselected package python-numpy.
Unpacking python-numpy (from .../python-numpy_1%3a1.4.1-4_amd64.deb) ...
Selecting previously deselected package tcl8.5.
Unpacking tcl8.5 (from .../tcl8.5_8.5.8-2_amd64.deb) ...
Selecting previously deselected package tk8.5.
Unpacking tk8.5 (from .../tk8.5_8.5.8-1_amd64.deb) ...
Selecting previously deselected package astk.
Unpacking astk (from .../archives/astk_1.8.1-1_all.deb) ...
Selecting previously deselected package code-aster-run.
Unpacking code-aster-run (from .../code-aster-run_1.8.1-2_all.deb) ...
dpkg: error processing /var/cache/apt/archives/code-aster-run_1.8.1-2_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/parallel_cp.1.gz', which is also in package astk 0:1.8.1-1
+ [ abort-install = purge -a -e /usr/share/debconf/confmodule ]
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/code-aster-run_1.8.1-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
cow-shell unlink .ilist: No such file or directory


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/bin/as_run
  /usr/bin/codeaster
  /usr/bin/get
  /usr/bin/getop
  /usr/bin/parallel_cp
  /usr/bin/show
  /usr/share/man/man1/as_run.1.gz
  /usr/share/man/man1/get.1.gz
  /usr/share/man/man1/getop.1.gz
  /usr/share/man/man1/parallel_cp.1.gz

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