Issue
After switching from cl-MySQL to cl-MariaDB the following error appears during packages update:
Error:
Problem 1: package cl-MariaDB105-libs-10.5.22-3.module_el8.8.0+6713+659bc050.cloudlinux.x86_64 conflicts with cl-MySQL80-libs provided by cl-MySQL80-libs-8.0.34-1.module_el8.8.0+6687+b12e7459.cloudlinux.x86_64
- cannot install the best update candidate for package cl-MySQL80-libs-8.0.34-1.module_el8.8.0+6687+b12e7459.cloudlinux.x86_64
- cannot install the best update candidate for package cl-MariaDB105-libs-10.5.21-2.module_el8.8.0+6681+efa2b240.cloudlinux.x86_64
Problem 2: problem with installed package cl-MySQL80-libs-8.0.34-1.module_el8.8.0+6687+b12e7459.cloudlinux.x86_64
- package cl-MariaDB105-libs-10.5.22-3.module_el8.8.0+6713+659bc050.cloudlinux.x86_64 conflicts with cl-MySQL80-libs provided by cl-MySQL80-libs-8.0.34-1.module_el8.8.0+6687+b12e7459.cloudlinux.x86_64
- package cl-MariaDB105-10.5.22-3.module_el8.8.0+6713+659bc050.cloudlinux.x86_64 requires cl-MariaDB105-libs = 10.5.22-3.module_el8.8.0+6713+659bc050.cloudlinux, but none of the providers can be installed
- cannot install the best update candidate for package cl-MariaDB105-10.5.21-2.module_el8.8.0+6681+efa2b240.cloudlinux.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Environment
- CloudLinux
- cl-MariaDB 10.5
Solution
- Ensure that /etc/yum.repos.d/cl-mysql.repo file exists and contains the following
[cl-mysql] name=cl-mysql baseurl=https://repo.cloudlinux.com/other/cl$releasever/mysqlmeta/mysqlglobalrepo/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux [mysqclient] name=mysqlclient baseurl=https://repo.cloudlinux.com/other/cl$releasever/mysqlmeta/mysqlclient/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux
- Install mysqlclient21 to fix dependency
# yum install mysqlclient21 --enablerepo=mysqclient
- Remove remnants with
# yum remove cl-MySQL80*
Note: In given example,cl-MySQL80-libs-8.0.34-1.module_el8.8.0+6687+b12e7459
conflicting withcl-MariaDB105-libs-10.5.22-3.module_el8.8.0+6713+659bc050.cloudlinux.x86_64
It is also better to leavemysqclient
repo disabled, after installing mysqlclient21 package once. We expect that only one package set from cl-MySQL/cl-MariaDB sets will be installed. - Re-run the update:
# yum update
Cause
Packages conflict
Comments
0 comments
Please sign in to leave a comment.