Unable to install pve-headers

Hlabishi

New Member
Nov 13, 2024
2
0
1
Im working on a project on how to create wiregaurd vpn and i can proceed because it gives me an error of linux-headers. Here's the first error :
E: Unable to locate package wireguard-dkms
::: Failed to install wireguard-tools!
::: Failed to install qrencode!
::: Failed to install linux-headers-generic!
::: Failed to install wireguard-dkms!
[2024-11-13T10:37:40+0000]:

and here's the second error when i try to install the pve-headers:
sudo apt install pve-headers
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package pve-headers
root@WireGuard-VPN:~# sudo apt install proxmox-default-headers
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package proxmox-default-headers
 
Hi,

first of - the wireguard module is already included as part of the Proxmox VE kernel modules, so you do not need the wireguard-dkms module.
Except if you are on a very old version, in which case you should upgrade anyway!

Also, the package for the kernel headers is called proxmox-headers-<version>, e.g. proxmox-headers-6.8. But you don't really need them anyway, as said above.
 
Well, you seem to run some outdated script and it tries to install wireguard-dkms - a package which is neither exists nor is required. Cannot really help you with that, unfortunately.

Also, be aware that loading kernel modules must be done on the host, not inside the container.
 

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!