I am trying to get my wireless working, but when I put in commands to get it working I get error messages.

Code:
sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Code:
sudo apt-get install linux-firmware-nonfree
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Code:
sudo modprobe b43
WARNING: /etc/modprobe.d/blacklist.conf line 56: ignoring bad line starting with 'Ic3man07'
WARNING: /etc/modprobe.d/blacklist.conf line 57: ignoring bad line starting with 'sudo'
I thought maybe the software center or another terminal was causing a conflict so I rebooted then tried again. Unfortunately I am getting the same messages.