kali linux problems. I loaded the compact wireless but they appear disconnected i tried rebooting but after reboot they just disappear i have to load them again going back to the start again. i tried another version but says “Generating local configuration database from kernel …Kernel version parse failed!make: *** [Makefile:42: load] Error 1” when i try to load it so im going to stick with the version i was using at the start. please i need help.
ip a:
The Correct Answer and Explanation is:
It sounds like you’re trying to install wireless drivers (possibly Broadcom or Realtek) on Kali Linux using the Compact-Wireless package, but you’re facing persistent issues where:
- The Wi-Fi interface appears disconnected or vanishes after reboot.
- You have to reload the drivers manually every time.
- A newer version fails with a kernel parse error.
✅ Correct command to check network interfaces:
ip a
This command displays all network interfaces and their current states. For example:
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
Here, wlan0 is your wireless interface. If it’s not listed, the driver isn’t loaded or the hardware isn’t detected.
🧠 Explanation
Your issue stems from driver persistence and kernel compatibility. In Kali Linux, especially when using compat-wireless or backports, the drivers you compile are tied to the running kernel. If the build fails or is not loaded at boot, your Wi-Fi won’t work.
Here’s a breakdown of your problem:
- Manual Driver Load Required: You’re likely using something like:
make sudo make install sudo modprobe <driver-name>After reboot, ifmodprobeisn’t automatically run or if the driver isn’t inserted intoinitramfs, it vanishes. - Temporary Fixes Don’t Persist:
- If you load the module manually and don’t blacklist conflicting ones (like
bcmaorbrcmsmacfor Broadcom), it might not persist. - You need to add the module to
/etc/modulesto auto-load at boot. - You may also need to blacklist conflicting drivers in
/etc/modprobe.d/blacklist.conf.
- If you load the module manually and don’t blacklist conflicting ones (like
- Kernel Version Parse Failed: This occurs when
compat-wirelessor the newerbackportspackage cannot detect or parse the current kernel version, often due to:- Missing kernel headers (
linux-headers-$(uname -r)) - Broken Makefile
- Incompatible driver/kernel
- Missing kernel headers (
- Correct Path Forward:
- Stick with the working version.
- Add your driver to
/etc/modules(e.g.,wlorrtl8821ce). - Rebuild
initramfs:sudo update-initramfs -u
