install pve-headers-$(uname -r) failure

sleechengn

New Member
Dec 21, 2023
2
0
1
Driver: NVIDIA-xxxxx.run

when i try to install NVIDIA driver, it's need to install kernel-source,I use fellow command

apt update
apt install pve-headers-$(uname -r)

there not found pve-headers-....-pve

pve version 8.1-1

how to solve this?
 
those still provide the old package name though, so it should still work (at least for installing - removing is handled differently ;)). maybe you are not booted into a Proxmox kernel?

Code:
$ apt install pve-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'proxmox-headers-6.5.11-7-pve' instead of 'pve-headers-6.5.11-7-pve'
The following NEW packages will be installed:
  proxmox-headers-6.5.11-7-pve
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 13.7 MB of archives.
[...]
Selecting previously unselected package proxmox-headers-6.5.11-7-pve.
(Reading database ... 454709 files and directories currently installed.)
Preparing to unpack .../proxmox-headers-6.5.11-7-pve_6.5.11-7_amd64.deb ...
Unpacking proxmox-headers-6.5.11-7-pve (6.5.11-7) ...
Setting up proxmox-headers-6.5.11-7-pve (6.5.11-7) ...

in any case, please provide the full output of "pveversion -v" and your apt command if it still doesn't work..
 
  • Like
Reactions: leesteken
those still provide the old package name though, so it should still work (at least for installing - removing is handled differently ;)). maybe you are not booted into a Proxmox kernel?
They do for 6.1 and 6.2 but I cannot find/install pve-headers-6.5, only proxmox-headers-6.5 when using the PVE 8.1 no-subscription repository.
 
They do for 6.1 and 6.2 but I cannot find/install pve-headers-6.5, only proxmox-headers-6.5 when using the PVE 8.1 no-subscription repository.
those are the meta packages (which make sense to install if you need headers in general). but even there, the 6.5 package uses a new name, but provides the old one, so "apt install pve-headers-6.5" will actually install "proxmox-headers-6.5" ;)

OP wanted to install a specific kernel header version though.
 
  • Like
Reactions: leesteken
Hello. I have kernel 6.2. What is the best way to update this version to newer one?

UPD: Found a good article for Proxmox update

Change in
Code:
#nano /etc/apt/sources.list.d/pve-enterprise.list

From: deb https://enterprise.proxmox.com/debian/pve bookworm enterprise
To: deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

#nano /etc/apt/sources.list.d/ceph.list
From: deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
To: deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription

And then in nod's settings System > Updates > Refresh and after that Upgrade
 
Last edited:

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!