Skip to content

Instantly share code, notes, and snippets.

@speeddragon
Last active February 18, 2024 13:05
Show Gist options
  • Save speeddragon/2d4ea420a8a53407cb8218fa28c2a74b to your computer and use it in GitHub Desktop.
Save speeddragon/2d4ea420a8a53407cb8218fa28c2a74b to your computer and use it in GitHub Desktop.
Kali Linux fix for "modprobe: FATAL: Module wl not found"
# Update and install necessary packages
apt-get update
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
# Download some extra packages, that do the trick for "wl module not found"
wget http://http.kali.org/kali/pool/main/l/linux-tools/linux-kbuild-4.3_4.3.1-2kali1_amd64.deb
wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.3.0-kali1-common_4.3.3-5kali4_amd64.deb
wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.3.0-kali1-amd64_4.3.3-5kali4_amd64.deb
# Install with correct order
dpkg -i linux-kbuild-4.3_4.3.1-2kali1_amd64.deb
dpkg -i linux-headers-4.3.0-kali1-common_4.3.3-5kali4_amd64.deb
dpkg -i linux-headers-4.3.0-kali1-amd64_4.3.3-5kali4_amd64.deb
# Install broadcom drivers
apt-get install broadcom-sta-dkms
# Enable modules and disabled unnecessary ones
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl
# Done :)
echo "WI-FI work now!"
echo "Don't forget to enable network-manager: nano /etc/NetworkManager/NetworkManager.conf to true and restart the service."
@bereska
Copy link

bereska commented Apr 15, 2018

thanks, all
a few nights of frustration finally paid off ... @pallidium, @mkmorsin and @MooHiu solutions combined together did work for me even with some dependencies errors!
MacBook Air 2014 booted on Kali Linux Live USB (actually SD) with persistence (uname -r 4.14.0-kali3-amd64) / Broadcom BCM4360
note that some of those packages were moved to http://old.kali.org/kali/pool/main/l/linux/
time to rock-and-roll!)

@k1br1a
Copy link

k1br1a commented Apr 16, 2018

Can someone help me with the issue. I am stuck. I use 2018.1 amd64 and getting the modeprobe wl error

@haza1608
Copy link

Is there an update for this tried a combination of all of these but getting modprobe: ERROR: could not insert 'wl': Unknown symbol in module, or unknown parameter (see dmesg)

@kaushtuk
Copy link

Hi all ,
I created a live USB persistence encrypted on 4.14.0 version 2018.1, and tried installing these on my MacBook air 2013:
gcc-6-base
cpp-6_6.4.0
linux-compiler-gcc-7
linux-compiler-gcc-6
kbuild-4.14.17
header-common-4.14.17
header-amd64-4.14.17
dkms-2.3
broadcom-sta-dkms

it all got through, but after module wl it showed:
modprobe: ERROR: could not insert 'wl': Unknown symbol in module, or unknown parameter (see dmesg)
dmesg shows :
unknown symbol : __x86_indirect_thunk_rax
help me please, I have stuck for a week now
Thanks

@josete-kali
Copy link

7/09/2018 and works with version:

uname -a

Linux kali 4.17.0-kali1-amd64 #1 SMP Debian 4.17.8-1kali1 (2018-07-24) x86_64 GNU/Linux

Update and install necessary packages

apt-get update
apt-get install linux-image-$(uname -r|sed 's,[^-]-[^-]-,,') linux-headers-$(uname -r|sed 's,[^-]-[^-]-,,')

Download some extra packages, that do the trick for "wl module not found"

wget http://http.kali.org/kali/pool/main/l/linux/linux-kbuild-4.17_4.17.17-1kali1_amd64.deb
wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.17.0-kali1-common_4.17.8-1kali1_all.deb
wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.17.0-kali1-amd64_4.17.8-1kali1_amd64.deb

Install with correct order

