Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 60038  / 3 Years ago, mon, september 6, 2021, 9:48:24

After upgrading from 11.10 to 12.04, virtual box stopped working.



I've run the following to try to fix it:



sudo aptitude update
sudo aptitude install dkms
sudo /etc/init.d/vboxdrv setup


but when i run the last command I get:



bash: /etc/init.d/vboxdrv: No such file or directory


When I try



sudo /etc/init.d/virtualbox start


I get:



 * Starting VirtualBox kernel modules
* No suitable module for running kernel found


I've also tried:



sudo dkms install virtualbox/4.1.2


and got:



Error! Could not find module source directory.
Directory: /usr/src/virtualbox-4.1.2 does not exist.


I've also tried installing linux headers:



sudo apt-get install linux-headers-$(uname -r)


but they were already installed.



From what I've read re-installing may not fix the problem. Is there a way I can fix virtual box?


More From » kernel

 Answers
4

I ended up uninstalling and reinstalling virtualbox using apt-get. It saw that there were kernel parts missing and installed them.



sudo apt-get remove virtualbox
sudo apt-get install virtualbox

[#39028] Wednesday, September 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mugustered

Total Points: 193
Total Questions: 123
Total Answers: 108

Location: Bermuda
Member since Wed, Mar 22, 2023
1 Year ago
;