error running on older kernel

Discussions related to using VirtualBox on Linux hosts.
Post Reply
qwertyjjj
Posts: 14
Joined: 22. May 2011, 19:37
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: xp

error running on older kernel

Post by qwertyjjj »

I select an older kernel when I startup Ubuntu but I cannot tun vboxdrv as it is not found.

get this error when trying to update the headers:

Code: Select all

DKMS: install completed.
Job for virtualbox.service failed. See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
j@j-Aspire-5610:/etc/init.d$ 

Code: Select all

j@j-Aspire-5610:/etc/init.d$ sudo apt-get install linux-headers build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers is a virtual package provided by:
  linux-headers-3.19.0-18-lowlatency 3.19.0-18.18
  linux-headers-3.19.0-18-generic 3.19.0-18.18
  linux-headers-3.19.0-42-lowlatency 3.19.0-42.48
  linux-headers-3.19.0-42-generic 3.19.0-42.48
  linux-headers-3.19.0-41-lowlatency 3.19.0-41.46
  linux-headers-3.19.0-41-generic 3.19.0-41.46
  linux-headers-3.19.0-39-lowlatency 3.19.0-39.44
  linux-headers-3.19.0-39-generic 3.19.0-39.44
  linux-headers-3.19.0-37-lowlatency 3.19.0-37.42
  linux-headers-3.19.0-37-generic 3.19.0-37.42
  linux-headers-3.19.0-33-lowlatency 3.19.0-33.38
  linux-headers-3.19.0-33-generic 3.19.0-33.38
  linux-headers-3.19.0-32-lowlatency 3.19.0-32.37
  linux-headers-3.19.0-32-generic 3.19.0-32.37
  linux-headers-3.19.0-31-lowlatency 3.19.0-31.36
  linux-headers-3.19.0-31-generic 3.19.0-31.36
  linux-headers-3.19.0-30-lowlatency 3.19.0-30.34
  linux-headers-3.19.0-30-generic 3.19.0-30.34
  linux-headers-3.19.0-28-lowlatency 3.19.0-28.30
  linux-headers-3.19.0-28-generic 3.19.0-28.30
  linux-headers-3.19.0-26-lowlatency 3.19.0-26.28
  linux-headers-3.19.0-26-generic 3.19.0-26.28
  linux-headers-3.19.0-25-lowlatency 3.19.0-25.26
  linux-headers-3.19.0-25-generic 3.19.0-25.26
  linux-headers-3.19.0-23-lowlatency 3.19.0-23.24
  linux-headers-3.19.0-23-generic 3.19.0-23.24
  linux-headers-3.19.0-22-lowlatency 3.19.0-22.22
  linux-headers-3.19.0-22-generic 3.19.0-22.22
  linux-headers-3.19.0-21-lowlatency 3.19.0-21.21
  linux-headers-3.19.0-21-generic 3.19.0-21.21
  linux-headers-3.19.0-20-lowlatency 3.19.0-20.20
  linux-headers-3.19.0-20-generic 3.19.0-20.20
  linux-headers-3.19.0-16-lowlatency 3.19.0-16.16
  linux-headers-3.19.0-16-generic 3.19.0-16.16
  linux-headers-3.19.0-15-lowlatency 3.19.0-15.15
  linux-headers-3.19.0-15-generic 3.19.0-15.15
You should explicitly select one to install.

E: Package 'linux-headers' has no installation candidate
j@j-Aspire-5610:/etc/init.d$ 
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: error running on older kernel

Post by Perryg »

Post the results of the following:

uname -r

Also what version of VirtualBox are you running and where did you get it? From VirtualBox.org or the distro?
qwertyjjj
Posts: 14
Joined: 22. May 2011, 19:37
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: xp

Re: error running on older kernel

Post by qwertyjjj »

Perryg wrote:Post the results of the following:

uname -r

Also what version of VirtualBox are you running and where did you get it? From VirtualBox.org or the distro?
uname -r
3.13.0-66-generic

It was from the distro:
j@j-Aspire-5610:~$ vboxmanage --version
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.
4.3.34_Ubuntur104062
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: error running on older kernel

Post by Perryg »

To install the matching headers you just run the following:

Code: Select all

sudo apt-get install linux-headers-$(uname -r)
If you still have issues you will need to ask the distro since we don't support their version here or remove it and install the official version from virtualbox.org
qwertyjjj
Posts: 14
Joined: 22. May 2011, 19:37
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: xp

Re: error running on older kernel

Post by qwertyjjj »

Perryg wrote:To install the matching headers you just run the following:

Code: Select all

sudo apt-get install linux-headers-$(uname -r)
If you still have issues you will need to ask the distro since we don't support their version here or remove it and install the official version from virtualbox.org
j@j-Aspire-5610:~$ sudo apt-get install linux-headers-$(uname -r)
[sudo] password for j:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-3.13.0-66-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.13.0-66-generic' has no installation candidate
j@j-Aspire-5610:~$
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: error running on older kernel

Post by Perryg »

There you have it. Now you talk to the distro.
Post Reply