Description:
There is a conflict between these two packages in Fedora 29. mysql-connector-c++-jdbc is needed for mysql-connector-c++-devel
How to repeat:
If you have mysql-workbench already installed, try to install mysql-connector-c++-devel:
$ sudo dnf install mysql-connector-c++-devel
Last metadata expiration check: 0:00:09 ago on Mon 12 Nov 2018 21:44:56 CET.
Dependencies resolved.
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
mysql-connector-c++-devel x86_64 8.0.13-1.fc29 mysql-connectors-community 2.9 M
Installing dependencies:
mysql-connector-c++-jdbc x86_64 8.0.13-1.fc29 mysql-connectors-community 1.1 M
Transaction Summary
==========================================================================================================
Install 2 Packages
Total download size: 4.0 M
Installed size: 32 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mysql-connector-c++-jdbc-8.0.13-1.fc29.x86_64.rpm 741 kB/s | 1.1 MB 00:01
(2/2): mysql-connector-c++-devel-8.0.13-1.fc29.x86_64.rpm 1.8 MB/s | 2.9 MB 00:01
----------------------------------------------------------------------------------------------------------
Total 2.4 MB/s | 4.0 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/lib/.build-id/3d/5ed2d38d46e408c9b9e71762333f6c73a19df4 from install of mysql-connector-c++-jdbc-8.0.13-1.fc29.x86_64 conflicts with file from package mysql-workbench-community-8.0.13-1.fc29.x86_64
Error Summary
And if mysql-connector-c++-devel is already installed:
$ sudo dnf install mysql-workbench
Last metadata expiration check: 0:06:49 ago on Tue 13 Nov 2018 09:42:14 CET.
Dependencies resolved.
==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
mysql-workbench-community x86_64 8.0.13-1.fc29 mysql-tools-community 30 M
Transaction Summary
==============================================================================================================
Install 1 Package
Total download size: 30 M
Installed size: 174 M
Is this ok [y/N]: y
Downloading Packages:
mysql-workbench-community-8.0.13-1.fc29.x86_64.rpm 7.2 MB/s | 30 MB 00:04
--------------------------------------------------------------------------------------------------------------
Total 7.2 MB/s | 30 MB 00:04
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/lib/.build-id/3d/5ed2d38d46e408c9b9e71762333f6c73a19df4 from install of mysql-workbench-community-8.0.13-1.fc29.x86_64 conflicts with file from package mysql-connector-c++-jdbc-8.0.13-1.fc29.x86_64
Error Summary
-------------
And if both are installed at the same time:
$ sudo dnf install mysql-workbench mysql-connector-c++-jdbc
Last metadata expiration check: 0:15:21 ago on Tue 13 Nov 2018 09:42:14 CET.
Dependencies resolved.
==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
mysql-connector-c++-jdbc x86_64 8.0.13-1.fc29 mysql-connectors-community 1.1 M
mysql-workbench-community x86_64 8.0.13-1.fc29 mysql-tools-community 30 M
Transaction Summary
==============================================================================================================
Install 2 Packages
Total size: 31 M
Total download size: 1.1 M
Installed size: 181 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] mysql-workbench-community-8.0.13-1.fc29.x86_64.rpm: Already downloaded
(2/2): mysql-connector-c++-jdbc-8.0.13-1.fc29.x86_64.rpm 951 kB/s | 1.1 MB 00:01
--------------------------------------------------------------------------------------------------------------
Total 949 kB/s | 1.1 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/lib/.build-id/3d/5ed2d38d46e408c9b9e71762333f6c73a19df4 conflicts between attempted installs of mysql-connector-c++-jdbc-8.0.13-1.fc29.x86_64 and mysql-workbench-community-8.0.13-1.fc29.x86_64
Error Summary
-------------
Suggested fix:
I think the .build-id directory should be removed form the package:
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/5ed2d38d46e408c9b9e71762333f6c73a19df4