PDA

View Full Version : Your Kernel Headers Cannot Be Found



CrashOverride
2020-02-17, 19:17
Hello:

I am trying to install my AWUS1900 on the latest build of Kali following the guide here (https://github.com/aircrack-ng/rtl8812au) (GitHub).

When I run sudo ./dkms-install.sh, I get the error below.

"Your kernel headers for kernel 5.4.0-kali2-amd64 cannot be found at/lib/modules/5.4.0-kali2-amd64/build or /lib/modules/5.4.0-kali2-amd64/source."

I have conducted a search of related topics on this forum but couldn't find anything beneficial. Any help you can provide is appreciated even if its a link to a relevant post.

steev
2020-02-17, 22:38
Did you follow the full instructions? Specifically the part where it says Package / Build dependencies (Kali) under Notes?

CrashOverride
2020-02-18, 19:00
I did, yes. Received the below error


E: Unable to locate package linux-headers-5.4.0-kali2-amd64
E: Couldn't find any package by glob 'linux-headers-5.4.0-kali2-amd64'
E: Couldn't find any package by regex 'linux-headers-5.4.0-kali2-amd64'

Upon running apt-cache, I see this:

inux-headers-5.4.0-kali3-all - All header files for Linux 5.4 (meta-package)
linux-headers-5.4.0-kali3-all-amd64 - All header files for Linux 5.4 (meta-package)
linux-headers-5.4.0-kali3-amd64 - Header files for Linux 5.4.0-kali3-amd64
linux-headers-5.4.0-kali3-cloud-amd64 - Header files for Linux 5.4.0-kali3-cloud-amd64


So I guess I need to install kali3 instead of the kali2 shown in the first error....?

steev
2020-02-18, 21:33
Yes, you need to be updated to the latest packages. Also, you should probably try the realtek-rtl8188eus-dkms package (which is what that GitHub provides) - but again, you'll need to be updated otherwise it will have the same complaint, that the headers are missing, because that kernel isn't used anymore.

CrashOverride
2020-02-19, 01:47
I will try realtek-rtl8188eus. Appreciate the help and will comment if I am successful.

CrashOverride
2020-02-19, 03:14
I have tried the alternative package you suggested but to no avail. I receive the same errors as I did before. I navigated to /lib/modules/5.4.0-kali2-amd64 and see neither /build nor /source.

It seems both the original and suggested packages are associated with 5.4.0kali2-amd64 which does not appear to be installed based on this error: "Module build for kernel 5.4.0-kali2-amd64 was skipped since the kernel headers for this kernel does not seem to be installed."

Not quite sure what to do now as the problem seems to be with the packages being outdated....

steev
2020-02-19, 21:36
You need to update and reboot. Your kernel is out dated, and we do not have headers available for that kernel anymore.

CrashOverride
2020-02-20, 15:29
I updated multiple times. The issue was on my end - I was installing the wrong file. Bad searching by me.

Correct instructions can be found here (https://online-it.nu/how-to-install-alfa-awus1900-kali-linux-2018-4/) if anyone has a similar issue.

Thanks for the help

4katsuki7surisa
2020-04-24, 10:59
I updated multiple times. The issue was on my end - I was installing the wrong file. Bad searching by me.

Correct instructions can be found here (https://online-it.nu/how-to-install-alfa-awus1900-kali-linux-2018-4/) if anyone has a similar issue.

Thanks for the help

It's so nice of you to share the resolution! This is to let you know your information helped some newbie a lot :o

Jah
2020-04-26, 02:34
i have the same issue with vm player

earlobeheard
2020-04-28, 00:35
till having trouble guys!!!!!!!!!!!!!!!!!!!!!!!!!!


root@Catbus-Kali:/home/ghibli/rtl8812au# sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-5.4.0-kali4-amd64 is already the newest version (5.4.19-1kali1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



and then on the other side of things , i install. and get ...










root@Catbus-Kali:/home/ghibli/rtl8812au# apt-get install realtek-rtl88xxau-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
realtek-rtl88xxau-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,821 kB of archives.
After this operation, 17.1 MB of additional disk space will be used.
Get:1 http://mirrors.ocf.berkeley.edu/kali kali-last-snapshot/contrib amd64 realtek-rtl88xxau-dkms all 5.3.4~20191031-0kali1 [1,821 kB]
Fetched 1,821 kB in 13s (137 kB/s)
Selecting previously unselected package realtek-rtl88xxau-dkms.
(Reading database ... 512267 files and directories currently installed.)
Preparing to unpack .../realtek-rtl88xxau-dkms_5.3.4~20191031-0kali1_all.deb ...
Unpacking realtek-rtl88xxau-dkms (5.3.4~20191031-0kali1) ...
Setting up realtek-rtl88xxau-dkms (5.3.4~20191031-0kali1) ...
Loading new realtek-rtl88xxau-5.3.4~20191031 DKMS files...
Building for 5.4.0-kali4-amd64
Module build for kernel 5.4.0-kali4-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.

kevosbash
2020-05-08, 09:44
Thanks CrashOverride (https://forums.kali.org/member.php?143147-CrashOverride) the direction on the link shared worked exquisitely

yosef
2020-05-10, 12:56
Before installing Vmware Workstation you need to install build-essential and linux headers:

sudo apt-get install build-essential linux-headers-$(uname -r)

undersc0re
2020-08-18, 18:02
Before installing Vmware Workstation you need to install build-essential and linux headers:

sudo apt-get install build-essential linux-headers-$(uname -r)

And if you are using a usb live persistence, re-do your stick with the latest weekly image...unless someone knows an easier quicker way...

Lekaso
2020-10-29, 21:13
I have come from 1 step and all coke okay, just restarted the installation process and then do step-by-step everythin

camposp
2021-05-04, 01:31
I updated multiple times. The issue was on my end - I was installing the wrong file. Bad searching by me.

Correct instructions can be found here (https://online-it.nu/how-to-install-alfa-awus1900-kali-linux-2018-4/) if anyone has a similar issue.

Thanks for the help

poderia me ajudar por favor?