[SOLVED} Debian Jessie: kernel modules fail to compile/install
Posted: 10. Jun 2016, 19:46
Installing virtualbox-5.0_5.0.20-106931-Debian-jessie_amd64.deb from virtualbox site
system is Debian 8 (Jessie).
Kernel: Linux Shuttle-Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
Installed headers:
ii linux-headers-3.16.0-4-all 3.16.7-ckt25-2 amd64 All header files for Linux 3.16 (meta-package)
ii linux-headers-3.16.0-4-all-amd64 3.16.7-ckt25-2 amd64 All header files for Linux 3.16 (meta-package)
ii linux-headers-3.16.0-4-amd64 3.16.7-ckt25-2 amd64 Header files for Linux 3.16.0-4-amd64
ii linux-headers-3.16.0-4-common 3.16.7-ckt25-2 amd64 Common header files for Linux 3.16.0-4
ii linux-headers-amd64 3.16+63 amd64 Header files for Linux amd64 configuration (meta-package)
dkms is installed:
ii dkms 2.2.0.3-2 all Dynamic Kernel Module Support Framework
Initial install from GDebi Installer:
Selecting previously unselected package virtualbox-5.0.
(Reading database ... 225185 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.0_5.0.20-106931-Debian-jessie_amd64.deb ...
Unpacking virtualbox-5.0 (5.0.20-106931~Debian~jessie) ...
Setting up virtualbox-5.0 (5.0.20-106931~Debian~jessie) ...
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.16.0-4-amd64 cannot be found.
Please install the linux-headers-3.16.0-4-amd64 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 systemd (215-17+deb8u4) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.3-1) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
from /var/log/vbox-install.log:
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 5.0.20
------------------------------
Deleting module version: 5.0.20
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/5.0.20/source ->
/usr/src/vboxhost-5.0.20
DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:203: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again. Stop.
running 'sudo /sbin/rcvboxdrv setup' gives the same result in /var/log/vbox-install.log
Obviously I'm missing something basic but no clue as to what it is.
Do I need to create a symlink from somewhere to point to the headers? I'm not familiar enough with install scripts to point dkms to the headers as installed.
Thanks for any assistance.
system is Debian 8 (Jessie).
Kernel: Linux Shuttle-Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
Installed headers:
ii linux-headers-3.16.0-4-all 3.16.7-ckt25-2 amd64 All header files for Linux 3.16 (meta-package)
ii linux-headers-3.16.0-4-all-amd64 3.16.7-ckt25-2 amd64 All header files for Linux 3.16 (meta-package)
ii linux-headers-3.16.0-4-amd64 3.16.7-ckt25-2 amd64 Header files for Linux 3.16.0-4-amd64
ii linux-headers-3.16.0-4-common 3.16.7-ckt25-2 amd64 Common header files for Linux 3.16.0-4
ii linux-headers-amd64 3.16+63 amd64 Header files for Linux amd64 configuration (meta-package)
dkms is installed:
ii dkms 2.2.0.3-2 all Dynamic Kernel Module Support Framework
Initial install from GDebi Installer:
Selecting previously unselected package virtualbox-5.0.
(Reading database ... 225185 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.0_5.0.20-106931-Debian-jessie_amd64.deb ...
Unpacking virtualbox-5.0 (5.0.20-106931~Debian~jessie) ...
Setting up virtualbox-5.0 (5.0.20-106931~Debian~jessie) ...
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.16.0-4-amd64 cannot be found.
Please install the linux-headers-3.16.0-4-amd64 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 systemd (215-17+deb8u4) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.3-1) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
from /var/log/vbox-install.log:
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 5.0.20
------------------------------
Deleting module version: 5.0.20
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/5.0.20/source ->
/usr/src/vboxhost-5.0.20
DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:203: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again. Stop.
running 'sudo /sbin/rcvboxdrv setup' gives the same result in /var/log/vbox-install.log
Obviously I'm missing something basic but no clue as to what it is.
Do I need to create a symlink from somewhere to point to the headers? I'm not familiar enough with install scripts to point dkms to the headers as installed.
Thanks for any assistance.