Table of Contents
Issue
In some cases, you get the following error when update or install a package on CentOS 8/RHEL 8:
Error:
Problem: cannot install the best candidate for the job
- nothing provides libpmem.so.1()(64bit) needed by MariaDB-server-10.8.5-1.el8.x86_64
- nothing provides libpmem.so.1(LIBPMEM_1.0)(64bit) needed by MariaDB-server-10.8.5-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Solution
Check for the best=True line in /etc/yum.conf or /etc/dnf/dnf.conf
# cat /etc/yum.conf | grep best
best=True
# cat /etc/dnf/dnf.conf | grep best
best=True
True option in yum/dnf configuration, can be used to install a package with the highest available version or fail if it is not possible. With False option, yum do not fail if the latest version cannot be installed and go with the lower version. The default value for this option is False, but it can be changed on True for some Linux distributions.
You need to change it to best=False. You can use any text editor to open these files then change that option. Alternatively, let’s simple run the following commands to change it automatically.
sudo sed -i 's/best=True/best=False/g' /etc/yum.conf
sudo sed -i 's/best=True/best=False/g' /etc/dnf/dnf.conf
# cat /etc/yum.conf | grep best
best=False
# cat /etc/dnf/dnf.conf | grep best
best=False
ADVERTISEMENT
5/5 - (1 vote)