PDA

View Full Version : Cannot install kernel headers (kernel header mismatch)



sebos
2022-04-09, 00:53
Hello,

I tried to install the kernel header on Kali linux 2022.1 with the following commands:


# apt update
# apt dist-upgrade
[REBOOT]
# apt install linux-headers-$(uname -r)

But I get:

E: Unable to locate package linux-headers-5.15.0-kali3-amd64
E: Couldn't find any package by glob 'linux-headers-5.15.0-kali3-amd64'

Note that the `uname -r` commands returns `5.15.0-kali3-amd64`. However, searching for linux-headers gives:


$ apt search linux-header
(...)
linux-headers-5.16.0-kali6-amd64/kali-rolling 5.16.14-1kali2 amd64
Header files for Linux 5.16.0-kali6-amd64
(...)

It looks like my kernel is not the most recent one and I guess this is why I have this issue. So how can I installed the linux source for 5.15.0-kali3-amd64 or update to 5.16.0-kali6-amd64?

My /etc/apt/sources.list only contains `deb http://http.kali.org/kali kali-rolling main contrib non-free`

Thank you

weller
2022-07-13, 12:29
I am having a similar issue:
Unable to locate package linux-headers-5.16.0-kali7-amd64

bruno.fraga
2022-07-20, 20:35
Same issue !

I've tried to install the headers manually downloading the linux-headers-5.15.0-kali3-amd64_5.15.15-1kali2_amd64.debhere: http://ftp.tku.edu.tw/kali/pool/main/l/linux/ (http://ftp.tku.edu.tw/kali/pool/main/l/linux/)

Using the dpkg command:

sudo dpkg ?i linux-headers-5.15.0-kali3-amd64_5.15.15-1kali2_amd64.deb

But unfortunately a lot of another dependencies came up and I didn't find out how to solve them...

andieb_swe
2022-08-06, 05:52
I have this issue too when trying to install VMWare, downloaded VMware-Workstation-Full-16.2.4-20089737.x86_64.bundle.

When triggering the installation a pop-up appears (VMware Kernel Module Updater) stating that Kernel headers for version 5.18.0-kali5-amd64 were not found. If you installed them in a non-default path you can specify the path below.

Not sure how to solve this. Anyone who might have some tips or ideas?

Much appreciated.

doggo
2022-08-09, 01:51
I am having a similar issue:
Unable to locate package linux-headers-5.16.0-kali7-amd64

Hi weller, did you manage to locate the package linux-headers-5.16.0-kali7-amd64? I am having the same problem.

dopaminer
2022-08-09, 02:44
hi guys , ı have a problem.
this error code...

5036

ElMauro
2022-10-10, 07:56
It worked for me, first downloading http://ftp.tku.edu.tw/kali/pool/main/l/linux/linux-headers-5.18.0-kali5-common_5.18.5-1kali6_all.deb
dpgk -i linux-headers-5.18.0-kali5-common_5.18.5-1kali6_all.deb
and then http://ftp.tku.edu.tw/kali/pool/main/l/linux/linux-headers-5.18.0-kali5-amd64_5.18.5-1kali6_amd64.deb
dpkg -i linux-headers-5.18.0-kali5-amd64_5.18.5-1kali6_amd64.deb

thanks !

Fred Sheehan
2022-10-10, 22:12
Updating to installed version kernel headers;

sudo apt install linux-headers-$(uname -r)

abokaka
2022-10-11, 09:50
its worked thanks

j3dlina
2022-12-16, 16:31
Hey, i have prblem with finding headers 5.18.0-kali5-amd64. i dont see file on list. Maybe someone will help me. sudo ap.t install linux-headers-$(uname -r) not working for me. or i am doing something wrong. i am new here so please be gentle with me

Vinod vyash
2022-12-19, 08:11
I have Lenovo IdeaPad 3, with AMD Rayzen 5000series. With window 11 Nvme 500gb. Now the problem is that whenever I boot my device from my pendrive. There are black screen apear with Some command, GNU,Grub , version 2.06-4 Kali 1.
This place i am stuck from last 3 days how to install it.
I have Kali Everything version. Whose size approx 11.5GB, before installation. Please help me out. Thanku in advance for your support..