Ubuntu – Why do Guest Additions need kernel headers in VirtualBox 4.04.

11.10guest-additionsvirtualbox

I'm trying to install the Guest Additions in VirtualBox 4.04.on ubuntu 11.10

I have this error:

The headers for the current running kernel were not found.
If the module compilation fails then this could be the reason.

Note that I have already installed the headers but still get this error.

Do you have you an ideas please?

Best Answer

I found that installing dkms with

sudo apt-get install dkms

resolved this error/warning for me. See this answer.