Install linux-headers on debian unable to locate package

Discussions related to using VirtualBox on Linux hosts.
Post Reply
pombeiro
Posts: 1
Joined: 4. May 2021, 17:55

Install linux-headers on debian unable to locate package

Post by pombeiro »

What's up friends? I have a question, I have downloaded the Debian linux package. and then I have run the command

Code: Select all

dpkg -i virtualbox-6.1_6.1.22-144080~Debian~buster_amd64.deb
previously satisfying all the dependencies that the package required.
I have running:
Linux SysTerm 5.8.0-2-amd64 # 1 SMP Debian 5.8.10-1 (2020-09-19) x86_64 GNU / Linux
When executing the command, I have the following doubt:

Code: Select all

# / sbin / vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
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-5.8.0-2-amd64
being that:

Code: Select all

 #uname -a
Linux SysTerm 5.8.0-2-amd64 # 1 SMP Debian 5.8.10-1 (2020-09-19) x86_64 GNU / Linux
we tested the following:

Code: Select all

# apt-get install linux-headers - $ (uname -r)
Reading package list ... Done
Creating dependency tree ... Done
Reading status information ... Done
E: The linux-headers-5.8.0-2-amd64 package could not be located
E: Could not find any packages using "*" with "linux-headers-5.8.0-2-amd64"
E: Could not find any packages with regular expression "linux-headers-5.8.0-2-amd64"
Before breaking the system, I turn to your knowledge.
As additional data, I have tried previous versions of virtualbox with negative results
EDIT:
Thanks friends, the solution I found was to go back to an old version of VirtualBox.
Problem solved.
8)
Post Reply