CloudLinux 9: “cannot install both”

Nong O Xy25Dj7Mo Unsplash

Recentemente tive um servidor com um erro estranho. O sistema possui o Cloudlinux 9.4, e encontra-se com o cPanel.

De um dia para o outro, as atualizações começaram a falhar. Quando tentava correr o yum update, o resultado era algo parecido com isto:

 

# yum update
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 0:10:06 ago on Thu 21 Nov 2024 12:15:09 PM EST.
Error:
Problem 1: package glibc-locale-source-2.34-100.el9_4.4.x86_64 from @System requires glibc-common = 2.34-100.el9_4.4, but none of the providers can be installed
- cannot install both glibc-common-2.34-125.el9_5.1.x86_64 from repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_ and glibc-common-2.34-100.el9_4.4.x86_64 from @System
- cannot install both glibc-common-2.34-125.el9_5.1.x86_64 from repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_ and glibc-common-2.34-100.el9_4.4.x86_64 from baseos
- cannot install the best update candidate for package glibc-locale-source-2.34-100.el9_4.4.x86_64
- cannot install the best update candidate for package glibc-common-2.34-100.el9_4.4.x86_64
Problem 2: package libstdc++-devel-11.4.1-3.el9.alma.1.x86_64 from @System requires libstdc++(x86-64) = 11.4.1-3.el9.alma.1, but none of the providers can be installed
- cannot install both libstdc++-11.5.0-2.el9.alma.1.x86_64 from repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_ and libstdc++-11.4.1-3.el9.alma.1.x86_64 from @System
- cannot install both libstdc++-11.5.0-2.el9.alma.1.x86_64 from repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_ and libstdc++-11.4.1-3.el9.alma.1.x86_64 from baseos
- cannot install the best update candidate for package libstdc++-devel-11.4.1-3.el9.alma.1.x86_64
- cannot install the best update candidate for package libstdc++-11.4.1-3.el9.alma.1.x86_64
Problem 3: package libtiff-devel-4.4.0-12.el9_4.1.x86_64 from @System requires libtiff(x86-64) = 4.4.0-12.el9_4.1, but none of the providers can be installed
- cannot install both libtiff-4.4.0-13.el9.x86_64 from repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_ and libtiff-4.4.0-12.el9_4.1.x86_64 from @System
- cannot install both libtiff-4.4.0-13.el9.x86_64 from repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_ and libtiff-4.4.0-12.el9_4.1.x86_64 from appstream
- cannot install the best update candidate for package libtiff-devel-4.4.0-12.el9_4.1.x86_64
- cannot install the best update candidate for package libtiff-4.4.0-12.el9_4.1.x86_64
Problem 4: package pam-devel-1.5.1-19.el9.x86_64 from @System requires pam(x86-64) = 1.5.1-19.el9, but none of the providers can be installed
- cannot install both pam-1.5.1-20.el9.x86_64 from repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_ and pam-1.5.1-19.el9.x86_64 from @System
- cannot install both pam-1.5.1-20.el9.x86_64 from repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_ and pam-1.5.1-19.el9.x86_64 from baseos
- cannot install the best update candidate for package pam-devel-1.5.1-19.el9.x86_64
- cannot install the best update candidate for package pam-1.5.1-19.el9.x86_64

Tentei os passos normais para esta situação. O tradicional “yum clean all” e “yum makecache”. Mas mesmo depois destes, o resultado era sempre o mesmo.

Portanto, rapidamente cheguei à conclusão que o problema seria mais “alargado”. Pelo erro, parecia algo relacionado com os repositórios. Uma análise rápida dos mesmos não vi algo “relevante”, mas depois de pesquisar um pouco encontrei isto:

Site de suporte do CloudLinux

Ao que parece, existe um “bug” com o Cloudlinux, que em certos sistemas pode causar conflitos com o repositório BaseOS.

Fazendo os passos para resolver:

mv /etc/yum.repos.d/repo.cloudlinux.com_cloudlinux_9_BaseOS_x86_64_os_.repo{,.bak}
dnf clean all && dnf makecache

Com estes comandos feitos, pude então atualizar novamente…. e voila. Tudo avançou corretamente!

Share