install header-package in container

drnicolas

Member
Dec 8, 2010
19
1
23
I need to install linux-headers in a container.

but the typical apt install linux-headers faisl as well as install pve-headers

What can I do ?
 

drnicolas

Member
Dec 8, 2010
19
1
23
okay;
A software install process asks me to install
apt install linux-headers-`uname -r` which is then
E: Unable to locate package linux-headers-5.13.19-6-pve
E: Couldn't find any package by glob 'linux-headers-5.13.19-6-pve'
E: Couldn't find any package by regex 'linux-headers-5.13.19-6-pve'

my sources-list looks like this ...

deb http://ftp.debian.org/debian buster main contrib

deb http://ftp.debian.org/debian buster-updates main contrib

deb http://security.debian.org buster/updates main contrib

deb http://download.proxmox.com/debian bullseye pve-no-subscription
deb http://security.debian.org bullseye/updates main contrib


Still the same problem
 

tom

Proxmox Staff Member
Staff member
Aug 29, 2006
15,497
889
163

LnxBil

Famous Member
Feb 21, 2015
5,927
721
133
Germany
A software install process asks me to install
What exactly?

Still the same problem
You can also copy the headers from the host to the guest. But keep in mind that you will not be able to load the module from the guest. So if your software requires the module in order to run, it won't be able to run in your container either, so you should, as @tom already suggested, move to a VM.
 

Neobin

Active Member
Apr 29, 2021
196
61
28

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 your own in 60 seconds.

Buy now!