linux headers aren't installed

AndiWeiss

New Member
Feb 4, 2024
4
0
1
Hi there,

I face an issue with the dependencies on the Proxmox VE system.

When installing dkms the required linux headers are not automatically installed.
Because of that dkms skips any compilation process when a new kernel version is installed.

After installation of the correct headers (apt install proxmox-headers-$(uname -r)) dkms works on the current kernel.
But as soon as a new kernel gets installed e.g. with apt upgrade the matching headers are not installed.

I assume that the package configuration misses some dependency.

What can be done to solve this issue?

Kind regards
AndiWeiss
 
apt install proxmox-headers should install the headers of the kernel, next time there is a kernel update. There is also proxmox-headers-6.8 and proxmox-headers-6.5, etc. if you want headers for (each new version) of a specific line of kernels.
 
Thanks a lot for your answer.

I'm a bit puzzled - dkms without headers doesn't work at all.

All other distributions install the header for the installed kernel automatically when installing dkms.
Is there a possibility to do that in Proxmos, too?

Kind regards
AndiWeiss
 
no, i think because the kernel and headers of proxmox have simply a different name.
However, if you install dkms, simply install proxmox-headers either. It will stay there forever and update automatically, like leesteken already said.
I dont see a downside.
 
OK, i tried apt install proxmox-headers but that package doesn't exist.

Instead one has to install proxmox-default-headers. But this package not only installs the headers, it also installs the newest kernel.

Taking a look on the required dependencies it's not clear for me why one has to install the headers manually when installing packages which require the headers.

But OK, my issue can be handled with this approach.

Thank you for the replies.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!