[MDEV-27685] mysql-common package installed with MariaDB Servier >= 5 conflicts with WineHQ dependency in Ubuntu 20.04/Linux MInt 20.2/3 Created: 2022-01-30 Updated: 2022-02-15 Resolved: 2022-02-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Repositories |
| Affects Version/s: | 10.6.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Phil Manger | Assignee: | Faustin Lammler |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | packaging | ||
| Environment: |
Linux Mint 20.3/Ubuntu 20.04 |
||
| Issue Links: |
|
||||||||
| Description |
|
WineHQ 7.0 fails to install on Linux Mint 20.3/Ubuntu 20.04 because of conflict with a dependency distributed in the installation package from MariaDB mirrors. The winehq-stable dependency chain runs as follows: winehq-stable->wine-stable->wine-stable-i386->libsane:i386->libsnmp35:i386->libmysqlclient21:i386->mysql-common. mariadb-common also depends on mysql-common, but a different version. I attempted to file a bug report with WineHQ, but they said it was not a bug, but the result of building their install package against packages in the official Ubuntu repository, which are several versions behind those distributed through the MariaDB mirrors. They suggested asking the MariaDB package maintainer to provide a 32-bit mysql-common package to match the 64-bit package. In the meantime I have found a workaround by installing mysql-common 5.8+1.0.5ubuntu2 from the Ubuntu repository. MariaDB seems to still work fine after this downgrade, at least for the tasks I use it for, but I had to put a hold on mysql-common to keep the system from nagging me to upgrade. |
| Comments |
| Comment by Faustin Lammler [ 2022-02-11 ] | ||||||||||||||||||||||||
|
Hi Phil!
And here is what packages are installed after installing mariadb-server 10.6:
So, the mysql-common packages is not removed even if, you are right, an upgrade is proposed:
Asking apt to not upgrade it seems to be a good workaround as you seems not to need it. It's quite expected that installing packages from 2 non official Ubuntu repository can lead to this kind of situation so I am not sure what we can do (if it is that we should do something). Also this is a special situation where you install packages from another architecture (i386) and we do not provide packages for the i386 architecture on Ubuntu 20.04. On Debian 11, I can't see this problem as wine does not seems to need mysql-common (at least it is not installed);
So maybe the cleaner would be for wine to remove the dependency to libmysqlclient (or libsane/libsnmp)... Anyway, can you share the pointer to the discussion that you had with WineHQ upstream devs. This way an even better/cleaner suggestion could maybe come up. | ||||||||||||||||||||||||
| Comment by Phil Manger [ 2022-02-12 ] | ||||||||||||||||||||||||
|
If I understand you correctly, installing mariadb-server 10.6 AFTER installing Here is the link to my discussion with winehq developers: | ||||||||||||||||||||||||
| Comment by Faustin Lammler [ 2022-02-14 ] | ||||||||||||||||||||||||
|
Hi Phil! I did not test all the scenario but yes installing mariadb 10.6 after winehq 7.0 seems to work. Digging a bit more, and based on https://bugs.winehq.org/show_bug.cgi?id=52459 it seems that libsane had a lot of dependencies and they have been removed on recent versions (1.0.32), see bellow:
I did not search which of the libsane dependency installs MariaDB/MySQL related stuff, but on ubuntu20.04, you end up with those packages if you install libsane:
As you commented, and I agree, there seems to be no reason why WineHQ would require anything from MariaDB (or MySQL). I don't think that there is much more that we can do here (maybe ask libsane maintainers why those huge dependency was needed on old versions). Anyway, thanks again for reporting, this and your bug report on WineHQ will probably help users if they encounter the same dependency problem. | ||||||||||||||||||||||||
| Comment by Phil Manger [ 2022-02-15 ] | ||||||||||||||||||||||||
|
Thanks for all the time you've put into this. I've done some playing around with this. I got the package list for mariadb I dug a little deeper to find what's in the mysql-common package (dpkg-query -L They all look like configuration files which most likely are the same for any The problem is libsane:i386. The chain of dependencies is Anyway, thanks for all your work. Phil Manger On 2/14/22 07:12, Faustin Lammler (Jira) wrote: |