Running the sudo sh vboxsign.sh and getting "FATAL: Module vboxdrv not found in directory /lib/modules/4.10.0-20-generic"
What am I missing? This ran fine last time, but I've since upgraded, and must have forgotten something. I set working directory correctly.
Try do reinstall "virtualbox-dkms"
For me, reinstalling virtualbox-dkms always gave an error. It was my first time upgrading the kernel, and hadn't upgraded the headers. I needed to also do
and not accept it's first solution (which was to actually do nothing), but accept the second solution which was to upgrade some further library. After that, then
worked for me.
Based on other answers and the Virtualbox official documentation, here is something that worked:
Reinstallation as mentioned above - had not helped me (within (X)Ubuntu 18.04, with the recently updated kernel). What worked in my case:
Setup key with:
Setup repository with:
Download and install the latest version of
VirtualBox
(with all the extra packages) from this link.i had the same problem after updating Kernel to 5.4.0-37 and i faced some problems worth mentioning:
turns out you can't install Guest additions using old versions of Virtual-box (i guess any version before 5.2) while using this new kernel and Virtualbox-dkms is not supported anymore. the only way to solve the problem is to remove old version and install Virtual-box 6 from Oracle but this code:
sudo apt-get purge virtualbox
leaves some stuff behind.after using purge to remove Virtualbox, search "virtualbox" in system directory (/) and manually remove everything then install Virtualbox 6 and Guest addition.
that worked for me.