Skip to main content
Question

mariadb/mysql conflit lors d'un yum update (EL9)

  • May 22, 2026
  • 1 reply
  • 7 views

Forum|alt.badge.img+3

[root@shvit-centreo01 rpm]# dnf -y update
Updating Subscription Management repositories.

This system has release set to 9 and it receives updates only for this release.

Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                               28 kB/s | 4.5 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                  49 kB/s | 4.1 kB     00:00
epel_9                                                                                                 46 kB/s | 2.3 kB     00:00
Foreman_Client_el9                                                                                     58 kB/s | 1.5 kB     00:00
puppet_el9                                                                                             38 kB/s | 1.5 kB     00:00
Error:
 Problem 1: package mysql-libs-8.0.45-1.el9_7.x86_64 from @System requires mysql-common(x86-64) = 8.0.45-1.el9_7, but none of the providers can be installed
  - package MariaDB-common-10.11.17-1.el9.x86_64 from mariadb-main obsoletes mysql-common provided by mysql-common-8.0.45-1.el9_7.x86_64 from @System
  - package MariaDB-common-10.11.17-1.el9.x86_64 from mariadb-main obsoletes mysql-common provided by mysql-common-8.0.45-1.el9_7.x86_64 from rhel-9-for-x86_64-appstream-rpms
  - cannot install the best update candidate for package mysql-libs-8.0.45-1.el9_7.x86_64
  - cannot install the best update candidate for package MariaDB-common-10.11.16-1.el9.x86_64
 Problem 2: package perl-DBD-MySQL-4.053-2.el9.x86_64 from rhel-9-for-x86_64-appstream-rpms requires libmysqlclient.so.21()(64bit), but none of the providers can be installed
  - package perl-DBD-MySQL-4.053-2.el9.x86_64 from rhel-9-for-x86_64-appstream-rpms requires libmysqlclient.so.21(libmysqlclient_21.0)(64bit), but none of the providers can be installed
  - package mysql-libs-8.0.45-1.el9_7.x86_64 from @System requires mysql-common(x86-64) = 8.0.45-1.el9_7, but none of the providers can be installed
  - package mysql-libs-8.0.45-1.el9_7.x86_64 from rhel-9-for-x86_64-appstream-rpms requires mysql-common(x86-64) = 8.0.45-1.el9_7, but none of the providers can be installed
  - package mysql-libs-8.0.43-1.el9_6.x86_64 from rhel-9-for-x86_64-appstream-rpms requires mysql-common(x86-64) = 8.0.43-1.el9_6, but none of the providers can be installed
  - package mysql-libs-8.0.44-1.el9_7.x86_64 from rhel-9-for-x86_64-appstream-rpms requires mysql-common(x86-64) = 8.0.44-1.el9_7, but none of the providers can be installed
  - package MariaDB-common-10.11.17-1.el9.x86_64 from mariadb-main obsoletes mysql-common provided by mysql-common-8.0.45-1.el9_7.x86_64 from @System
  - package MariaDB-common-10.11.17-1.el9.x86_64 from mariadb-main obsoletes mysql-common provided by mysql-common-8.0.43-1.el9_6.x86_64 from rhel-9-for-x86_64-appstream-rpms
  - package MariaDB-common-10.11.17-1.el9.x86_64 from mariadb-main obsoletes mysql-common provided by mysql-common-8.0.44-1.el9_7.x86_64 from rhel-9-for-x86_64-appstream-rpms
  - package MariaDB-common-10.11.17-1.el9.x86_64 from mariadb-main obsoletes mysql-common provided by mysql-common-8.0.45-1.el9_7.x86_64 from rhel-9-for-x86_64-appstream-rpms
  - cannot install the best update candidate for package perl-DBD-MySQL-4.053-1.el9.x86_64
  - cannot install the best update candidate for package mysql-common-8.0.45-1.el9_7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
You have mail in /var/spool/mail/root

 

Comment sortir de ce problème récurant une bonne fois pour toutes…

Impossible de retirer les packages mysql:

[root@shvit-centreo01 rpm]# rpm -e perl-DBD-MySQL-4.053-1.el9.x86_64
error: Failed dependencies:
        perl(DBD::mysql) is needed by (installed) pcp-pmda-mysql-6.3.7-5.el9.x86_64
        perl(DBD::mysql) is needed by (installed) centreon-plugin-Applications-Databases-Mysql-20260400-1.el9.noarch
        perl(DBD::mysql) is needed by (installed) centreon-plugin-Applications-Monitoring-Centreon-Central-20260400-1.el9.noarch
        perl(DBD::mysql) is needed by (installed) centreon-plugin-Applications-Monitoring-Centreon-SQL-Metrics-20260400-1.el9.noarch
        perl(DBD::mysql) is needed by (installed) centreon-plugin-Applications-Monitoring-Centreon-Database-20260400-1.el9.noarch
        perl(DBD::mysql) is needed by (installed) centreon-gorgone-25.10.6-1.el9.noarch
        perl-DBD-MySQL is needed by (installed) centreon-poller-25.10.11-1.el9.noarch
        perl-DBD-MySQL is needed by (installed) centreon-web-25.10.11-1.el9.noarch

 

[root@shvit-centreo01 rpm]# rpm -e mysql-common-8.0.45-1.el9_7.x86_64
error: Failed dependencies:
        mysql-common(x86-64) = 8.0.45-1.el9_7 is needed by (installed) mysql-libs-8.0.45-1.el9_7.x86_64

[root@shvit-centreo01 rpm]# rpm -e mysql-libs-8.0.45-1.el9_7.x86_64
error: Failed dependencies:
        libmysqlclient.so.21()(64bit) is needed by (installed) perl-DBD-MySQL-4.053-1.el9.x86_64
        libmysqlclient.so.21(libmysqlclient_21.0)(64bit) is needed by (installed) perl-DBD-MySQL-4.053-1.el9.x86_64

Le serpent se mord la queuemysql est un requirement (indirect) de centreon-gorgone-25.10.6-1.el9.noarch centreon-poller-25.10.11-1.el9.noarch et centreon-web-25.10.11-1.el9.noarch
Et mysql entre en conflit avec MariaDB…
 

Que faire ???

1 reply

Forum|alt.badge.img+13

Bonjour, c’est un problème en cours depuis un petit moment qui est lié a la librairie perl de mysql en effet. Il y a une issue et une PR en attente sur le sujet Centreon 25.10 - Compatibility with perl-DBD-MySQL for MariaDB installations · Issue #9134 · centreon/centreon