if that doesn't work try installing it from source.
Main Topics
Browse All TopicsI am attempting to install Sun Virtualbox on my Ubuntu laptop. I am downloading the .deb file from Sun's website. The install stops and tells me to check the vbox-install.log file.
** Compiling vboxdrv
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxdrv/3.0.
/usr/src/vboxdrv-3.0.8
DKMS: add Completed.
Error! Your kernel source for kernel 2.6.24-24-lpia cannot be found at
/lib/modules/2.6.24-24-lpi
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:147: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
What can I do to fix this and get virtualbox installed?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is the output from what _3mp3ror_ suggested:
jon@jon:~$ sudo apt-get update
[sudo] password for jon:
Hit http://download.virtualbox
Ign http://download.virtualbox
Hit http://download.virtualbox
Hit http://dell-mini.archive.c
Ign http://dell-mini.archive.c
(deleted other rows of text that didn't apply)
W: Failed to fetch http://download.virtualbox
E: Some index files failed to download, they have been ignored, or old ones used instead.
jon@jon:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jon@jon:~$ sudo apt-get install linux-headers-generic linux-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-headers-generic
What isn't configured or configured incorrectly? Thanks for your time!
Business Accounts
Answer for Membership
by: _3mp3ror_Posted on 2009-10-20 at 19:05:21ID: 25620308
try:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install linux-headers-generic linux-source