所以我最近在笔记本电脑上安装了 Debian,从那时起我就无法连接到任何 wifi 网络或蓝牙设备。“网络”设置中根本没有无线选项。
通过一些快速的谷歌搜索,我安装了缺失的“固件”,但仍然没有任何变化。
我到底该做什么?
编辑:我使用 lspci 检查了我的 wifi 驱动程序,结果如下:
lspci -vv -s 03:00.0
03:00.0 Network controller: Broadcom Limited BCM43142 802.11b/g/n (rev 01)
Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 255
Region 0: Memory at b0500000 (64-bit, non-prefetchable) [size=32K]
Capabilities: <access denied>
我正在使用 Gnome 桌面环境。
答案1
来自Debian 维基:
添加
non-free
到您现有的包源中/etc/apt/sources.list
。例子:
deb http://httpredir.debian.org/debian/ stretch main contrib non-free
安装最新的内核、内核头文件和
broadcom-sta-dkms
包:apt-get update apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
卸载冲突的模块:
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
加载
wl
模块:modprobe wl
如果缺失,安装 gnome 网络管理器
apt-get install network-manager-gnome
然后注销并重新登录。通知区域/系统托盘中将出现一个新的小程序(计算机图标)。
编辑:
我可以遗憾地确认broadcom-sta-dkms
在内核 4.19.0-0.bpo.4-amd64 上编译失败:
me@meme:~# apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-amd64 is already the newest version (4.19+104~bpo9+1).
linux-image-amd64 is already the newest version (4.19+104~bpo9+1).
The following package was automatically installed and is no longer required:
xaw3dg
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
broadcom-sta-dkms
0 upgraded, 1 newly installed, 0 to remove and 86 not upgraded.
Need to get 2,211 kB of archives.
After this operation, 14.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.de.debian.org/debian stretch/non-free amd64 broadcom-sta-dkms all 6.30.223.271-5 [2,211 kB]
Fetched 2,211 kB in 6s (357 kB/s)
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 181313 files and directories currently installed.)
Preparing to unpack .../broadcom-sta-dkms_6.30.223.271-5_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-5) ...
Setting up broadcom-sta-dkms (6.30.223.271-5) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 4.19.0-0.bpo.4-amd64
Building initial module for 4.19.0-0.bpo.4-amd64
Error! Bad return status for module build on kernel: 4.19.0-0.bpo.4-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
但是它确实在内核 4.4.0 上编译。
编辑2:
如何broadcom-sta-dkms
从 Debian backports 存储库安装最新版本的说明:
删除无效的
broadcom-sta-dkms
apt-get remove broadcom-sta-dkms
在以下位置添加 stretch-backports 的存储库条目
/etc/apt/sources.list
echo "deb http://ftp.debian.org/debian stretch-backports main contrib non-free" >> /etc/apt/sources.list
更新软件包索引并
broadcom-sta-dkms
从 backports 存储库安装apt-get update apt-get -t stretch-backports install broadcom-sta-dkms