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

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

我正在清除 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)

答案1

如果有人在使用 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

谢谢拉斐尔桑托斯 (rafae-s) 来自以下链接

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

答案2

这对我有用 rm -rf /usr/src/bcmwl-6.30.223.271+bdcom,然后rm -rf /var/lib/dkms/*apt-get purge dkms。之后我只需执行apt-get install bcmwl-kernel-source并安装即可。

答案3

对于在 20.04 上遇到此问题的人

尝试手动安装“bcmwl-kernel-source”或使用“附加驱动程序”时会导致此问题。

只需运行此命令 sudo apt-get remove --purge bcmwl-kernel-source

相关内容