i recently installed virtualbox (after fixing a dpkg error) and am now getting an error message every time i boot it;
~ The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. ~
and
~The virtual machine 'Kali-Linux-2020.1-vbox-amd64' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
MachineWrap
Interface:
IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
~
i have tried everything here https://superuser.com/questions/1438279/how-to-sign-a-kernel-module-ubuntu-18-04 but it has no affect. when i run this command
~apt install virtualbox-dkms~ i get ~Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
virtualbox-dkms : Depends: dkms (>= 2.1.0.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.~
ive tried manually installing dkms and it just leads down a rabbit hole. i am of course signed in as root here. im very new to this so im sorry if i dont quite understand things th first time around. your help is much appreciated!
virtualbox
(6.1.2 for my release) and you avoid all issues... (dkms
in all supported releases matches the requirement in your message)sudo apt -f install
, as that may fix it (a great chance), however even if it cannot; it'll provide clues on what the issue is and how to fix it in it's messages.