The RPM DB is corrupt CPANEL WHM (como resolver)
Se a mensagem que você está recebendo for:
An automatic check on (Host Name) found the RPM database to be corrupted. An attempt was made to automatically fix the database but it was not successful. Please resolve this problem on your system. A backup of the original state of the RPM database directory can be found at /var/lib/rpm.rebuild.backup*
Tente as seguintes soluções logado no console (como root):
1 2 3 |
mkdir /root/old_rpm_dbs/ mv /var/lib/rpm/__db* /root/old_rpm_dbs/ rpm --rebuilddb |
Se o erro persistir, logando no console (como root) rode:
1 |
/scripts/rpmup |
1 |
<strong>Caso resolva com este comando, ok, se ocorrer o erro abaixo é por que sua biblioteca GLIBC não estão 100%:</strong> |
1 2 |
rpm: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory /usr/bin/perl: error while loading shared libraries: libresolv.so.2: cannot open shared object file: No such file or directory |
1 |
<strong>Veja se está ok com o seguinte comando:</strong> |
1 |
rpm -q glibc |
1 |
<strong>Se a resposta for:</strong> |
1 |
<strong>package glibc is not installed</strong> |
1 |
<strong>Vamos instalar o pacote:</strong> |
1 |
yum --enablerepo=updates-testing --enablerepo=testing install glibc-devel |
1 |