9

I was purging bcmwl-kernel-source, but during the process Iinterrupted it by mistake. Now when I am trying to install it again using sudo apt-get install bcmwl-kernel-source I get the following error

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)
shreyansh
  • 101

3 Answers3

22

If anyone is still facing this issue using Ubuntu 20.04, try the following:

apt purge bcmwl-kernel-source
apt-get install broadcom-sta-source
apt-get install broadcom-sta-dkms
apt-get install broadcom-sta-common

Thanks to Rafael Santos (rafae-s) from the link below

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

Kevin Bowen
  • 19,615
  • 55
  • 79
  • 83
Atef
  • 336
-1

This worked for me rm -rf /usr/src/bcmwl-6.30.223.271+bdcom and then rm -rf /var/lib/dkms/* followed by apt-get purge dkms. After that I just did apt-get install bcmwl-kernel-source and it installed.

shreyansh
  • 101
  • You need dkms to automatically recompile bcwl source code with every kernel update. Now you will have to manually compile it for all new kernels. – WinEunuuchs2Unix Feb 11 '18 at 16:15
  • @WinEunuuchs2Unix how do i fix it now so that dkms automatically recompiles bmwl source code? – shreyansh Feb 13 '18 at 05:31
-2

For anyone facing this issue on 20.04

This issue is caused when attempting to manually install "bcmwl-kernel-source" or using "Additional Drivers".

Just run this command sudo apt-get remove --purge bcmwl-kernel-source