How to install linux headers manually

hi im using kali Linux 2024.3 it comes with Linux image 6.8.11, im using alfa awus036ach ac1200 it will work with Linux image and headers 6.8.11 only, Linux headers has been removed so i have to download manually, I’ve try to install it didn’t work with me no matter what i do can someone help my by giving me the right commands to install Linux headers without any issue its a .deb file the size is 1.7mb do i need anything beside it i don’t know so ill apricate any help thanks all

Kali is a rolling release distro, and while new headers get added old ones get removed.

The future proof solution is not to try turning back the clock on kali software components, but to get an actually supported and recommended wifi adapter.

Alternatively get an old kali version and never update it (if wifi is a must have priority for you and getting a supported adapter is not an option).

1 Like

I have the same issue, Im trying to build the drier for an older kernel but cant install linux headers unless i upgrade the system. So I guess im stuck between a rock and a hard place? Can one not incrementally upgrade a old version to the next version in order to get the linix headers?

You can install an old version that still has the header - it’s possible, even likely, that this old version will not be able to be updated to the current version - or even updated at all when the signing keys for the repos have simply expired.

So yes, you can, just never try to update

The problem is technically already solved - there is a clear path here… but not if people stray away from the path and then complain that they got stuck in the undergrowth and whether there should be a way forward.

Just get a supported adapter and all these problems vanish. Or just skip wifi hacking altogether… it won’t work in the real world anyway against at least somewhat current hardware and even mediocre passwords.

The whole wifi hacking hype is mostly a youtube phenomenon, kept alive by channels that want to attract kids and young adults to which wifi is about the limit of their network knowledge.

2 Likes

So WIFi hacking is all hype and Im down the wrong path you say.
Okay…, thanks for being honest.
I guess I kinda got excited when i bought the WiFi adapter only to find out its the wrong chipset.

How can one safely practice remotely gaining access to lab machine thats on different different intenet connection than the kali machine? I see alot of videos on metasploit and alot exploits but everyone always shows it being done over a LAN, which defeats the proof of concept for any tool.

Any advice or critisism you can give me will be highly appreciated.

Eris didn’t give me a solution to be honest his answer is to gar from the question i asked any way i find the solution by my self

sudo nano /etc/apt/sources.list
add
deb [trusted=yes] Index of /kali/ 2024.3 main contrib non-free non-free-firmware
Ctrl+O Hit inter, then Ctrl+X.

If i want to upgrade my antenna i didn’t come here and ask for help

Seen,

Thanks ill definately try that.

Hi Seen,

So last night I installed 2024.3 and Im using a TP-Link WL722N v2 so I also need Linux headers to compile the driver.
So when you upgrade the system it automatically installs the headers.

sudo apt update
sudo apt upgrade

Depending what youre building with install these.

sudo apt install bc
sudo apt-get install build-essential 
sudo apt-get install libelf-dev

Run your install scripts that you wanting to build the driver.

I managed to get my TP-Link in Monitor mode and its working nicely :laughing:

Just so people don’t make the same mistake - this is not the recommended way to update Kali.