Bug#572035: libtomcat6-java and libjasper-java: error when trying to install together

Ralf Treinen treinen at free.fr
Mon Mar 1 07:28:18 UTC 2010


Package: libjasper-java,libtomcat6-java
Version: libjasper-java/5.5.26-4
Version: libtomcat6-java/6.0.24-2
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2010-02-28
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!
  openjdk-6-jre-lib java-common default-jre-headless ca-certificates-java
  tzdata-java libavahi-common-data libavahi-common3 libdbus-1-3
  libavahi-client3 libcups2 liblcms1 libjpeg62 libnspr4-0d libnss3-1d
  libfreetype6 openjdk-6-jre-headless libcommons-collections3-java
  libcommons-pool-java libcommons-dbcp-java libservlet2.4-java
  libcommons-el-java libcommons-logging-java libecj-java libjasper-java
  libservlet2.5-java libtomcat6-java
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407727
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407760
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5406857
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package openjdk-6-jre-lib.
(Reading database ... 12294 files and directories currently installed.)
Unpacking openjdk-6-jre-lib (from .../openjdk-6-jre-lib_6b18~pre1-1_all.deb) ...
Selecting previously deselected package java-common.
Unpacking java-common (from .../java-common_0.34_all.deb) ...
Selecting previously deselected package default-jre-headless.
Unpacking default-jre-headless (from .../default-jre-headless_1.6-34_amd64.deb) ...
Selecting previously deselected package ca-certificates-java.
Unpacking ca-certificates-java (from .../ca-certificates-java_20091021_all.deb) ...
Selecting previously deselected package tzdata-java.
Unpacking tzdata-java (from .../tzdata-java_2010b-1_all.deb) ...
Selecting previously deselected package libavahi-common-data.
Unpacking libavahi-common-data (from .../libavahi-common-data_0.6.25-3_amd64.deb) ...
Selecting previously deselected package libavahi-common3.
Unpacking libavahi-common3 (from .../libavahi-common3_0.6.25-3_amd64.deb) ...
Selecting previously deselected package libdbus-1-3.
Unpacking libdbus-1-3 (from .../libdbus-1-3_1.2.20-2_amd64.deb) ...
Selecting previously deselected package libavahi-client3.
Unpacking libavahi-client3 (from .../libavahi-client3_0.6.25-3_amd64.deb) ...
Selecting previously deselected package libcups2.
Unpacking libcups2 (from .../libcups2_1.4.2-9_amd64.deb) ...
Selecting previously deselected package liblcms1.
Unpacking liblcms1 (from .../liblcms1_1.18.dfsg-1.2+b1_amd64.deb) ...
Selecting previously deselected package libjpeg62.
Unpacking libjpeg62 (from .../libjpeg62_6b-16.1_amd64.deb) ...
Selecting previously deselected package libnspr4-0d.
Unpacking libnspr4-0d (from .../libnspr4-0d_4.8.3-1_amd64.deb) ...
Selecting previously deselected package libnss3-1d.
Unpacking libnss3-1d (from .../libnss3-1d_3.12.5-2_amd64.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.3.11-1_amd64.deb) ...
Selecting previously deselected package openjdk-6-jre-headless.
Unpacking openjdk-6-jre-headless (from .../openjdk-6-jre-headless_6b18~pre1-1_amd64.deb) ...
Selecting previously deselected package libcommons-collections3-java.
Unpacking libcommons-collections3-java (from .../libcommons-collections3-java_3.2.1-4_all.deb) ...
Selecting previously deselected package libcommons-pool-java.
Unpacking libcommons-pool-java (from .../libcommons-pool-java_1.5.4-2_all.deb) ...
Selecting previously deselected package libcommons-dbcp-java.
Unpacking libcommons-dbcp-java (from .../libcommons-dbcp-java_1.4-1_all.deb) ...
Selecting previously deselected package libservlet2.4-java.
Unpacking libservlet2.4-java (from .../libservlet2.4-java_5.0.30-12_all.deb) ...
Selecting previously deselected package libcommons-el-java.
Unpacking libcommons-el-java (from .../libcommons-el-java_1.0-6_all.deb) ...
Selecting previously deselected package libcommons-logging-java.
Unpacking libcommons-logging-java (from .../libcommons-logging-java_1.1.1-6_all.deb) ...
Selecting previously deselected package libecj-java.
Unpacking libecj-java (from .../libecj-java_3.5.1-1_all.deb) ...
Selecting previously deselected package libjasper-java.
Unpacking libjasper-java (from .../libjasper-java_5.5.26-4_all.deb) ...
Selecting previously deselected package libservlet2.5-java.
Unpacking libservlet2.5-java (from .../libservlet2.5-java_6.0.24-2_all.deb) ...
Selecting previously deselected package libtomcat6-java.
Unpacking libtomcat6-java (from .../libtomcat6-java_6.0.24-2_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libtomcat6-java_6.0.24-2_all.deb (--unpack):
 trying to overwrite '/usr/share/java/jasper.jar', which is also in package libjasper-java 0:5.5.26-4
Processing triggers for man-db ...
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407727
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407760
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5406857
Errors were encountered while processing:
 /var/cache/apt/archives/libtomcat6-java_6.0.24-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/share/java/jasper.jar

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.

-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-java-maintainers mailing list