Knowledgebase: Virtual Private Servers
RPM won't work / dbpath error
Posted by Cody R., Last modified by Cody R. on 06 July 2010 04:19 PM
If you receive error(s) similar to these you will likely need to re-create /dev/urandom as it's a known OpenVZ kernel bug:

[[email protected] ~]# yum update
Loaded plugins: fastestmirror
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}

To fix this error issue the following commands:

rm -f /dev/urandom
mknod -m 644 /dev/urandom c 1 9

You should now be able to run RPM / Yum. If you're still experiencing issues please contact our VPS support department.
(291 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).