Symptoms
When attempting to install or update packages for Easyapache4 the following error is reported.
Error: Package: xz-lzma-compat-5.2.2-1.el7.x86_64 (base)
Requires: xz = 5.2.2-1.el7
Installed: xz-5.2.2-1.el7.cloudlinux.x86_64 (@cloudlinux-x86_64-server-7)
Description
This error is caused by a package conflict with CloudLinux provided rpm packages on a CentOS system. This is only expected to occur on servers in which Cloudlinux was previously uninstalled. When performing the uninstall, some CloudLinux packages are not removed automatically. This is due to potential problems that can occur with excludes, dependencies, or protected packages. This normally includes the packages xz, xz-libs, and xz-devel that are dependencies for the xz-lxzma-compat package. The expectation is that these packages will later be replaced by newer versions released by CentOS, but if no update has occurred this can result in dependency conflicts.
Workaround
To resolve this conflict, you will need to downgrade these packages to those provided by the CentOS repository. Before making any changes, it is advised that you confirm each package shows Cloudlinux as the vendor.
rpm -qa --queryformat '%{name}-%{version}-%{release} %{vendor}\n' | grep CloudLinux | grep xz
If the above command shows that the xz package group are installed from the CloudLinux repostiroy, you can use the following command to downgrade them to the one provided by the CentOS Base repository.
yum downgrade xz xz-devel xz-libs
Please be aware that the xz-libs is a critical package that should never be uninstalled. Removing this package will cause some services including SSH and utilities on your server to fail. This library is required by the yum package manager and complete removal will prevent normal package installations.
For additional information regarding this, see the following article.
Comments
0 comments
Article is closed for comments.