Sample Header Ad - 728x90

Linux-headers-5.10.0-21-amd64 not found debian 11

2 votes
1 answer
7885 views
I flashed a Debian image from debian official DVD amd64 into a live USB and installed it on a dual boot into my MacBook air 2020 intel core i7 following this tutorial . While installing, the FAT32 formatted partition couldn't be mounted as root, so I formatted the partition as ext4 file and the installation was successful. After the installation, my trackpad, keyboard, WIFI, and bluetooth were not working. So I was following this Stackoverflow answer to install the applespi driver in an effort to get the trackpad and keyboard working, but I got an error after running the last command dkms install -m applespi -v 0.1. The error message
Your kernel headers for kernel 5.10.0-21-amd64 cannot be found. Please install the linux-headers-5.10.0-21-amd64 package or use the --kernelsourcedir option to tell DKMS where it's located
uname -r output is 5.10.0-21-amd64 apt search linux-headers-$(uname -r) output is
Sorting... Done
Full Text Search... Done
sudo apt-get install linux-headers-$(uname -r) output is
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-5.10.0-21-amd64
E: Couldn't find any package by glob linux-headers-5.10.0-21-amd64
E: Couldn't find any package by regex linux-headers-5.10.0-21-amd64
I upgraded my kernel to 6.0.0-0.deb11.6-amd64 and the error still occurs (Unable to locate package linux-headers-6.0.0-0.deb11.6-amd64) How can I install the linux headers for my kernel version?
Asked by Ercross (129 rep)
Feb 18, 2023, 01:32 PM
Last activity: Mar 23, 2024, 08:43 PM