Symptoms
When upgrading or after converting Plesk Obsidian on CentOS 8 to AlmaLinux fails with the following error message:
CONFIG_TEXT: Error:
Problem 1: cannot install the best update candidate for package awstats-7.7-2.centos.8+p18.0.35.0+t210311.0745.noarch
– nothing provides perl(Switch) needed by awstats-7.8-2.el8.noarch
Problem 2: package plesk-lmlib-0.2.4-1centos.8.210430.1630.x86_64 requires log4cplus >= 1.2.0.1, but none of the providers can be installed
– log4cplus-1.2.0.1-1centos.8.210430.1630.x86_64 does not belong to a distupgrade repository
– problem with installed package plesk-lmlib-0.2.4-1centos.8.210430.1630.x86_64
Problem 3: package plesk-lmlib-0.2.4-1centos.8.210430.1630.x86_64 requires log4cplus >= 1.2.0.1, but none of the providers can be installed
– cannot install both log4cplus-1.2.0-11.el8.x86_64 and log4cplus-1.2.0.1-1centos.8.210430.1630.x86_64
– package sw-engine-3.36.0-1centos.8.210430.1630.x86_64 requires plesk-lmlib >= 0.2.4, but none of the providers can be installed
– package sw-engine-3.36.0-1centos.8.210430.1630.x86_64 requires liblock_manager.so.2()(64bit), but none of the providers can be installed
– cannot install the best update candidate for package log4cplus-1.2.0.1-1centos.8.210430.1630.x86_64
– problem with installed package sw-engine-3.36.0-1centos.8.210430.1630.x86_64
Cause
Plesk packages conflict with the Epel repository packages when the Epel repository is enabled on CentOS 8 or AlmaLinux
Resolution
Warning: The following workaround must persist once CentOS 8 will be converted to AlmaLinux to avoid conflicts with packages
Apply one of the following workarounds:
Exclude packages from the Epel repository
-
Connect to the server via SSH
-
Exclude the conflictive packages from the Epel repository:
Note: The following command will exclude the package log4cplys and awstats from the Epel repository
# sed -i.backup ‘s/enabled=1$/enabled=1nexclude=log4cplus,awstats/g’ /etc/yum.repos.d/epel.repo
Disable Epel repository
-
Connect to the server via SSH
-
Disable the Epel repository:
# sed -i.backup ‘s/enabled=1/enabled=0/g’ /etc/yum.repos.d/epel.repo