Ubuntu 16.10 Vbox 5.0.28

Discussions about using Linux guests in VirtualBox.
Post Reply
fredy ms
Posts: 4
Joined: 25. Oct 2016, 15:27

Ubuntu 16.10 Vbox 5.0.28

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 16.10 Vbox 5.0.28

Post 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?
fredy ms
Posts: 4
Joined: 25. Oct 2016, 15:27

Re: Ubuntu 16.10 Vbox 5.0.28

Post by fredy ms »

As you could see in the first lines of the description, the kernel suggested is already installed.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 16.10 Vbox 5.0.28

Post by Perryg »

Could you point me to where in the above information it states that the headers are installed? I don't see it.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Ubuntu 16.10 Vbox 5.0.28

Post by socratis »

"kernel-headers", not just "kernel". Theere is a huge difference.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
fredy ms
Posts: 4
Joined: 25. Oct 2016, 15:27

Re: Ubuntu 16.10 Vbox 5.0.28

Post 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.... :?: :?: :?:
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Ubuntu 16.10 Vbox 5.0.28

Post 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
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
fredy ms
Posts: 4
Joined: 25. Oct 2016, 15:27

Re: Ubuntu 16.10 Vbox 5.0.28

Post 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.
Post Reply