yum error: "error: no dbpath has been set"

PDF

Sometimes it happen that yum generates the error "error: no dbpath has been set" within your VPS. One thing that might solve the problem is to (re)create the special character devices /dev/random and /dev/urandom which provide an interface to the kernel's random number generator. File /dev/random has major device number 1 and minor device number 8. File /dev/urandom has major device number 1 and minor device number 9.

mknod -m 644 /dev/random c 1 8
mknod -m 644 /dev/urandom c 1 9
chown root:root /dev/random /dev/urandom
yum clean all

Now you should be able to use yum again to update, install or remove packages. If this didn't solve the problem you might want to try to rebuild the rpm database:

rm -f /var/lib/rpm/__db*
rpm –rebuilddb
yum clean all
yum update
 

Search






You are here: Home Howtos and FAQs Virtualization yum error: "error: no dbpath has been set"