dpkg -i linux-kbuild-4.17_4.17.17-1kali1_amd64.deb
dpkg -i linux-headers-4.17.0-kali1-common_4.17.8-1kali1_all.deb
dpkg -i linux-headers-4.17.0-kali1-amd64_4.17.8-1kali1_amd64.deb

Install broadcom drivers

apt-get install broadcom-sta-dkms

Enable modules and disabled unnecessary ones

modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl

Done :), now Works again

@ramazans
Copy link

Thanks, It's works :)

@k-amin07
Copy link

thanks (y)

@sodonnell
Copy link

I was trying to get this working on kali 4.17, running in VirtualBox on my MacBook Pro, and then suddenly my hopes were crushed...
https://www.quora.com/How-do-I-use-a-Mac-internal-wireless-card-for-Kali-Linux-running-on-Oracle-VirtualBox-to-use-Aircrack-ng

Almost willing to try these suggested adapters, though...
https://www.wirelesshack.org/backtrack-compatible-adapters

@magnusviri
Copy link

I updated the links, converted to variables, moved modprobe -r ... to the start, added apt-get -y --fix-broken install, and made it so it will stop if there's an error.

https://gist.github.com/magnusviri/f0f60879e1643eba03d3ba9b2e63663b

@Melvin-Ace
Copy link

I have been trying different solutions and all disappointed me,, this worked. thank you

@shafeeqjadoon
Copy link

It worked for me in kali linux 2020.3 version.
I download linux-kbuild-5.7_5.7.6-1kali2_amd64.deb
linux-headers-5.7.0-kali1-common_5.7.6-1kali2_all.deb
linux-headers-5.7.0-kali1-amd64_5.7.6-1kali2_amd64.deb
from http://http.kali.org/kali/pool/main/l/linux/ manually just by clicking not by wget to my ~/home directory(it can be any directory )
and then

Install with correct order

sudo dpkg -i linux-kbuild-5.7_5.7.6-1kali2_amd64.deb
sudo dpkg -i linux-headers-5.7.0-kali1-amd64_5.7.6-1kali2_amd64.deb
sudo dpkg -i linux-headers-5.7.0-kali1-common_5.7.6-1kali2_all.deb

Install broadcom drivers

sudo apt-get install broadcom-sta-dkms

Enable modules and disabled unnecessary ones

sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
sudo modprobe wl

@yusufmalikul
Copy link

Thanks. I just use this part to solve slow connection issue on kali 2020.3 with BCM4313

Install broadcom drivers

apt-get install broadcom-sta-dkms

Enable modules and disabled unnecessary ones

modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl

@SifalB
Copy link

SifalB commented Mar 27, 2022

Hi everyone,

I found an other option to reinstall everything only using the version number, so you won't have to look for url in kali.

Type :

uname -r

Then :

sudo apt-get install linux-headers- "yourversion"

example for me :

sudo apt-get install linux-headers- 5.16.0

Then follow the rest :

Install broadcom drivers
sudo apt-get install broadcom-sta-dkms

Enable modules and disabled unnecessary ones
sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
sudo modprobe wl

Wifi works after that for me.

@EePlayGuy
Copy link

Ok, here's what you need to do in order to find your CORRECT wireless drivers for your Mac. Open Terminal and run:

uname -r

This will give you the version you will need to look for in the Kali repository. In Firefox ESR, browse to http://http.kali.org/kali/pool/main/l/linux/ Find the files with your version found with the uname -r command and copy and replace the ones in the wget and dpkg sections of the above with the files you find.

Here was how mine was for the latest Kali 2017.2 amd64 version on my Mid 2013 MacBook Air

wget http://http.kali.org/kali/pool/main/l/linux/linux-kbuild-4.12_4.12.13-1kali2_amd64.deb wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.12.0-kali1-common_4.12.6-1kali6_all.deb wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.12.0-kali1-amd64_4.12.6-1kali6_amd64.deb dpkg -i linux-kbuild-4.12_4.12.13-1kali2_amd64.deb dpkg -i linux-headers-4.12.0-kali1-common_4.12.6-1kali6_all.deb dpkg -i linux-headers-4.12.0-kali1-amd64_4.12.6-1kali6_amd64.deb apt-get install broadcom-sta-dkms modprobe -r b44 b43 b43legacy ssb brcmsmac bcma modprobe wl

