0

I'm running a CentOS 6 server with VirtualBox 4.2 Headless. Lately my virtualbox installation hasn't been running correctly.
The problem is that, whenever I try to do something I get this error:

[user@server ~]$ VBoxManage list vms
/usr/lib/virtualbox/VBoxManage: error while loading shared libraries: VBoxDDU.so
: cannot open shared object file: No such file or directory

I believe this is happening because one of my virtual machines were not working. So, after following a forum, I added symlinks to the /usr/lib/virtualbox/components directory. After that didn't fix the problem, I followed another guide that did offer me a solution. But, when I tried to remove the links, I accidentally removed them from /usr/lib/virtualbox/ directory.
After trying to re-add them from the components directory, I get an error saying that it already exists. But, I don't know where to add the symlinks in the /usr/lib/virtualbox/ directory. I have run

rpm -V VirtualBox-4.2  

And it has yielded that I am, as I suspected, missing the dependencies that I accidentally removed. But, I'm not quite sure how to install all the missing dependencies (as there are quite a few, I would like to install them all at once.) and restore VirtualBox to its original state. Can anyone offer some advice?
I have tried just a yum install of VirtualBox 4.2, but to no avail.

Thanks

Chris Powell
  • 300
  • 1
  • 4
  • 17

1 Answers1

4

This command shouldn't be showing you missing dependencies. It's showing you files from the VirtualBox box package that do not match their RPM (and why.)

Before you reinstall the RPM, these files will need to be deleted, or preferably renamed, since the install probably will not over write configuration. Afterwards, you can use yum reinstall VirtualBox-4.2.

Aaron Copley
  • 12,525
  • 5
  • 47
  • 68