Bug#662749: libnetcdfc++5 and libnetcdfc++4: error when trying to install together

Ralf Treinen treinen at free.fr
Tue Mar 6 07:30:13 UTC 2012


Package: libnetcdfc++4,libnetcdfc++5
Version: libnetcdfc++4/1:4.1.3-5
Version: libnetcdfc++5/1:4.1.3-4
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2012-03-06
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!
  libkeyutils1 libkrb5support0 libk5crypto3 libkrb5-3 libgssapi-krb5-2
  libsasl2-2 libldap-2.4-2 librtmp0 libssh2-1 libcurl3-gnutls libquadmath0
  libgfortran3 libhdf5-7 libnetcdfc7 libnetcdfc++4 libnetcdfc++5
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package libkeyutils1.
(Reading database ... 10547 files and directories currently installed.)
Unpacking libkeyutils1 (from .../libkeyutils1_1.5.2-2_amd64.deb) ...
Selecting previously unselected package libkrb5support0.
Unpacking libkrb5support0 (from .../libkrb5support0_1.10+dfsg~beta1-2_amd64.deb) ...
Selecting previously unselected package libk5crypto3.
Unpacking libk5crypto3 (from .../libk5crypto3_1.10+dfsg~beta1-2_amd64.deb) ...
Selecting previously unselected package libkrb5-3.
Unpacking libkrb5-3 (from .../libkrb5-3_1.10+dfsg~beta1-2_amd64.deb) ...
Selecting previously unselected package libgssapi-krb5-2.
Unpacking libgssapi-krb5-2 (from .../libgssapi-krb5-2_1.10+dfsg~beta1-2_amd64.deb) ...
Selecting previously unselected package libsasl2-2.
Unpacking libsasl2-2 (from .../libsasl2-2_2.1.25.dfsg1-4_amd64.deb) ...
Selecting previously unselected package libldap-2.4-2.
Unpacking libldap-2.4-2 (from .../libldap-2.4-2_2.4.28-1.1_amd64.deb) ...
Selecting previously unselected package librtmp0.
Unpacking librtmp0 (from .../librtmp0_2.4+20111222.git4e06e21-1_amd64.deb) ...
Selecting previously unselected package libssh2-1.
Unpacking libssh2-1 (from .../libssh2-1_1.2.8-2_amd64.deb) ...
Selecting previously unselected package libcurl3-gnutls.
Unpacking libcurl3-gnutls (from .../libcurl3-gnutls_7.24.0-1_amd64.deb) ...
Selecting previously unselected package libquadmath0.
Unpacking libquadmath0 (from .../libquadmath0_4.6.3-1_amd64.deb) ...
Selecting previously unselected package libgfortran3.
Unpacking libgfortran3 (from .../libgfortran3_4.6.3-1_amd64.deb) ...
Selecting previously unselected package libhdf5-7.
Unpacking libhdf5-7 (from .../libhdf5-7_1.8.8-7.1_amd64.deb) ...
Selecting previously unselected package libnetcdfc7.
Unpacking libnetcdfc7 (from .../libnetcdfc7_1%3a4.1.3-5_amd64.deb) ...
Selecting previously unselected package libnetcdfc++4.
Unpacking libnetcdfc++4 (from .../libnetcdfc++4_1%3a4.1.3-5_amd64.deb) ...
Selecting previously unselected package libnetcdfc++5.
Unpacking libnetcdfc++5 (from .../libnetcdfc++5_1%3a4.1.3-4_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libnetcdfc++5_1%3a4.1.3-4_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libnetcdf_c++.so.4.1.0', which is also in package libnetcdfc++4 1:4.1.3-5
configured to not write apport reports
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libnetcdfc++5_1%3a4.1.3-4_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/lib/libnetcdf_c++.so.4
  /usr/lib/libnetcdf_c++.so.4.1.0

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 Pkg-grass-devel mailing list