cannot find linux-headers-5.4.166-1-pve

Marty56

Member
Jul 28, 2020
39
0
11
69
Code:
sudo apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-5.4.166-1-pve
E: Couldn't find any package by glob 'linux-headers-5.4.166-1-pve'
E: Couldn't find any package by regex 'linux-headers-5.4.166-1-pve'
 
hi,

why do you need the kernel headers?
our kernel is not the regular linux kernel from upstream debian, we package our own -- so you'll need to instead do:
Code:
apt update
apt install pve-headers-$(uname -r)

if it still doesn't work, then most likely your repositories are configured wrongly [0] (the 5.4.166 kernel is for debian buster / PVE 6)
[0]: https://pve.proxmox.com/wiki/Package_Repositories