SparkyLinux Forums

Software & hardware support => Sparky Linux kernel => Topic started by: WetGeek on March 24, 2023, 11:27:05 AM

Title: VirtualBox installed by Sparky requires old kernel version
Post by: WetGeek on March 24, 2023, 11:27:05 AM
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.
Title: Re: VirtualBox installed by Sparky requires old kernel version
Post by: pavroo on March 24, 2023, 05:07:30 PM
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.
Title: Re: VirtualBox installed by Sparky requires old kernel version
Post by: WetGeek on March 25, 2023, 12:26:50 AM
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.