After that I was able to get mine working properly and also works after a reboot. I just created a shell script to download the files and dpkg them. I had to manually run the modprobe commands after the shell script finished.

Hope this helps.

-B0rk

THANK YOU SO MUCH!!

@dsimonow
Copy link

dsimonow commented Feb 16, 2024

Since I had to do that too and the dependencies are annoying but this thread seems to be the go to.
Kali 6.5.0 on a late 2013 macbook pro retina.
Here basically the updated installation Order. Just do sudo wget -> sudo dpkg -i for each entry, the dpkg entry obviously just the name.
DH-DKMS and DKMS need to be the same version, that is why the dkms version is not the latest, since I overlooked it. you can probably get away with making sure both have the latest version which is currently 3.0.12 but 3.0.6 worked for me.

http://http.kali.org/kali/pool/main/l/linux/linux-kbuild-6.5.0-kali3_6.5.6-1kali1_amd64.deb
http://http.kali.org/kali/pool/main/l/linux/linux-headers-6.5.0-kali3-common_6.5.6-1kali1_all.deb
(Dependency for "linux headers")
http://http.kali.org/kali/pool/main/l/linux/linux-compiler-gcc-13-x86_6.5.6-1kali1_amd64.deb
http://http.kali.org/kali/pool/main/l/linux/linux-headers-6.5.0-kali3-amd64_6.5.6-1kali1_amd64.deb
(Dependency for "dkms")
https://kali.download/kali/pool/main/d/dctrl-tools/dctrl-tools_2.24-3+b1_amd64.deb
http://old.kali.org/kali/pool/main/d/dkms/dh-dkms_3.0.6-4_all.deb
(Dependency for broadcom-sta-dkms)
http://old.kali.org/kali/pool/main/d/dkms/dkms_3.0.6-4_all.deb
http://http.kali.org/kali/pool/non-free/b/broadcom-sta/broadcom-sta-dkms_6.30.223.271-23_all.deb

Here is the full procedure in 3 steps:

sudo wget http://http.kali.org/kali/pool/main/l/linux/linux-kbuild-6.5.0-kali3_6.5.6-1kali1_amd64.deb ; sudo wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-6.5.0-kali3-common_6.5.6-1kali1_all.deb ; sudo wget http://http.kali.org/kali/pool/main/l/linux/linux-compiler-gcc-13-x86_6.5.6-1kali1_amd64.deb ; sudo wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-6.5.0-kali3-amd64_6.5.6-1kali1_amd64.deb ; sudo wget https://kali.download/kali/pool/main/d/dctrl-tools/dctrl-tools_2.24-3+b1_amd64.deb ; sudo wget http://old.kali.org/kali/pool/main/d/dkms/dh-dkms_3.0.6-4_all.deb ; sudo wget http://old.kali.org/kali/pool/main/d/dkms/dkms_3.0.6-4_all.deb ; sudo wget http://http.kali.org/kali/pool/non-free/b/broadcom-sta/broadcom-sta-dkms_6.30.223.271-23_all.deb

sudo dpkg -i linux-kbuild-6.5.0-kali3_6.5.6-1kali1_amd64.deb ; sudo dpkg -i linux-headers-6.5.0-kali3-common_6.5.6-1kali1_all.deb ; sudo dpkg -i linux-compiler-gcc-13-x86_6.5.6-1kali1_amd64.deb ; sudo dpkg -i linux-headers-6.5.0-kali3-amd64_6.5.6-1kali1_amd64.deb ; sudo dpkg -i dctrl-tools_2.24-3+b1_amd64.deb ; sudo dpkg -i dh-dkms_3.0.6-4_all.deb ; sudo dpkg -i dkms_3.0.6-4_all.deb ; sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23_all.deb

sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma ; sudo modprobe wl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment