I want to reinstall Oracle VirtualBox as it isn't working (The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (5.3.0-7629-generic) or it failed to load. Please recompile the kernel module by and install it by sudo /sbin/vboxconfig
)
What I'm worried about is that whether my current virtual machine gets deleted after using sudo apt install --reinstall virtualbox
.
I tried manually upgrading it from its current version 5.2 to 6.1 with dpkg -i
but it says that the new version conflicts with the new one.
So how can I safely reinstall VirtualBox so that I will still be able to my current VM?
PS. I think the problem with VirtualBox started after upgrading to the new kernel.
Your problem : virtualbox was installed once and the settings in your machine might be saved somewhere . Remove it completely with .
Uninstall virtualbox first:
install it again. Run this command:
This also help to fix broken packages, so if these commands above failed tried to fix packages first and then remove and install the virtualbox: