I was having a problem with installing a working Virtualbox. Here was my install log......

Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.2.8

-------- Uninstall Beginning --------
Module: vboxdrv
Version: 3.2.8
Kernel: 2.6.32-0206321708-generic (i686)

Status: Before uninstall, this module version was ACTIVE on this kernel.

- Uninstallation
- Deleting from: /lib/modules/2.6.32-0206321708-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod....(bad exit status: 1)

DKMS: uninstall Completed.

Deleting module version: 3.2.8
completely from the DKMS tree.

Creating symlink /var/lib/dkms/vboxdrv/3.2.8/source ->

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.28-17-linuxice2 cannot be found at
/lib/modules/2.6.28-17-linuxice2/build or /lib/modules/2.6.28-17-linuxice2/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

UPDATE: here is the code to fix the installation in case anyone else needs it......

sudo apt-get install linux-headers-$(uname -r)

Then reboot your machine