How do I install specific Kernel when the version and header are not showing under "apt-cache search linux-image"

I need a certain kernel version to get Proxmox/Pimox installed on Rasberry Pi OS:

I’m not positive on the correct version but for some reason I can’t seem to get any version of 5.10 installed along with the proper headers.

If I don’t use this version I get the errors mentioned here:
Which essential boils down to “dpkg: error processing package ceph-dkms”

I run the normal install commands:

sudo apt update
sudo apt install linux-headers-5.10.0-18-arm64 linux-image-5.10.0-18-arm64-dbg

Sometimes I’m able to install the kernel version but never both the kernel and header:

israel-master-key@raspberrypi-proxmox:~ $ sudo update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.22-04691-g10d99e724bd0
Found initrd image: /boot/initrd.img-6.1.22-04691-g10d99e724bd0
Found linux image: /boot/vmlinuz-6.1.21-04463-gbcb638653280
Found initrd image: /boot/initrd.img-6.1.21-04463-gbcb638653280
Found linux image: /boot/vmlinuz-5.10.158-01186-g5aae01f33031
Found initrd image: /boot/initrd.img-5.10.158-01186-g5aae01f33031
Found linux image: /boot/vmlinuz-5.10.0-8-rt-arm64
Found initrd image: /boot/initrd.img-5.10.0-8-rt-arm64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.

I’m very confused on this whole process really.

I just want to install either:

Option 1.


sudo apt install git bc bison flex libssl-dev make
git clone --depth=1 --branch rpi-5.10.y GitHub - raspberrypi/linux: Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at
cd linux
make bcm2711_defconfig -j4

sudo apt install libncurses5-dev
make menuconfig -j4

KSM Support active

Kernel 64Bit Build:
make -j4 Image modules dtbs
sudo make modules_install
sudo cp arch/arm64/boot/dts/broadcom/.dtb /boot/
sudo cp arch/arm64/boot/dts/overlays/
.dtb* /boot/overlays/
sudo cp arch/arm64/boot/dts/overlays/README /boot/overlays/
sudo cp arch/arm64/boot/Image /boot/$KERNEL.img



Option 2.

Instead of compiling the kernel from scratch I was able to install Pimox7 with the last 5.10 kernel from the official archive without issues.


sudo dpkg -i raspberrypi-kernel_1.20220120-1_arm64.deb raspberrypi-kernel-headers_1.20220120-1_arm64.deb

sudo apt-mark hold raspberrypi-kernel raspberrypi-kernel-headers


Any ideas on how to troubleshoot or accomplish?

  1. Raspberry Pi kernels are for Raspberry Pi only.
  2. Ceph is already in our mainline kernel.
  3. Don’t follow any Raspberry Pi guides without understanding what they do as it will most likely not work.
1 Like

Is there a way or do you know how to install kernel 5.10 for Libre? I can’t seem to get it installed with the headers as well.

First state why you need 5.10. 5.10 driver is poor compared to 6.1.

Just because you find a Raspberry Pi guide with 5.10 kernel does not mean it will work properly.

I did want to try finishing the guide to see if a different Kernel would work.

Also though I am curious on how to switch Kernels in general. I have only been able to get certain ones to install, while other don’t finish completely as I end up missing the headers on some kernel version installs.

I can show the ones that are working versus not if that would be hepful.

If proxmox is coded properly, it should just run fine on standard ARM64 Ubuntu images we have. We have standard images with upstream kernels. There’s no need to tinker with kernel headers and such.

1 Like