1

I have had the following error for the last month or so when trying to do a standard:

apt-get upgrade

or

update-manager

Output from terminal is as follows:

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
  linux-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
11 not fully installed or removed.
Need to get 0 B/38.7 MB of archives.
After this operation, 5,624 kB of additional disk space will be used.
(Reading database ... 408213 files and directories currently 
installed.)
Preparing to unpack .../linux-firmware_1.157.10_all.deb ...
Unpacking linux-firmware (1.157.10) over (1.157.8) ...
dpkg: error processing archive /var/cache/apt/archives/linux-
firmware_1.157.10_all.deb (--unpack):
unable to create '/lib/firmware/brcm/brcmfmac4330-sdio.bin.dpkg-new' 
(while processing './lib/firmware/brcm/brcmfmac4330-sdio.bin'): 
Permission denied
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
update-initramfs: Generating /boot/initrd.img-4.4.0-79-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-78-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-106-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-firmware_1.157.10_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have tried deleting the file at:

'./lib/firmware/brcm/brcmfmac4330-sdio.bin'

and then reinstalling but no luck.

I have also looked at:

https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/1688602

but my issue does not seem to be with *.ucode drivers.

Was wondering if it was my graphics card but my system at home is 16.04 too and it has a much older graphics card and there seems to be no problem there.

Edit: Added:

total 75224
drwxr-xr-x 74 root    root      32768 Jun 14 08:27 .
drwxr-xr-x 26 root    root       4096 Jun  7 10:00 ..
drwxr-xr-x 11 root    root       4096 Jan  3 08:53 3.13.0-106-generic
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 3com
drwxr-xr-x 11 root    root       4096 May 17 15:10 4.4.0-78-generic
drwxr-xr-x 11 root    root       4096 Jun  7 10:04 4.4.0-79-generic
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 acenic
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 adaptec
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 advansys
-rw-r--r--  1 root    root      50698 Apr 25  2016 agere_ap_fw.bin
-rw-r--r--  1 root    root      65046 Apr 25  2016 agere_sta_fw.bin
drwxr-xr-x  2 root    root      12288 Jun 14 08:27 amdgpu
drwxr-xr-x  3 root    root       4096 Jun 14 08:27 ar3k
-rw-r--r--  1 root    root     153416 Dec  1  2016 ar5523.bin
-rw-r--r--  1 root    root      95500 Dec  1  2016 as102_data1_st.hex
-rw-r--r--  1 root    root      81820 Dec  1  2016 as102_data2_st.hex
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 asihpi
drwxr-xr-x 10 root    root       4096 Jan  3 09:25 ath10k
-rw-r--r--  1 root    root     246804 Jan  6 17:56 ath3k-1.fw
drwxr-xr-x  4 root    root       4096 Apr 17  2014 ath6k
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 ath9k_htc
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 atmel
-rw-r--r--  1 root    root      35180 Jan  6 17:56 atmel_at76c504_2958.bin
-rw-r--r--  1 root    root      39928 Jan  6 17:56 atmel_at76c504a_2958.bin
-rw-r--r--  1 root    root       9726 Apr 25  2016 atmsar11.fw
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 atusb
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 av7110
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 bnx2x
drwxr-xr-x  2 root    root       4096 Feb 13 14:54 brcm
-rw-r--r--  1 root    root      13388 Dec  1  2016 carl9170-1.fw
drwxr-xr-x  9 root    root       4096 Jun 14 08:27 carl9170fw
-rw-r--r--  1 root    root     412528 Apr 25  2016 cbfw-3.2.1.1.bin
-rw-r--r--  1 root    root     414016 Apr 25  2016 cbfw-3.2.3.0.bin
-rw-r--r--  1 root    root     414480 Dec  1  2016 cbfw-3.2.5.1.bin
drwxr-xr-x  3 root    root       4096 Jun 14 08:27 cis
-rw-r--r--  1 root    root        107 Dec  1  2016 configure
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 cpia2
-rw-r--r--  1 root    root     582440 Apr 25  2016 ct2fw-3.2.1.1.bin
-rw-r--r--  1 root    root     583688 Apr 25  2016 ct2fw-3.2.3.0.bin
-rw-r--r--  1 root    root     584216 Dec  1  2016 ct2fw-3.2.5.1.bin
-rw-r--r--  1 root    root     655436 Dec  1  2016 ctefx.bin
-rw-r--r--  1 root    root     537160 Apr 25  2016 ctfw-3.2.1.1.bin
-rw-r--r--  1 root    root     538712 Apr 25  2016 ctfw-3.2.3.0.bin
-rw-r--r--  1 root    root     539144 Dec  1  2016 ctfw-3.2.5.1.bin
-rw-r--r--  1 root    root       4120 Dec  1  2016 ctspeq.bin
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 cxgb3
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 cxgb4
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 dsp56k
-rw-r--r--  1 root    root      18643 Dec  1  2016 dvb-fe-xc4000-1.4.1.fw
-rw-r--r--  1 root    root      12401 Apr 25  2016 dvb-fe-xc5000-1.6.114.fw
-rw-r--r--  1 root    root      16497 Dec  1  2016 dvb-fe-xc5000c-4.1.30.7.fw
-rw-r--r--  1 root    root      33768 Apr 25  2016 dvb-usb-dib0700-1.20.fw
-rw-r--r--  1 root    root       8128 Dec  1  2016 dvb-usb-it9135-01.fw
-rw-r--r--  1 root    root       5834 Dec  1  2016 dvb-usb-it9135-02.fw
-rw-r--r--  1 root    root      50222 Apr 25  2016 dvb-usb-terratec-h5-drxk.fw
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 ea
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 edgeport
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 emi26
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 emi62
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 ene-ub6250
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 ess
-rw-r--r--  1 root    root     180776 Apr 25  2016 f2255usb.bin
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 go7007
-rw-r--r--  1 root    root      35068 Apr 25  2016 GPL-3
-rw-r--r--  1 root    root      31828 Jan  6 17:56 hfi1_dc8051.fw
-rw-r--r--  1 root    root      16848 Dec  1  2016 hfi1_fabric.fw
-rw-r--r--  1 root    root      33168 Dec  1  2016 hfi1_pcie.fw
-rw-r--r--  1 root    root       5360 Dec  1  2016 hfi1_sbus.fw
drwxr-xr-x  2 root    root       4096 Feb 18  2014 hp
-rw-r--r--  1 root    root      72684 Dec  9  2016 htc_7010.fw
-rw-r--r--  1 root    root      50980 Dec  9  2016 htc_9271.fw
-rw-r--r--  1 root    root    1251036 Apr 25  2016 i2400m-fw-usb-1.4.sbcf
-rw-r--r--  1 root    root    1334532 Apr 25  2016 i2400m-fw-usb-1.5.sbcf
-rw-r--r--  1 root    root    1531932 Apr 25  2016 i6050-fw-usb-1.5.sbcf
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 i915
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 intel
-rw-r--r--  1 root    root     209190 Jan  6 17:56 ipw2100-1.3.fw
-rw-r--r--  1 root    root     201138 Jan  6 17:56 ipw2100-1.3-i.fw
-rw-r--r--  1 root    root     196458 Jan  6 17:56 ipw2100-1.3-p.fw
-rw-r--r--  1 root    root     191154 Jan  6 17:56 ipw2200-bss.fw
-rw-r--r--  1 root    root     185428 Jan  6 17:56 ipw2200-ibss.fw
-rw-r--r--  1 root    root     187836 Jan  6 17:56 ipw2200-sniffer.fw
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 isci
-rw-r--r--  1 root    root     337520 Apr 25  2016 iwlwifi-1000-5.ucode
-rw-r--r--  1 root    root     337572 Apr 25  2016 iwlwifi-100-5.ucode
-rw-r--r--  1 root    root     689680 Apr 25  2016 iwlwifi-105-6.ucode
-rw-r--r--  1 root    root     701228 Apr 25  2016 iwlwifi-135-6.ucode
-rw-r--r--  1 root    root     695876 Apr 25  2016 iwlwifi-2000-6.ucode
-rw-r--r--  1 root    root     707392 Apr 25  2016 iwlwifi-2030-6.ucode
-rw-r--r--  1 root    root     609892 Dec  1  2016 iwlwifi-3160-10.ucode
-rw-r--r--  1 root    root     683996 Dec  1  2016 iwlwifi-3160-12.ucode
-rw-r--r--  1 root    root     688616 Dec  1  2016 iwlwifi-3160-13.ucode
-rw-r--r--  1 root    root     918212 Dec  1  2016 iwlwifi-3160-16.ucode
-rw-r--r--  1 root    root     918268 Dec  9  2016 iwlwifi-3160-17.ucode
-rw-r--r--  1 root    root     670484 Apr 25  2016 iwlwifi-3160-7.ucode
-rw-r--r--  1 root    root     667284 Apr 25  2016 iwlwifi-3160-8.ucode
-rw-r--r--  1 root    root     669872 Dec  1  2016 iwlwifi-3160-9.ucode
-rw-r--r--  1 root    root    1384856 Dec  9  2016 iwlwifi-3168-21.ucode
-rw-r--r--  1 root    root    1028032 Dec  9  2016 iwlwifi-3168-22.ucode
-rw-r--r--  1 root    root     150100 Apr 25  2016 iwlwifi-3945-2.ucode
-rw-r--r--  1 root    root     187972 Apr 25  2016 iwlwifi-4965-2.ucode
-rw-r--r--  1 root    root     340696 Nov 30  2016 iwlwifi-5000-5.ucode
-rw-r--r--  1 root    root     337400 Apr 25  2016 iwlwifi-5150-2.ucode
-rw-r--r--  1 root    root     454608 Apr 25  2016 iwlwifi-6000-4.ucode
-rw-r--r--  1 root    root     444128 Apr 25  2016 iwlwifi-6000g2a-5.ucode
-rw-r--r--  1 root    root     677296 Apr 25  2016 iwlwifi-6000g2a-6.ucode
-rw-r--r--  1 root    root     679436 Apr 25  2016 iwlwifi-6000g2b-6.ucode
-rw-r--r--  1 root    root     469780 Apr 25  2016 iwlwifi-6050-5.ucode
-rw-r--r--  1 root    root     672352 Dec  1  2016 iwlwifi-7260-10.ucode
-rw-r--r--  1 root    root     782300 Dec  1  2016 iwlwifi-7260-12.ucode
-rw-r--r--  1 root    root     786920 Dec  1  2016 iwlwifi-7260-13.ucode
-rw-r--r--  1 root    root    1049284 Dec  1  2016 iwlwifi-7260-16.ucode
-rw-r--r--  1 root    root    1049340 Dec  9  2016 iwlwifi-7260-17.ucode
-rw-r--r--  1 root    root     683236 Apr 25  2016 iwlwifi-7260-7.ucode
-rw-r--r--  1 root    root     679780 Dec  1  2016 iwlwifi-7260-8.ucode
-rw-r--r--  1 root    root     680508 Dec  1  2016 iwlwifi-7260-9.ucode
-rw-r--r--  1 root    root     736844 Dec  1  2016 iwlwifi-7265-10.ucode
-rw-r--r--  1 root    root     880604 Dec  1  2016 iwlwifi-7265-12.ucode
-rw-r--r--  1 root    root     885224 Dec  1  2016 iwlwifi-7265-13.ucode
-rw-r--r--  1 root    root    1180356 Dec  1  2016 iwlwifi-7265-16.ucode
-rw-r--r--  1 root    root    1180412 Dec  9  2016 iwlwifi-7265-17.ucode
-rw-r--r--  1 root    root     690452 Apr 25  2016 iwlwifi-7265-8.ucode
-rw-r--r--  1 root    root     697828 Dec  1  2016 iwlwifi-7265-9.ucode
lrwxrwxrwx  1 root    root         21 Dec  9  2016 iwlwifi-7265D-10.ucode -> iwlwifi-7265-10.ucode
-rw-r--r--  1 root    root    1002800 Dec  1  2016 iwlwifi-7265D-12.ucode
-rw-r--r--  1 root    root    1008692 Dec  1  2016 iwlwifi-7265D-13.ucode
-rw-r--r--  1 root    root    1384500 Dec  1  2016 iwlwifi-7265D-16.ucode
-rw-r--r--  1 root    root    1383604 Dec  9  2016 iwlwifi-7265D-17.ucode
-rw-r--r--  1 root    root    1385368 Dec  9  2016 iwlwifi-7265D-21.ucode
-rw-r--r--  1 root    root    1028316 Dec  9  2016 iwlwifi-7265D-22.ucode
-rw-r--r--  1 root    root    1745176 Dec  1  2016 iwlwifi-8000C-13.ucode
-rw-r--r--  1 root    root    2351636 Dec  1  2016 iwlwifi-8000C-16.ucode
-rw-r--r--  1 root    root    2394060 Dec  9  2016 iwlwifi-8000C-21.ucode
-rw-rw-r--  1 michael michael 2120860 Jun  7 11:44 iwlwifi-8000C-23.ucode
-rw-r--r--  1 root    root    2389968 Dec  9  2016 iwlwifi-8265-21.ucode
-rw-r--r--  1 root    root    1811984 Dec  9  2016 iwlwifi-8265-22.ucode
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 kaweth
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 keyspan
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 keyspan_pda
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 korg
-rw-r--r--  1 root    root     118888 Apr 25  2016 lbtf_usb.bin
-rw-r--r--  1 root    root        262 Apr 25  2016 lgs8g75.fw
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 libertas
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 liquidio
-rw-r--r--  1 root    root        370 Jan  6 17:56 Makefile
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 matrox
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 moxa
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 mrvl
-rw-r--r--  1 root    root      45412 Dec  1  2016 mt7601u.bin
-rw-r--r--  1 root    root     368220 Dec  1  2016 mt7650.bin
-rw-r--r--  1 root    root      13847 Apr 25  2016 mts_cdma.fw
-rw-r--r--  1 root    root      14067 Apr 25  2016 mts_edge.fw
-rw-r--r--  1 root    root      13847 Apr 25  2016 mts_gsm.fw
-rw-r--r--  1 root    root      13769 Apr 25  2016 mts_mt9234mu.fw
-rw-r--r--  1 root    root      13769 Apr 25  2016 mts_mt9234zba.fw
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 mwl8k
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 mwlwifi
-rw-r--r--  1 root    root     378832 Dec  1  2016 myri10ge_eth_big_z8e.dat
-rw-r--r--  1 root    root     389144 Dec  1  2016 myri10ge_ethp_big_z8e.dat
-rw-r--r--  1 root    root     389056 Dec  1  2016 myri10ge_ethp_z8e.dat
-rw-r--r--  1 root    root     378736 Dec  1  2016 myri10ge_eth_z8e.dat
-rw-r--r--  1 root    root     536192 Dec  1  2016 myri10ge_rss_eth_big_z8e.dat
-rw-r--r--  1 root    root     545936 Dec  1  2016 myri10ge_rss_ethp_big_z8e.dat
-rw-r--r--  1 root    root     545920 Dec  1  2016 myri10ge_rss_ethp_z8e.dat
-rw-r--r--  1 root    root     536176 Dec  1  2016 myri10ge_rss_eth_z8e.dat
-rw-r--r--  1 root    root      15664 Jan  6 17:56 NPE-B
-rw-r--r--  1 root    root      15664 Jan  6 17:56 NPE-C
drwxr-xr-x 10 root    root       4096 Jan  3 09:25 nvidia
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 ositech
-rw-r--r--  1 root    root    1845305 Dec  1  2016 phanfw.bin
-rw-r--r--  1 root    root     463612 Dec  1  2016 qat_895xcc.bin
-rw-r--r--  1 root    root     114176 Dec  1  2016 qat_895xcc_mmp.bin
-rw-r--r--  1 root    root     265444 Dec  1  2016 qat_c3xxx.bin
-rw-r--r--  1 root    root     114820 Dec  1  2016 qat_c3xxx_mmp.bin
-rw-r--r--  1 root    root     398144 Dec  1  2016 qat_c62x.bin
-rw-r--r--  1 root    root     114820 Dec  1  2016 qat_c62x_mmp.bin
lrwxrwxrwx  1 root    root         18 Dec  1  2016 qat_mmp.bin -> qat_895xcc_mmp.bin
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 qca
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 qed
-rw-r--r--  1 root    root      76802 Apr 25  2016 ql2100_fw.bin
-rw-r--r--  1 root    root      84566 Apr 25  2016 ql2200_fw.bin
-rw-r--r--  1 root    root     125252 Dec  1  2016 ql2300_fw.bin
-rw-r--r--  1 root    root     136038 Dec  1  2016 ql2322_fw.bin
-rw-r--r--  1 root    root     264520 Dec  9  2016 ql2400_fw.bin
-rw-r--r--  1 root    root     275160 Dec  9  2016 ql2500_fw.bin
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 r128
-rw-r--r--  1 root    root       9452 Dec  1  2016 r8a779x_usb3_v1.dlmem
-rw-r--r--  1 root    root       9472 Jan  6 17:56 r8a779x_usb3_v2.dlmem
drwxr-xr-x  2 root    root      36864 Jun 14 08:27 radeon
-rw-r--r--  1 root    root       1562 Jan  6 17:56 README
-rw-r--r--  1 root    root         63 Dec  1  2016 rp2.fw
-rw-r--r--  1 root    root      94100 Dec  1  2016 rsi_91x.fw
-rw-r--r--  1 root    root       8192 Apr 25  2016 rt2561.bin
-rw-r--r--  1 root    root       8192 Apr 25  2016 rt2561s.bin
-rw-r--r--  1 root    root       8192 Apr 25  2016 rt2661.bin
-rw-r--r--  1 root    root       8192 Jan  6 17:56 rt2860.bin
-rw-r--r--  1 root    root       8192 Jan  6 17:56 rt2870.bin
lrwxrwxrwx  1 root    root         10 Apr 25  2016 rt3070.bin -> rt2870.bin
lrwxrwxrwx  1 root    root         10 Apr 25  2016 rt3090.bin -> rt2860.bin
-rw-r--r--  1 root    root       4096 Nov 30  2016 rt3290.bin
-rw-r--r--  1 root    root       2048 Apr 25  2016 rt73.bin
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 RTL8192E
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 rtl_bt
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 rtl_nic
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 rtlwifi
lrwxrwxrwx  1 root    root         17 Dec  1  2016 s2250.fw -> go7007/s2250-2.fw
lrwxrwxrwx  1 root    root         17 Dec  1  2016 s2250_loader.fw -> go7007/s2250-1.fw
-rw-r--r--  1 root    root     352652 Dec  9  2016 s5p-mfc.fw
-rw-r--r--  1 root    root     306312 Dec  9  2016 s5p-mfc-v6.fw
-rw-r--r--  1 root    root     343756 Dec  9  2016 s5p-mfc-v6-v2.fw
-rw-r--r--  1 root    root     382724 Dec  9  2016 s5p-mfc-v7.fw
-rw-r--r--  1 root    root     360576 Dec  9  2016 s5p-mfc-v8.fw
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 sb16
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 scripts
-rw-r--r--  1 root    root        816 Dec  1  2016 sdd_sagrad_1091_1098.bin
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 slicoss
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 sun
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 tehuti
-rw-r--r--  1 root    root      13765 Apr 25  2016 ti_3410.fw
-rw-r--r--  1 root    root      13764 Apr 25  2016 ti_5052.fw
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 ti-connectivity
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 tigon
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 ti-keystone
-rw-r--r--  1 root    root      51972 Apr 25  2016 tlg2300_firmware.bin
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 ttusb-budget
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 ueagle-atm
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 usbdux
-rw-r--r--  1 root    root        999 Apr 25  2016 usbduxfast_firmware.bin
-rw-r--r--  1 root    root       1770 Apr 25  2016 usbdux_firmware.bin
-rw-r--r--  1 root    root       8192 Jan  6 17:57 usbduxsigma_firmware.bin
-rw-r--r--  1 root    root      16382 Apr 25  2016 v4l-cx231xx-avcore-01.fw
-rw-r--r--  1 root    root     141200 Apr 25  2016 v4l-cx23418-apu.fw
-rw-r--r--  1 root    root     158332 Apr 25  2016 v4l-cx23418-cpu.fw
-rw-r--r--  1 root    root      16382 Apr 25  2016 v4l-cx23418-dig.fw
-rw-r--r--  1 root    root     262144 Jan  6 17:56 v4l-cx2341x-dec.fw
-rw-r--r--  1 root    root     376836 Jan  6 17:56 v4l-cx2341x-enc.fw
-rw-r--r--  1 root    root     155648 Jan  6 17:56 v4l-cx2341x-init.mpg
-rw-r--r--  1 root    root      16382 Apr 25  2016 v4l-cx23885-avcore-01.fw
-rw-r--r--  1 root    root      16382 Apr 25  2016 v4l-cx25840.fw
-rw-r--r--  1 root    root       8192 Jan  6 17:56 v4l-pvrusb2-24xxx-01.fw
-rw-r--r--  1 root    root       8192 Jan  6 17:56 v4l-pvrusb2-29xxx-01.fw
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 vicam
-rw-r--r--  1 root    root      11341 Apr 25  2016 vntwusb.fw
-rw-r--r--  1 root    root    4082928 Jan  6 17:56 vpu_d.bin
-rw-r--r--  1 root    root     131160 Jan  6 17:56 vpu_p.bin
drwxr-xr-x  2 root    root       4096 Feb 12 13:29 vxge
-rw-r--r--  1 root    root       4685 Jan  6 17:56 WHENCE.ubuntu
-rw-r--r--  1 root    root      23554 Apr 25  2016 whiteheat.fw
-rw-r--r--  1 root    root       5626 Apr 25  2016 whiteheat_loader.fw
-rw-r--r--  1 root    root      97824 Dec  1  2016 wsm_22.bin
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 yam
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 yamaha
-rw-r--r--  1 root    root      62484 Jan  6 17:56 zd1201-ap.fw
-rw-r--r--  1 root    root      70612 Jan  6 17:56 zd1201.fw
drwxr-xr-x  2 root    root       4096 Jun 14 08:27 zd1211 </blockquote>

Ok, so I have found out that some files have Linux attributes as well as permissions. These attributes can limit file deletion see man chattr. So I did lsattr on the brcm folder contents (I could not delete this folder using rm -rf) and found that all the files had the -e flag. From the manpage I found that you cannot change the -e attribute using chattr. So now my question is:

How do you remove files with the -e attribute?

I did not receive an answer to the above. I am not sure it can be done.

In the end my solution was to reinstall Ubuntu 16.04. I am not sure what caused this error or how to solve it.

closed as off-topic by Faheem Mitha, terdon Jun 19 '17 at 12:18

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Faheem Mitha, terdon
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Please add the output of ls -la /lib/firmware to the question – Rui F Ribeiro Jun 14 '17 at 10:19