[Python-modules-team] Bug#836716: test-kitchen and python-kitchen-doc: error when trying to install together

Ralf Treinen treinen at free.fr
Mon Sep 5 05:20:55 UTC 2016


Package: python-kitchen-doc,test-kitchen
Version: python-kitchen-doc/1.2.4-1
Version: test-kitchen/1.11.1-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2016-09-05
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:


Preconfiguring packages ...
Selecting previously unselected package libssl1.0.2:amd64.
(Reading database ... 10964 files and directories currently installed.)
Preparing to unpack .../libssl1.0.2_1.0.2h-1_amd64.deb ...
Unpacking libssl1.0.2:amd64 (1.0.2h-1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2h-1_amd64.deb ...
Unpacking openssl (1.0.2h-1) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20160104_all.deb ...
Unpacking ca-certificates (20160104) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.2.1-4_amd64.deb ...
Unpacking libffi6:amd64 (3.2.1-4) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a6.1.1+dfsg-1_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.1.1+dfsg-1) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../libjs-jquery_1.12.4-1_all.deb ...
Unpacking libjs-jquery (1.12.4-1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../libjs-underscore_1.8.3~dfsg-1_all.deb ...
Unpacking libjs-underscore (1.8.3~dfsg-1) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../libjs-sphinxdoc_1.4.6-1_all.deb ...
Unpacking libjs-sphinxdoc (1.4.6-1) ...
Selecting previously unselected package libyaml-0-2:amd64.
Preparing to unpack .../libyaml-0-2_0.1.7-1_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.1.7-1) ...
Selecting previously unselected package python-kitchen-doc.
Preparing to unpack .../python-kitchen-doc_1.2.4-1_all.deb ...
Unpacking python-kitchen-doc (1.2.4-1) ...
Selecting previously unselected package rubygems-integration.
Preparing to unpack .../rubygems-integration_1.10_all.deb ...
Unpacking rubygems-integration (1.10) ...
Selecting previously unselected package ruby-did-you-mean.
Preparing to unpack .../ruby-did-you-mean_1.0.0-2_all.deb ...
Unpacking ruby-did-you-mean (1.0.0-2) ...
Selecting previously unselected package ruby-minitest.
Preparing to unpack .../ruby-minitest_5.9.0-1_all.deb ...
Unpacking ruby-minitest (5.9.0-1) ...
Selecting previously unselected package ruby-net-telnet.
Preparing to unpack .../ruby-net-telnet_0.1.1-2_all.deb ...
Unpacking ruby-net-telnet (0.1.1-2) ...
Selecting previously unselected package ruby-power-assert.
Preparing to unpack .../ruby-power-assert_0.3.0-1_all.deb ...
Unpacking ruby-power-assert (0.3.0-1) ...
Selecting previously unselected package ruby-test-unit.
Preparing to unpack .../ruby-test-unit_3.1.7-2_all.deb ...
Unpacking ruby-test-unit (3.1.7-2) ...
Selecting previously unselected package libruby2.3:amd64.
Preparing to unpack .../libruby2.3_2.3.1-5_amd64.deb ...
Unpacking libruby2.3:amd64 (2.3.1-5) ...
Selecting previously unselected package ruby2.3.
Preparing to unpack .../ruby2.3_2.3.1-5_amd64.deb ...
Unpacking ruby2.3 (2.3.1-5) ...
Selecting previously unselected package ruby.
Preparing to unpack .../ruby_1%3a2.3.0+4_amd64.deb ...
Unpacking ruby (1:2.3.0+4) ...
Selecting previously unselected package rake.
Preparing to unpack .../archives/rake_10.5.0-2_all.deb ...
Unpacking rake (10.5.0-2) ...
Selecting previously unselected package ruby-mixlib-versioning.
Preparing to unpack .../ruby-mixlib-versioning_1.1.0-1_all.deb ...
Unpacking ruby-mixlib-versioning (1.1.0-1) ...
Selecting previously unselected package ruby-mixlib-shellout.
Preparing to unpack .../ruby-mixlib-shellout_2.2.6-1_all.deb ...
Unpacking ruby-mixlib-shellout (2.2.6-1) ...
Selecting previously unselected package ruby-mixlib-install.
Preparing to unpack .../ruby-mixlib-install_1.1.0-1_all.deb ...
Unpacking ruby-mixlib-install (1.1.0-1) ...
Selecting previously unselected package ruby-net-ssh.
Preparing to unpack .../ruby-net-ssh_1%3a3.2.0-1_all.deb ...
Unpacking ruby-net-ssh (1:3.2.0-1) ...
Selecting previously unselected package ruby-net-scp.
Preparing to unpack .../ruby-net-scp_1.2.1-4_all.deb ...
Unpacking ruby-net-scp (1.2.1-4) ...
Selecting previously unselected package ruby-net-ssh-gateway.
Preparing to unpack .../ruby-net-ssh-gateway_1.2.0-3_all.deb ...
Unpacking ruby-net-ssh-gateway (1.2.0-3) ...
Selecting previously unselected package ruby-safe-yaml.
Preparing to unpack .../ruby-safe-yaml_1.0.4-1_all.deb ...
Unpacking ruby-safe-yaml (1.0.4-1) ...
Selecting previously unselected package ruby-thor.
Preparing to unpack .../ruby-thor_0.19.1-2_all.deb ...
Unpacking ruby-thor (0.19.1-2) ...
Selecting previously unselected package test-kitchen.
Preparing to unpack .../test-kitchen_1.11.1-1_all.deb ...
Unpacking test-kitchen (1.11.1-1) ...
dpkg: error processing archive /var/cache/apt/archives/test-kitchen_1.11.1-1_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/kitchen.1.gz', which is also in package python-kitchen-doc 1.2.4-1
Processing triggers for libc-bin (2.24-2) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/test-kitchen_1.11.1-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/man/man1/kitchen.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://qa.debian.org/dose/file-overwrites.html.



More information about the Python-modules-team mailing list