Hi
I need to run dnf updates on an Rocky Linux 8 server, but it seems that dependencies for mariadb are broken.
# dnf update
Rocky Linux 8 - AppStream 21 MB/s | 12 MB 00:00
Rocky Linux 8 - BaseOS 19 MB/s | 8.2 MB 00:00
Rocky Linux 8 - Extras 64 kB/s | 14 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 9.6 MB/s | 14 MB 00:01
MariaDB 1.5 MB/s | 606 kB 00:00
Error:
Problem 1: package MariaDB-shared-10.5.24-1.el8.x86_64 from mariadb requires MariaDB-common, but none of the providers can be installed
- cannot install the best update candidate for package mariadb-connector-c-3.1.11-2.el8_3.x86_64
- package MariaDB-common-10.5.22-1.el8.x86_64 from mariadb is filtered out by modular filtering
- package MariaDB-common-10.5.23-1.el8.x86_64 from mariadb is filtered out by modular filtering
- package MariaDB-common-10.5.24-1.el8.x86_64 from mariadb is filtered out by modular filtering
Problem 2: package MariaDB-shared-10.5.24-1.el8.x86_64 from mariadb requires MariaDB-common, but none of the providers can be installed
- cannot install the best update candidate for package mariadb-connector-c-config-3.1.11-2.el8_3.noarch
- package MariaDB-common-10.5.22-1.el8.x86_64 from mariadb is filtered out by modular filtering
- package MariaDB-common-10.5.23-1.el8.x86_64 from mariadb is filtered out by modular filtering
- package MariaDB-common-10.5.24-1.el8.x86_64 from mariadb is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
This system is configured to use a particular version of mariadb, and not the default version.
# dnf module list mariadb
Last metadata expiration check: 0:00:20 ago on Di 14 Mai 2024 21:18:54 CEST.
Rocky Linux 8 - AppStream
Name Stream Profiles Summary
mariadb 10.3 [d] client, galera, server [d] MariaDB Module
mariadb 10.5 [e] client, galera, server [d] MariaDB Module
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
I am also adding the contents of the repo file:
# cat /etc/yum.repos.d/mariaDB.repo
[mariadb]
name = MariaDB
baseurl = https://rpm.mariadb.org/10.5/rhel/$releasever/$basearch
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
I tried uninstalling the mariadb software (using dnf module reset mariadb) and installing the default version of mariadb (10.3), but the database server was unable to start the database, because it didn’t understand the transaction log format.
I have also tried to uninstall/re-install the same version 10.5, but I am always getting the above dependency problems.
How could the dnf issues be resolved?
Presumably, the application would also run with a new version of mariadb >10.5.