I am trying to install virtualbox on ubuntu 8.10 amd64 with "sudo aptitude install virtualbox-ose". It ends up with the following error message:
Error! Your kernel source for kernel 2.6.2-7-generic cannot be found at /lib/modules/2.6.27-7-generic/build or /lib/modules/2.6.27-7-generic/source. Installing initial module
Error! Could not locate vboxdrv.ko for module vboxdrv in the DKMS tree.
You must run a dkms build for kernel 2.6.27-7-generic (x86_64) first.
This error is solved by running "sudo aptitude install linux-headers-$(uname -r)" as suggested by some Einstein at here.