Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

VirtualBox installed by Sparky requires old kernel version

Started by WetGeek, March 24, 2023, 11:27:05 AM

Previous topic - Next topic

WetGeek

I installed VirtualBox using Nala, and tried to create a VM using it, but although I could create one without a problem, I couldn't run it.  VirtualBox displayed an 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.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-6.1.0-5-amd64"

But when I tried to install those headers, this was the result:

"linux-headers-amd64 is already at the latest version 6.1.15-1
Error: linux-headers-6.1.0-5-amd64 not found"

What can I do to resolve this mismatch, so I can launch VMs that I create?  Thanks for any help with this.

pavroo

Make sure you have installed the same version of kernel image and headers and you launched your OS with the kernel.
So try:
sudo apt update
sudo apt install linux-image-amd64 linux-headers-amd64
they have to be in the same versions - now on Sparky7: 6.1.0-6 (6.1.15)
Then reboot your system to launch it with that Linux versions.
Nothing is easy as it looks. Danielle Steel

WetGeek

Quote from: pavroo on March 24, 2023, 05:07:30 PMMake sure you have installed the same version of kernel image and headers and you launched your OS with the kernel.
So try:
sudo apt update
sudo apt install linux-image-amd64 linux-headers-64
they have to be in the same versions - now on Sparky7: 6.1.0-6 (6.1.15)
Then reboot your system to launch in with that Linux versions.

Mission accomplished.  Thanks for your help with this.

View the most recent posts on the forum