Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Windows 7 as host, and Ubuntu 12.10 Remix (Ubuntu with pure Gnome) as guest.

Everything working ok. I installed VBoxAdditions in regular way - using corresponding command in VirtualBox VM manager, and then running VBoxLinuxAdditions.run script from mounted drive. Installation process also seems like OK.
BUT, in /var/log/vboxadd-install.log I see this:

Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/4.2.6/source ->
                 /usr/src/vboxguest-4.2.6

DKMS: add completed.
Error! Your kernel headers for kernel 3.5.0-17-generic cannot be found.
Please install the linux-headers-3.5.0-17-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
Failed to install using DKMS, attempting to install without
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Then Im follow instructions and trying to install linux-headers-3.5.0-17-generic, and getting this (last two lines in log after apt-get):

Error! Problems with depmod detected.  Automatically uninstalling this module.
DKMS: Install Failed (depmod problems).  Module rolled back to built state.
share|improve this question
up vote 0 down vote accepted

Please install the linux-headers-3.5.0-17-generic package.

Since virtualbox compiles its module against the current kernel, it needs at least the C header files for this kernel.

share|improve this answer
    
I updated the question, can you take a look please? – Gill Bates Feb 26 '13 at 12:27
1  
@GillBates - You need to find a more detail log other then an log entry saying "a problem was detected" – Ramhound Feb 26 '13 at 13:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .