Bug#722662: yorick and gist: error when trying to install together

Ralf Treinen rt at free.fr
Fri Sep 13 06:43:56 UTC 2013


Package: gist,yorick
Version: gist/4.0.3-2
Version: yorick/2.2.02+dfsg-6+b1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2013-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!
  libffi6 libxau6 libxdmcp6 libxcb1 libx11-data libx11-6 libyaml-0-2
  libruby1.9.1 ruby1.9.1 ruby ruby-json gist yorick-data yorick
Authentication warning overridden.
Selecting previously unselected package libffi6:amd64.
(Reading database ... 10882 files and directories currently installed.)
Unpacking libffi6:amd64 (from .../libffi6_3.0.13-4_amd64.deb) ...
Selecting previously unselected package libxau6:amd64.
Unpacking libxau6:amd64 (from .../libxau6_1%3a1.0.8-1_amd64.deb) ...
Selecting previously unselected package libxdmcp6:amd64.
Unpacking libxdmcp6:amd64 (from .../libxdmcp6_1%3a1.1.1-1_amd64.deb) ...
Selecting previously unselected package libxcb1:amd64.
Unpacking libxcb1:amd64 (from .../libxcb1_1.9.1-3_amd64.deb) ...
Selecting previously unselected package libx11-data.
Unpacking libx11-data (from .../libx11-data_2%3a1.6.1-1_all.deb) ...
Selecting previously unselected package libx11-6:amd64.
Unpacking libx11-6:amd64 (from .../libx11-6_2%3a1.6.1-1_amd64.deb) ...
Selecting previously unselected package libyaml-0-2:amd64.
Unpacking libyaml-0-2:amd64 (from .../libyaml-0-2_0.1.4-2_amd64.deb) ...
Selecting previously unselected package libruby1.9.1.
Unpacking libruby1.9.1 (from .../libruby1.9.1_1.9.3.448-1_amd64.deb) ...
Selecting previously unselected package ruby1.9.1.
Unpacking ruby1.9.1 (from .../ruby1.9.1_1.9.3.448-1_amd64.deb) ...
Selecting previously unselected package ruby.
Unpacking ruby (from .../ruby_1%3a1.9.3_all.deb) ...
Selecting previously unselected package ruby-json.
Unpacking ruby-json (from .../ruby-json_1.8.0-1_amd64.deb) ...
Selecting previously unselected package gist.
Unpacking gist (from .../archives/gist_4.0.3-2_all.deb) ...
Selecting previously unselected package yorick-data.
Unpacking yorick-data (from .../yorick-data_2.2.02+dfsg-6_all.deb) ...
Selecting previously unselected package yorick.
Unpacking yorick (from .../yorick_2.2.02+dfsg-6+b1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/yorick_2.2.02+dfsg-6+b1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/gist.1.gz', which is also in package gist 4.0.3-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db ...
Processing triggers for install-info ...
Errors were encountered while processing:
 /var/cache/apt/archives/yorick_2.2.02+dfsg-6+b1_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/bin/gist
  /usr/share/man/man1/gist.1.gz

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