Page 1 of 1

Ubuntu 16.10 Vbox 5.0.28

Posted: 25. Oct 2016, 15:53
by fredy ms
Hello,

Before update Vbox i found the following error, any suggestion or clue. thanks in advance.
Kernel: x86_64 Linux 4.4.0-36-generic

Code: Select all

irtualBox Guest Additions installer
Removing installed version 5.0.28 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
update-initramfs: Generating /boot/initrd.img-4.2.0-22-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-28-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-36-generic
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
here goes the content of the file /var/log/vboxadd-install.log

Code: Select all

Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/5.0.28/source ->
                 /usr/src/vboxguest-5.0.28

DKMS: add completed.
Error! Your kernel headers for kernel 4.4.0-36-generic cannot be found.
Please install the linux-headers-4.4.0-36-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
Failed to install using DKMS, attempting to install without
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of
 your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Al
to.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Re: Ubuntu 16.10 Vbox 5.0.28

Posted: 25. Oct 2016, 16:52
by Perryg
Error! Your kernel headers for kernel 4.4.0-36-generic cannot be found.
Please install the linux-headers-4.4.0-36-generic package,
Did you do what was suggested?

Re: Ubuntu 16.10 Vbox 5.0.28

Posted: 25. Oct 2016, 17:53
by fredy ms
As you could see in the first lines of the description, the kernel suggested is already installed.

Re: Ubuntu 16.10 Vbox 5.0.28

Posted: 25. Oct 2016, 18:00
by Perryg
Could you point me to where in the above information it states that the headers are installed? I don't see it.

Re: Ubuntu 16.10 Vbox 5.0.28

Posted: 25. Oct 2016, 18:01
by socratis
"kernel-headers", not just "kernel". Theere is a huge difference.

Re: Ubuntu 16.10 Vbox 5.0.28

Posted: 25. Oct 2016, 20:43
by fredy ms
I use uname -r to obtain current kernel
4.4.0-36-generic
I also try

Code: Select all

sudo apt-get install linux-headers-$(uname -r)
but unsucesfully, linux-headers-4.4.0-36-generic unavailable.... :?: :?: :?:

Re: Ubuntu 16.10 Vbox 5.0.28

Posted: 25. Oct 2016, 20:59
by socratis
Well, you either you gotta change kernels, or you gotta find the headers (change repository? install them manually?). There's no way around it.

Most probably, you'll have to update the kernel, because from the Launchpad site, there is no 4.4.0-36 support.
https://launchpad.net/ubuntu/yakkety/+p ... rs-generic

Re: Ubuntu 16.10 Vbox 5.0.28

Posted: 26. Oct 2016, 14:13
by fredy ms
Hello,

Virtual Box has release a new versión, i just check it and fix the problem above. :D

VirtualBox 5.1.8 please go to virtualbox wiki downloads. to find the package.


Hope this helps.