Kali live usb“在目录中找不到模块 w0”Broadcom 4360

Kali live usb“在目录中找不到模块 w0”Broadcom 4360

我在 Kali Linux 上。

我尝试在 MacbookPro i7 中以实时 USB 模式安装 Broadcom BMD4360 驱动程序,但出现一些错误。

有没有什么办法可以解决这个问题而不需要重新安装呢?

所以,首先我安装了标头:

 apt-get update

 apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

我删除了可能的冲突后

modprobe -r b44 b43 b43legacy ssb brcmsmac

并得到这个:

root@kali:/etc/apt# modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/4.6.0-kali1-686-pae

因此我尝试以不同的方式安装,结果如下:

root@kali:/var/lib# apt-get install broadcom-sta-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  broadcom-sta-dkms
0 upgraded, 1 newly installed, 0 to remove and 1185 not upgraded.
Need to get 0 B/2,207 kB of archives.
After this operation, 14.5 MB of additional disk space will be used.
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 335533 files and directories currently installed.)
Preparing to unpack .../broadcom-sta-dkms_6.30.223.271-4_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-4) ...
Setting up broadcom-sta-dkms (6.30.223.271-4) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 4.6.0-kali1-686-pae
Module build for kernel 4.6.0-kali1-686-pae was skipped since the
kernel headers for this kernel does not seem to be installed.

在 modprobe 中出现新错误后:

root@kali:/var/lib# modprobe wl
modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='wl'
modprobe: ERROR: could not insert 'wl': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: ERROR: ../libkmod/libkmod-module.c:977 command_do() Error running install command for wl
modprobe: ERROR: could not insert 'wl': Operation not permitted

uname -a的是

root@kali:/lib/modules# uname -a
Linux kali 4.6.0-kali1-686-pae #1 SMP Debian 4.6.4-1kali1 (2016-07-21) i686 GNU/Linux

列出了可用的模块:

root@kali:/lib/modules# ls
4.6.0-kali1-686-pae  4.8.0-kali1-686  4.8.0-kali1-686-pae  4.8.0-kali1-rt-686-pae

/var/lib/dkms/broadcom-sta/6.30.223.271/source/dkms.conf遵循

root@kali:/var/lib/dkms/broadcom-sta/6.30.223.271/source# cat dkms.conf
PACKAGE_NAME="broadcom-sta"
PACKAGE_VERSION="6.30.223.271"
MAKE[0]="make KVER=$kernelver"
BUILT_MODULE_NAME[0]="wl"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
REMAKE_INITRD="YES

有没有什么办法可以解决这个问题而不需要重新安装呢?

答案1

我也有同样的问题;我遵循了那里的每个教程,但无法让它工作:(

什么做过工作是手动下载并安装软件包。

第一次运行

uname -r

获取您的操作系统内核版本(出于本示例的目的4.6.0-kali1-amd64)。

然后在 GUI 中下载您需要的包:

,或者在 CLI 中直接在终端中下载它们:

wget --continue http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.6.0-kali1-common_4.6.4-1kali1_amd64.deb
wget --continue http://http.kali.org/kali/pool/main/l/linux/linux-kbuild-4.6_4.6.4-1kali1_amd64.deb
wget --continue http://http.kali.org/kali/pool/main/l/linux/linux-compiler-gcc-5-x86_4.6.4-1kali1_amd64.deb
wget --continue http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.6.0-kali1-all-amd64_4.6.4-1kali1_amd64.deb

要安装它们,请运行:

sudo dpkg --install linux-headers-4.6.0-kali1-common_4.6.4-1kali1_amd64.deb
sudo dpkg --install linux-kbuild-4.6_4.6.4-1kali1_amd64.deb
sudo dpkg --install linux-compiler-gcc-5-x86_4.6.4-1kali1_amd64.deb
sudo dpkg --install linux-headers-4.6.0-kali1-all-amd64_4.6.4-1kali1_amd64.deb

然后下载bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb无论是在 GUI 中,还是在 CLI 中,直接在终端中下载:

wget --continue http://launchpadlibrarian.net/226723001/bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb

要安装它,请运行:

sudo dpkg --install bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb

并用命令完成modprobe

sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma
sudo modprobe -v wl

瞧,它应该可以工作了!

答案2

我发现缺少依赖项,这是我必须安装的所有软件包。

现在工作正常。

bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb   
linux-headers-4.6.0-kali1-common_4.6.4-1kali1_amd64.deb
linux-compiler-gcc-5-x86_4.6.4-1kali1_amd64.deb             
linux-headers-4.6.0-kali1-common-rt_4.6.4-1kali1_amd64.deb
linux-headers-4.6.0-kali1-all-amd64_4.6.4-1kali1_amd64.deb  
linux-headers-4.6.0-kali1-rt-amd64_4.6.4-1kali1_amd64.deb
linux-headers-4.6.0-kali1-amd64_4.6.4-1kali1_amd64.deb      
linux-kbuild-4.6_4.6.4-1kali1_amd64.deb

PS:这个有很大帮助: apt --fix-broken install

相关内容