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."
@jkryanchou
Copy link

Why The 4.9.0 version packages does't exists in the pool any more?

@unruly1
Copy link

unruly1 commented Nov 27, 2017

the 4.6.0 and the 4.9.0 and the 4.12.0 packages no longer exist so all potential solutions in this thread no longer work.
I attempted substituting the 4.13.0 packages for the 4.12.0 packages since I installed kali linux 2017.3 in a dual boot configuration on my 11 inch 2015 Macbook air but they don't match perfectly and it resulted in module wl not found.

anyone have any updated instructions for 4.13 or have access to the 4.12 packages to get B0rk's solution to work?
thanks

@mmaul8
Copy link

mmaul8 commented Dec 14, 2017

how to solve it help me please

dpkg -i linux-headers-4.13.0-kali1-amd64_4.13.10-1kali2_amd64.deb

Selecting previously unselected package linux-headers-4.13.0-kali1-amd64.
(Reading database ... 339118 files and directories currently installed.)
Preparing to unpack linux-headers-4.13.0-kali1-amd64_4.13.10-1kali2_amd64.deb ...
Unpacking linux-headers-4.13.0-kali1-amd64 (4.13.10-1kali2) ...
dpkg: dependency problems prevent configuration of linux-headers-4.13.0-kali1-amd64:
linux-headers-4.13.0-kali1-amd64 depends on linux-compiler-gcc-6-x86; however:
Package linux-compiler-gcc-6-x86 is not installed.

dpkg: error processing package linux-headers-4.13.0-kali1-amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-headers-4.13.0-kali1-amd64

i got install linux-compiler-gcc-6-x86_4.13.10-1kali2_amd64.deb, but new troble is coming

dpkg -i linux-compiler-gcc-6-x86_4.13.10-1kali2_amd64.deb

Selecting previously unselected package linux-compiler-gcc-6-x86.
(Reading database ... 346695 files and directories currently installed.)
Preparing to unpack linux-compiler-gcc-6-x86_4.13.10-1kali2_amd64.deb ...
Unpacking linux-compiler-gcc-6-x86 (4.13.10-1kali2) ...
dpkg: dependency problems prevent configuration of linux-compiler-gcc-6-x86:
linux-compiler-gcc-6-x86 depends on gcc-6; however:
Package gcc-6 is not installed.

dpkg: error processing package linux-compiler-gcc-6-x86 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-compiler-gcc-6-x86

@pallidium
Copy link

i install it, we need manually download from http://http.kali.org/kali/pool/main/l/linux/
broadcom-sta-dkms_6.30.223.271-3~16.04.2_all.deb
linux-compiler-gcc-6-x86_4.13.10-1kali2_amd64.deb
linux-compiler-gcc-6-x86_4.13.13-1kali1_amd64.deb
linux-headers-4.13.0-kali1-all_4.13.10-1kali2_amd64.deb
linux-headers-4.13.0-kali1-all-amd64_4.13.10-1kali2_amd64.deb
linux-headers-4.13.0-kali1-all-amd64_4.13.13-1kali1_amd64.deb
linux-headers-4.13.0-kali1-amd64_4.13.13-1kali1_amd64.deb
linux-headers-4.13.0-kali1-common_4.13.10-1kali2_all.deb
linux-headers-4.13.0-kali1-common_4.13.13-1kali1_all.deb
linux-kbuild-4.13_4.13.10-1kali2_amd64.deb

then apt install ./
dpkg -i
apt --fix
then next instal

@lakty
Copy link

lakty commented Dec 15, 2017

@pallidium KALI 2017.3 ???

@makakin
Copy link

makakin commented Dec 21, 2017

not working on Kali 2017.3 T^T

@XSkid420X
Copy link

XSkid420X commented Jan 28, 2018

@nikhil0269
Copy link

All these are not found. I face a lot of problem while installing wifi driver.
Help me.
Any solutions for-> 4.14.0-kali3-amd64

@MooHiu
Copy link

MooHiu commented Feb 5, 2018

I've just got it working on my MBAir running 4.13. I think 4.14 is similar in process. You'd need the 4.14 version of the files, and perhaps the gcc-7 versions (I'm not sure).

Download these files (you can use a web browser to download them)
http://old.kali.org/kali/pool/main/g/gcc-6/cpp-6_6.4.0-9_amd64.deb
http://old.kali.org/kali/pool/main/g/gcc-6/gcc-6-base_6.4.0-9_amd64.deb
http://old.kali.org/kali/pool/main/l/linux/linux-compiler-gcc-6-x86_4.13.10-1kali2_amd64.deb
http://old.kali.org/kali/pool/main/l/linux/linux-kbuild-4.13_4.13.10-1kali2_amd64.deb
http://old.kali.org/kali/pool/main/l/linux/linux-headers-4.13.0-kali1-common_4.13.10-1kali2_all.deb
http://old.kali.org/kali/pool/main/l/linux/linux-headers-4.13.0-kali1-amd64_4.13.10-1kali2_amd64.deb

Install the files in the above order using dpkg -i (if you don't install the cpp-6, gcc-6, and the compiler-gcc-6 in this order, you would run into the dependency problem)

Download and install the broadcom files (observe the order)
http://http.kali.org/pool/main/d/dkms/dkms_2.3-3_all.deb
http://http.kali.org/pool/non-free/b/broadcom-sta/broadcom-sta-dkms_6.30.223.271-7_all.deb

install the files using dpkg -i
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl

@titanobulls
Copy link

@nikhil0269
have you found a solution for 4.14 kali ?

@mkmorsin
Copy link

mkmorsin commented Feb 26, 2018

I just recently installed the latest version of Kali on a machine with a Broadcom (BCM43142) internal wifi card, and I too encountered a great deal of frustration, but I succeeded with all of the great advice above. I independently tracked down the files (like described above) from this directory: https://http.kali.org/kali/pool/

Here are the list of the names of the files I used in order to get my machine up and running for the kali 4.14.0-amd64:

http://http.kali.org/kali/pool/main/g/gcc-6/cpp-6_6.4.0-12_arm64.deb
http://http.kali.org/kali/pool/main/g/gcc-6/gcc-6-base_6.4.0-12_amd64.deb
http://http.kali.org/kali/pool/main/l/linux/linux-compiler-gcc-7-x86_4.14.13-1kali1_amd64.deb
http://http.kali.org/kali/pool/main/l/linux/linux-kbuild-4.14_4.14.13-1kali1_amd64.deb
http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.14.0-kali3-common_4.14.17-1kali1_all.deb
http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.14.0-kali3-all-amd64_4.14.13-1kali1_amd64.deb
http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.14.0-kali3-amd64_4.14.13-1kali1_amd64.deb

http://http.kali.org/pool/main/d/dkms/dkms_2.3-3_all.deb
http://http.kali.org/pool/non-free/b/broadcom-sta/broadcom-sta-dkms_6.30.223.271-8_all.deb

I'm a noob at best, but Pallidium's protocol helped me walk through the procedure once I obtained these files. A special thanks to all who helped me solve this, cheers!

(Edited to fix links)

@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