Issue
Yum cannot install updates for packages on the server with Imunify360 with the following errors:
# yum update
Imunify360 alt-php repository for CentOS 8 - x86_64 819 kB/s | 1.4 MB 00:01
Error:
Problem 1: cannot install the best update candidate for package borgbackup-1.1.16-1.el8.x86_64
- nothing provides python3.6dist(packaging) needed by borgbackup-1.1.17-1.el8.x86_64
Problem 2: package alt-php-internal-sqlite3-7.4.16-1.el8.x86_64 requires alt-php-internal-common = 7.4.16-1.el8, but none of the providers can be installed
- cannot install both alt-php-internal-common-7.4.21-3.el8.x86_64 and alt-php-internal-common-7.4.16-1.el8.x86_64
- cannot install the best update candidate for package alt-php-internal-sqlite3-7.4.16-1.el8.x86_64
- cannot install the best update candidate for package alt-php-internal-common-7.4.16-1.el8.x86_64
Problem 3: problem with installed package alt-php-internal-sqlite3-7.4.16-1.el8.x86_64
- package alt-php-internal-sqlite3-7.4.16-1.el8.x86_64 requires alt-php-internal-common = 7.4.16-1.el8, but none of the providers can be installed
- package alt-php-internal-common-7.4.16-1.el8.x86_64 requires alt-php-internal = 7.4.16-1.el8, but none of the providers can be installed
- cannot install both alt-php-internal-7.4.21-3.el8.x86_64 and alt-php-internal-7.4.16-1.el8.x86_64
- cannot install the best update candidate for package alt-php-internal-7.4.16-1.el8.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
- Imunify360
- Yum
- CentOS/AlmaLinux
Solution
Check for the "best=True" line in /etc/yum.conf or /etc/dnf/dnf.conf and change it to "best=False". Run yum update again after that.
# cat /etc/yum.conf | grep best
best=False
Change it back after the update if needed.
Cause
True option in yum 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 reasons.
Useful links
https://dnf.readthedocs.io/en/latest/conf_ref.html
Comments
0 comments
Please sign in to leave a comment.