[debian-mysql] Bug#790406: mysql-server-core-5.6 and mysql-client-5.5: error when trying to install together

Ralf Treinen treinen at free.fr
Mon Jun 29 06:35:28 UTC 2015


Package: mysql-client-5.5,mysql-server-core-5.6
Version: mysql-client-5.5/5.5.43-0+deb8u1
Version: mysql-server-core-5.6/5.6.25-2
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2015-06-29
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:


(Reading database ... 10900 files and directories currently installed.)
Preparing to unpack .../perl_5.20.2-6_amd64.deb ...
Unpacking perl (5.20.2-6) over (5.18.2-2) ...
Preparing to unpack .../libtext-charwidth-perl_0.04-7+b3_amd64.deb ...
Unpacking libtext-charwidth-perl (0.04-7+b3) over (0.04-7+b2) ...
Preparing to unpack .../perl-modules_5.20.2-6_all.deb ...
Unpacking perl-modules (5.20.2-6) over (5.18.2-7) ...
Preparing to unpack .../perl-base_5.20.2-6_amd64.deb ...
Unpacking perl-base (5.20.2-6) over (5.18.2-2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up perl-base (5.20.2-6) ...
(Reading database ... 10250 files and directories currently installed.)
Preparing to unpack .../liblocale-gettext-perl_1.05-9_amd64.deb ...
Unpacking liblocale-gettext-perl (1.05-9) over (1.05-7+b2) ...
Preparing to unpack .../libtext-iconv-perl_1.7-5+b2_amd64.deb ...
Unpacking libtext-iconv-perl (1.7-5+b2) over (1.7-5+b1) ...
Selecting previously unselected package libdb5.3:amd64.
Preparing to unpack .../libdb5.3_5.3.28-9_amd64.deb ...
Unpacking libdb5.3:amd64 (5.3.28-9) ...
Selecting previously unselected package gcc-5-base:amd64.
Preparing to unpack .../gcc-5-base_5.1.1-12_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.1.1-12) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up gcc-5-base:amd64 (5.1.1-12) ...
(Reading database ... 10257 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.1.1-12_amd64.deb ...
Unpacking libstdc++6:amd64 (5.1.1-12) over (4.8.2-19) ...
Setting up libstdc++6:amd64 (5.1.1-12) ...
Processing triggers for libc-bin (2.19-18) ...
Selecting previously unselected package libwrap0:amd64.
(Reading database ... 10271 files and directories currently installed.)
Preparing to unpack .../libwrap0_7.6.q-25_amd64.deb ...
Unpacking libwrap0:amd64 (7.6.q-25) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../libaio1_0.3.110-1_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-1) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../mysql-common_5.6.25-2_all.deb ...
Unpacking mysql-common (5.6.25-2) ...
Selecting previously unselected package libmysqlclient18:amd64.
Preparing to unpack .../libmysqlclient18_5.6.25-2_amd64.deb ...
Unpacking libmysqlclient18:amd64 (5.6.25-2) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../libdbi-perl_1.633-1_amd64.deb ...
Unpacking libdbi-perl (1.633-1) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../libdbd-mysql-perl_4.028-2+b1_amd64.deb ...
Unpacking libdbd-mysql-perl (4.028-2+b1) ...
Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../libterm-readkey-perl_2.32-2_amd64.deb ...
Unpacking libterm-readkey-perl (2.32-2) ...
Selecting previously unselected package mysql-client-5.5.
Preparing to unpack .../mysql-client-5.5_5.5.43-0+deb8u1_amd64.deb ...
Unpacking mysql-client-5.5 (5.5.43-0+deb8u1) ...
Selecting previously unselected package mysql-server-core-5.6.
Preparing to unpack .../mysql-server-core-5.6_5.6.25-2_amd64.deb ...
Unpacking mysql-server-core-5.6 (5.6.25-2) ...
dpkg: error processing archive /var/cache/apt/archives/mysql-server-core-5.6_5.6.25-2_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/innochecksum', which is also in package mysql-client-5.5 5.5.43-0+deb8u1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-core-5.6_5.6.25-2_amd64.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/innochecksum

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 pkg-mysql-maint mailing list