Ubuntu Forums (Ubuntu Linux Support)

Ubuntu Desktop => Desktop Environments => Topic started by: cristiancete56 on October 19, 2011, 12:53:06 PM

Title: Updating VirtualBox for Ubuntu 10.04
Post by: cristiancete56 on October 19, 2011, 12:53:06 PM
When tryng to update my virtualbox I'm promted to reinstal the kernel. I recieve these error messages,
sudo /etc/init.d/vboxdrv setup
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
 * Stopping VirtualBox kernel modules                                    [ OK ]
 * Uninstalling old VirtualBox DKMS kernel modules                       [ OK ]
 * Trying to register the VirtualBox kernel modules using DKMS                 
Error! Your kernel headers for kernel 2.6.32-35-generic-pae cannot be found at
/lib/modules/2.6.32-35-generic-pae/build or /lib/modules/2.6.32-35-generic-pae/source.
 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules                                       
 * Look at /var/log/vbox-install.log to find out what went wrong
Log file says,
Uninstalling modules from DKMS
  removing old DKMS module vboxhost version  4.1.4
Deleting module version: 4.1.4
completely from the DKMS tree.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/4.1.4/source ->
DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located, or you could install the linux-headers-2.6.32-35-generic-pae package.
Failed to install using DKMS, attempting to install without
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Alto.

What I am supposed to do now? Thank you very much in advance.