Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've trying to install virtual box from official ppa (this guide https://www.virtualbox.org/wiki/Linux_Downloads) but then i trying to install

sudo apt-get install virtualbox-4.3 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libsdl-ttf2.0-0
The following NEW packages will be installed:
  libsdl-ttf2.0-0 virtualbox-4.3
0 upgraded, 2 newly installed, 0 to remove and 148 not upgraded.
Need to get 0 B/68.6 MB of archives.
After this operation, 154 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package libsdl-ttf2.0-0:amd64.
(Reading database ... 186449 files and directories currently installed.)
Unpacking libsdl-ttf2.0-0:amd64 (from .../libsdl-ttf2.0-0_2.0.11-3_amd64.deb) ...
Selecting previously unselected package virtualbox-4.3.
Unpacking virtualbox-4.3 (from .../virtualbox-4.3_4.3.6-91406~Ubuntu~raring_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for shared-mime-info ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for mime-support ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Setting up libsdl-ttf2.0-0:amd64 (2.0.11-3) ...
Setting up virtualbox-4.3 (4.3.6-91406~Ubuntu~raring) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 3.8.0-34-generic cannot be found.
Please install the linux-headers-3.8.0-34-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
Processing triggers for libc-bin ...

I cannot install linux-headers-3.8.0-34-generic

 s apt-get install linux-headers-3.8.0-34-generic                                                                                                          
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-3.8.0-34-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-3.8.0-34-generic' has no installation candidate

log

 cat /var/log/vbox-install.log                                                                                                    
Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.3.6/source ->
                 /usr/src/vboxhost-4.3.6

DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.

Can anyone help me? PS Sorry for my writing mistakes. English in not my native language.

share|improve this question

closed as off-topic by Avinash Raj, Mateo, Seth, guntbert, karel Jan 17 at 0:13

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Bug reports and problems specific to development version of Ubuntu should be reported on Launchpad so that developers can see, track and fix these issues." – Avinash Raj, Mateo, Seth, guntbert, karel
If this question can be reworded to fit the rules in the help center, please edit the question.

    
possible duplicate of VirtualBox 4.3 on Ubuntu 13.10 unable to run VM –  Sneetsher Jan 16 at 14:17
    
@Sneetsher i have similar problem, but all answers from this post cannot helps me –  Dark_Daiver Jan 16 at 14:19
    
Development versions of Ubuntu are not supported as host OS. –  guntbert Jan 16 at 21:11

1 Answer 1

up vote 2 down vote accepted

That kernel is obsolete, it's not in the repository any more.

Try these:

uname -a

Please, append its output to the question.

Update the kernel

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install linux-generic

Reboot, check if kernel upgraded:

uname -a

Then see again with virtual box.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.