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)
sudo apt-get -f install
(-f is shorthand for --fix-broken); then maybe thesudo dpkg-reconfigure bcmwl-kernel-source