Bug #84198 installation of libmysqlclient-dev_5.6.35-1ubuntu14.04_amd64.deb fails
Submitted: 14 Dec 2016 2:07 Modified: 19 Dec 2016 19:17
Reporter: Bug Hit Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Package Repos Severity:S3 (Non-critical)
Version:5.6 OS:Ubuntu
Assigned to: Lars Tangvald CPU Architecture:Any

[14 Dec 2016 2:07] Bug Hit
Description:
evidently because mysql-client-5.6 is from ubuntu

so how do force everything to come from the mysql repo

How to repeat:
sudo apt-get install libmysqlclient-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libmysqlclient-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,097 kB of archives.
After this operation, 10.0 MB of additional disk space will be used.
(Reading database ... 1858245 files and directories currently installed.)
Preparing to unpack .../libmysqlclient-dev_5.6.35-1ubuntu14.04_amd64.deb ...
Unpacking libmysqlclient-dev (5.6.35-1ubuntu14.04) ...
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient-dev_5.6.35-1ubuntu14.04_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/mysql_config_editor.1.gz', which is also in package mysql-client-5.6 5.6.33-0ubuntu0.14.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libmysqlclient-dev_5.6.35-1ubuntu14.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
[14 Dec 2016 9:13] Lars Tangvald
Thanks for the report.

Our 5.6.35 client-dev package is missing a declaration that it can overwrite files from the native client package.

A workaround until it's fixed is to first replace the native 5.6 client with our 5.6.35 client (and/or server).

--
Lars
[14 Dec 2016 10:34] Lars Tangvald
Posted by developer:
 
libmysqlclient-dev 5.6.35 contains files that in the native Ubuntu 14.04 packaging is in mysql-client-5.6, causing file conflict errors on install if the latter is installed.

Because of the differences between them, it's not advisable to have a mix of native packages and ones from repo.mysql.com installed, so in the future this will probably be changed to a conflict marking (so installing repo.mysql.com packages will remove native ones).
[14 Dec 2016 10:42] Lars Tangvald
Just want to clarify the workaround a bit.

What you should do is install the client package from repo.mysql.com by installing one of mysql-community-client and mysql-client. This should correctly replace the conflicting mysql-client-5.6 package, and you can install libmysqlclient-dev.

If you have the server installed as well you should install mysql-communit-server or mysql-server.
[19 Dec 2016 19:17] Paul DuBois
Posted by developer:
 
Noted in 5.6.36 changelog.

CMake-generated packaging for Debian/Ubuntu packages was refactored
for improved maintainability. The change includes updated logic for
correctly replacing native distribution packaging in Debian and
Ubuntu.