Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not a Bug
-
10.6.5
-
Linux Mint 20.3/Ubuntu 20.04
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.
Attachments
Issue Links
- relates to
-
MDEV-5230 Ubuntu's Software Updater wants to uninstall MariaDB; then, cannot re-access the database.
-
- Closed
-
Hi Phil!
After installing WineHQ 7.0, those are the maryadb/mysql related packages (tested on Ubuntu 20.04):
root@b63f673b7909:/# dpkg -l | grep -E '(mariadb|mysql)'
ii libmysqlclient21:amd64 8.0.28-0ubuntu0.20.04.3 amd64 MySQL database client library
ii libmysqlclient21:i386 8.0.28-0ubuntu0.20.04.3 i386 MySQL database client library
ii mysql-common 5.8+1.0.5ubuntu2 all MySQL database common files, e.g. /etc/mysql/my.cnf
And here is what packages are installed after installing mariadb-server 10.6:
root@b63f673b7909:/# dpkg -l | grep -E '(mariadb|mysql)'
ii libdbd-mariadb-perl 1.11-3ubuntu2 amd64 Perl5 database interface to the MariaDB/MySQL databases
ii libmariadb3:amd64 1:10.6.5+maria~focal amd64 MariaDB database client library
ii libmysqlclient21:amd64 8.0.28-0ubuntu0.20.04.3 amd64 MySQL database client library
ii libmysqlclient21:i386 8.0.28-0ubuntu0.20.04.3 i386 MySQL database client library
ii mariadb-client-10.6 1:10.6.5+maria~focal amd64 MariaDB database client binaries
ii mariadb-client-core-10.6 1:10.6.5+maria~focal amd64 MariaDB database core client binaries
ii mariadb-common 1:10.6.5+maria~focal all MariaDB common configuration files
ii mariadb-server 1:10.6.5+maria~focal all MariaDB database server (metapackage depending on the latest version)
ii mariadb-server-10.6 1:10.6.5+maria~focal amd64 MariaDB database server binaries
ii mariadb-server-core-10.6 1:10.6.5+maria~focal amd64 MariaDB database core server files
ii mysql-common 5.8+1.0.5ubuntu2 all MySQL database common files, e.g. /etc/mysql/my.cnf
So, the mysql-common packages is not removed even if, you are right, an upgrade is proposed:
root@b63f673b7909:/# apt list --upgradable
Listing... Done
mysql-common/unknown 1:10.6.5+maria~focal all [upgradable from: 5.8+1.0.5ubuntu2]
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);
root@6354444a3724:/# dpkg -l | grep -E '(wine|mysql|mariadb)'
ii wine-stable 7.0.0.0~bullseye-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-stable-amd64 7.0.0.0~bullseye-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-stable-i386:i386 7.0.0.0~bullseye-1 i386 WINE Is Not An Emulator - runs MS Windows programs
ii winehq-stable 7.0.0.0~bullseye-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
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.