Can't install linux-headers

damarges

Member
Jul 25, 2022
29
3
8
40
Bad Kreuznach, Germany
Tried using apt install linux-headers-$(uname -r) but doesn't work out. No headers available?

Code:
root@pve:/tmp# apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-6.2.16-14-pve
E: Couldn't find any package by glob 'linux-headers-6.2.16-14-pve'

Tried to install nvidia-driver after downloading it from nvidia.com but it requires the appropiate headers. I want to use my gpu for transcoding stuff on the host.
Can anybody help me what I am not understanding here?

Thank you
 
Like all the other threads about problems with installing kernel header:; install pve-headers-6.2.16-14-pve instead of linux-headers-6.2.16-14-pve, as PVE uses its own kernel.
 
  • Like
Reactions: damarges