im trying to install virtual box-5.2 (got the .deb file from the website) on my Debian 9 stretch. Currently I have the Kernel: Linux 4.9.0
When I run: sudo dpkg -I virtualbox-5.2_5.2.12-122591~Debian~stretch_amd64.deb
I get following error message:
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
But when I am trying to install or upgrade the header files with: sudo apt-get install linux-headers-$(uname -r)
, linux tells me, that the header files are already installed. And when I run /sbin/vboxconfig
I get the same error message as above.
Could anyone help with this issue? Thanks!