在 ubuntu 16.04 上安装 bcmwl-kernel-source 时出现 DPKG 错误

shr*_*nsh 6 apt dpkg broadcom drivers

我正在清除 bcmwl-kernel-source,但在此过程中我错误地中断了它。现在,当我尝试使用再次安装它时sudo apt-get install bcmwl-kernel-source,出现以下错误

0 upgraded, 0 newly installed, 0 to remove and 393 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.2) ...
Removing old bcmwl-6.30.223.271+bdcom DKMS files...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Error! DKMS tree already contains: bcmwl-6.30.223.271+bdcom
You cannot add the same module/version combo more than once.
dpkg: error processing package bcmwl-kernel-source (--configure):
 subprocess installed post-installation script returned error exit status 3
Errors were encountered while processing:
 bcmwl-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

小智 20

如果有人在使用 Ubuntu 20.04 时仍然遇到此问题,请尝试以下操作:

apt purge bcmwl-kernel-source
apt-get install broadcom-sta-source
apt-get install broadcom-sta-dkms
apt-get install broadcom-sta-common
Run Code Online (Sandbox Code Playgroud)

感谢 来自以下链接的Rafael Santos (rafae-s)

https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1878045