CPanel / WHM

Error: rpmdb open failed

Error: rpmdb open failed

 

If you are running easyapache and getting the below error or while updating any package using yum and getting the error:

TypeError: rpmdb open failed
TypeError: rpmdb open failed

 

Solution:

Go to the below folder

cd /dev/

Rename unrandom file.

mv urandom urandom-bak

Recreate the file using below command

mknod -m 644 /dev/urandom c 1 9

Done.