Ubuntu Wifi 驱动程序更新后无法正常工作

Ubuntu Wifi 驱动程序更新后无法正常工作

我的笔记本电脑上安装了 Ubuntu 16.04。它一直运行良好,直到有一天出现了一个更新。更新后,我进入内核4.15.0-13-generic,它就在那里。我的 Broadcom Wifi 驱动程序无处可检测。在通知面板上,没有打开/关闭 wifi 的选项。

的结果lspci -nnk | grep 0280 -A3

02:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
    Subsystem: Foxconn International, Inc. BCM43142 802.11b/g/n [105b:e071]
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
    Subsystem: Sony Corporation RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [104d:90be]

我在 grub 中尝试了不同的内核,它们运行良好。目前,我必须切换到内核4.4.0-119.143才能使用我的 wifi。

以下是命令的错误输出sudo apt-get install bcmwl-kernel-source

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  bcmwl-kernel-source
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,544 kB of archives.
After this operation, 8,064 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 bcmwl-kernel-source amd64 6.30.223.271+bdcom-0ubuntu1~1.2 [1,544 kB]
Fetched 1,544 kB in 5s (295 kB/s)                
Selecting previously unselected package bcmwl-kernel-source.
(Reading database ... 290899 files and directories currently installed.)
Preparing to unpack .../bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb ...
Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.2) ...
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.2) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
First Installation: checking all kernels...
Building only for 4.15.0-20-generic
Building for architecture x86_64
Building initial module for 4.15.0-20-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/bcmwl-kernel-source.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-20-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.
modprobe: FATAL: Module wl not found in directory /lib/modules/4.15.0-20-generic
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-20-generic

另外,请告诉我是否更新我的ubuntu 16.04ubuntu 18.04这将有助于解决这个问题。

答案1

与您正在运行的内核 4.15.0-xx 匹配的 Broadcom 驱动程序版本是 6.30.223.271+bdcom-0ubuntu4。由于您从 Ubuntu 16.04 开始并且仍然拥有 apt 存储库,因此系统会尝试安装早期版本;即:

正在解压 bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.2) ...

请打开终端并执行:

wget http://mirrors.kernel.org/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb
sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb

重启。

相关内容