Sudo apt-get upgrade fails

Asked by rbbmcghee

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  linux-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/24.9 MB of archives.
After this operation, 322 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 324493 files and directories currently installed.)
Preparing to unpack .../linux-firmware_1.143.6_all.deb ...
Unpacking linux-firmware (1.143.6) over (1.143.3) ...
dpkg: error processing archive /var/cache/apt/archives/linux-firmware_1.143.6_all.deb (--unpack):
 unable to create `/lib/firmware/brcm/bcm4329-fullmac-4.bin.dpkg-new' (while processing `./lib/firmware/brcm/bcm4329-fullmac-4.bin'): Permission denied
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-firmware_1.143.6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
rbbmcghee
Solved:
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

Please send us the full Terminal output of these commands:

sudo chmod -R 755 /lib/firmware

sudo chown -R root:root /lib/firmware

sudo apt-get purge linux-firmware

sudo chmod -R 755 /lib/firmware

sudo chown -R root:root /lib/firmware

sudo apt-get update

sudo apt-get install linux-firmware

ls -lart /lib/firmware/brcm/bcm4329-fullmac-4.bin

Revision history for this message
rbbmcghee (brian-casey-turner) said :
#2

sudo chmod -R 755 /lib/firmware
chmod: changing permissions of ‘/lib/firmware/brcm’: Operation not permitted

sudo chown -R root:root /lib/firmware
chown: changing ownership of ‘/lib/firmware/brcm’: Operation not permitted

 sudo apt-get purge linux-firmware
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-generic thermald
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  linux-firmware* linux-generic* linux-image-generic* linux-signed-generic*
  linux-signed-image-generic*

udo chown -R root:root /lib/firmware
chown: changing ownership of ‘/lib/firmware/brcm’: Operation not permitted
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 86.4 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 324492 files and directories currently installed.)
Removing linux-signed-generic (3.19.0.36.35) ...
Removing linux-signed-image-generic (3.19.0.36.35) ...
Removing linux-generic (3.19.0.36.35) ...
Removing linux-image-generic (3.19.0.36.35) ...
Removing linux-firmware (1.143.3) ...
dpkg: error processing package linux-firmware (--purge):
 cannot remove `/lib/firmware/brcm/brcmfmac4354-sdio.bin': Permission denied
Errors were encountered while processing:
 linux-firmware
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo chmod -R 755 /lib/firmware
chmod: changing permissions of ‘/lib/firmware/brcm’: Operation not permitted

sudo apt-get update
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Hit http://archive.ubuntu.com vivid InRelease
Hit http://dl.google.com stable/main amd64 Packages
Hit http://dl.google.com stable/main i386 Packages
Get:1 http://archive.ubuntu.com vivid-updates InRelease [64.4 kB]
Hit http://archive.canonical.com vivid InRelease
Hit http://ppa.launchpad.net vivid InRelease
Ign http://repo.vivaldi.com stable InRelease
Hit http://archive.canonical.com vivid/partner Sources
Hit http://ppa.launchpad.net vivid/main amd64 Packages
Hit http://archive.canonical.com vivid/partner amd64 Packages
Hit http://ppa.launchpad.net vivid/main i386 Packages
Hit http://repo.vivaldi.com stable Release.gpg
Hit http://archive.ubuntu.com vivid-backports InRelease
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Get:2 http://archive.ubuntu.com vivid-security InRelease [64.4 kB]
Hit http://archive.canonical.com vivid/partner i386 Packages
Hit http://ppa.launchpad.net vivid/main Translation-en
Hit http://repo.vivaldi.com stable Release
Hit http://archive.canonical.com vivid/partner Translation-en
Get:3 http://archive.ubuntu.com vivid-proposed InRelease [218 kB]
Hit http://repo.vivaldi.com stable/main amd64 Packages
Hit http://repo.vivaldi.com stable/main i386 Packages
Hit http://archive.ubuntu.com vivid/main Sources
Hit http://archive.ubuntu.com vivid/restricted Sources
Hit http://archive.ubuntu.com vivid/universe Sources
Hit http://archive.ubuntu.com vivid/multiverse Sources
Hit http://archive.ubuntu.com vivid/main amd64 Packages
Hit http://archive.ubuntu.com vivid/restricted amd64 Packages
Hit http://archive.ubuntu.com vivid/universe amd64 Packages
Hit http://archive.ubuntu.com vivid/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid/main i386 Packages
Hit http://archive.ubuntu.com vivid/restricted i386 Packages
Hit http://archive.ubuntu.com vivid/universe i386 Packages
Hit http://archive.ubuntu.com vivid/multiverse i386 Packages
Hit http://archive.ubuntu.com vivid/main Translation-en
Hit http://archive.ubuntu.com vivid/multiverse Translation-en
Hit http://archive.ubuntu.com vivid/restricted Translation-en
Ign http://repo.vivaldi.com stable/main Translation-en_US
Hit http://archive.ubuntu.com vivid/universe Translation-en
Get:4 http://archive.ubuntu.com vivid-updates/main Sources [105 kB]
Ign http://repo.vivaldi.com stable/main Translation-en
Get:5 http://archive.ubuntu.com vivid-updates/restricted Sources [4,351 B]
Get:6 http://archive.ubuntu.com vivid-updates/universe Sources [47.0 kB]
Get:7 http://archive.ubuntu.com vivid-updates/multiverse Sources [1,956 B]
Get:8 http://archive.ubuntu.com vivid-updates/main amd64 Packages [251 kB]
Get:9 http://archive.ubuntu.com vivid-updates/restricted amd64 Packages [13.6 kB]
Get:10 http://archive.ubuntu.com vivid-updates/universe amd64 Packages [126 kB]
Get:11 http://archive.ubuntu.com vivid-updates/multiverse amd64 Packages [6,024 B]
Get:12 http://archive.ubuntu.com vivid-updates/main i386 Packages [249 kB]
Get:13 http://archive.ubuntu.com vivid-updates/restricted i386 Packages [13.3 kB]
Get:14 http://archive.ubuntu.com vivid-updates/universe i386 Packages [127 kB]
Get:15 http://archive.ubuntu.com vivid-updates/multiverse i386 Packages [6,185 B]
Hit http://archive.ubuntu.com vivid-updates/main Translation-en
Hit http://archive.ubuntu.com vivid-updates/multiverse Translation-en
Hit http://archive.ubuntu.com vivid-updates/restricted Translation-en
Hit http://archive.ubuntu.com vivid-updates/universe Translation-en
Hit http://archive.ubuntu.com vivid-backports/main Sources
Hit http://archive.ubuntu.com vivid-backports/restricted Sources
Hit http://archive.ubuntu.com vivid-backports/universe Sources
Hit http://archive.ubuntu.com vivid-backports/multiverse Sources
Hit http://archive.ubuntu.com vivid-backports/main amd64 Packages
Hit http://archive.ubuntu.com vivid-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com vivid-backports/universe amd64 Packages
Hit http://archive.ubuntu.com vivid-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com vivid-backports/main i386 Packages
Hit http://archive.ubuntu.com vivid-backports/restricted i386 Packages
Hit http://archive.ubuntu.com vivid-backports/universe i386 Packages
Hit http://archive.ubuntu.com vivid-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com vivid-backports/main Translation-en
Hit http://archive.ubuntu.com vivid-backports/multiverse Translation-en
Hit http://archive.ubuntu.com vivid-backports/restricted Translation-en
Hit http://archive.ubuntu.com vivid-backports/universe Translation-en
Get:16 http://archive.ubuntu.com vivid-security/main Sources [52.9 kB]
Get:17 http://archive.ubuntu.com vivid-security/restricted Sources [3,418 B]
Get:18 http://archive.ubuntu.com vivid-security/universe Sources [20.3 kB]
Get:19 http://archive.ubuntu.com vivid-security/multiverse Sources [1,956 B]
Get:20 http://archive.ubuntu.com vivid-security/main amd64 Packages [159 kB]
Get:21 http://archive.ubuntu.com vivid-security/restricted amd64 Packages [11.2 kB]
Get:22 http://archive.ubuntu.com vivid-security/universe amd64 Packages [66.2 kB]
Get:23 http://archive.ubuntu.com vivid-security/multiverse amd64 Packages [6,024 B]
Get:24 http://archive.ubuntu.com vivid-security/main i386 Packages [157 kB]
Get:25 http://archive.ubuntu.com vivid-security/restricted i386 Packages [10.9 kB]
Get:26 http://archive.ubuntu.com vivid-security/universe i386 Packages [66.1 kB]
Get:27 http://archive.ubuntu.com vivid-security/multiverse i386 Packages [6,185 B]
Hit http://archive.ubuntu.com vivid-security/main Translation-en
Hit http://archive.ubuntu.com vivid-security/multiverse Translation-en
Hit http://archive.ubuntu.com vivid-security/restricted Translation-en
Hit http://archive.ubuntu.com vivid-security/universe Translation-en
Get:28 http://archive.ubuntu.com vivid-proposed/multiverse amd64 Packages [551 B]
Get:29 http://archive.ubuntu.com vivid-proposed/main amd64 Packages [72.6 kB]
Get:30 http://archive.ubuntu.com vivid-proposed/universe amd64 Packages [17.0 kB]
Get:31 http://archive.ubuntu.com vivid-proposed/restricted amd64 Packages [28 B]
Get:32 http://archive.ubuntu.com vivid-proposed/multiverse i386 Packages [1,049 B]
Get:33 http://archive.ubuntu.com vivid-proposed/main i386 Packages [72.1 kB]
Get:34 http://archive.ubuntu.com vivid-proposed/universe i386 Packages [18.0 kB]
Get:35 http://archive.ubuntu.com vivid-proposed/restricted i386 Packages [28 B]
Get:36 http://archive.ubuntu.com vivid-proposed/main Translation-en [27.7 kB]
Get:37 http://archive.ubuntu.com vivid-proposed/multiverse Translation-en [786 B]
Get:38 http://archive.ubuntu.com vivid-proposed/restricted Translation-en [28 B]
Get:39 http://archive.ubuntu.com vivid-proposed/universe Translation-en [15.5 kB]
Fetched 2,083 kB in 11s (179 kB/s)
Reading package lists... Done

sudo apt-get install linux-firmware
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-generic thermald
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  linux-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/24.9 MB of archives.
After this operation, 322 kB of additional disk space will be used.
Selecting previously unselected package linux-firmware.
(Reading database ... 324481 files and directories currently installed.)
Preparing to unpack .../linux-firmware_1.143.6_all.deb ...
Unpacking linux-firmware (1.143.6) over (1.143.3) ...
dpkg: error processing archive /var/cache/apt/archives/linux-firmware_1.143.6_all.deb (--unpack):
 unable to create `/lib/firmware/brcm/bcm4329-fullmac-4.bin.dpkg-new' (while processing `./lib/firmware/brcm/bcm4329-fullmac-4.bin'): Permission denied
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-firmware_1.143.6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 ls -lart /lib/firmware/brcm/bcm4329-fullmac-4.bin
-rwxr-xr-x 1 root root 269595 Nov 24 2014 /lib/firmware/brcm/bcm4329-fullmac-4.bin

Revision history for this message
rbbmcghee (brian-casey-turner) said :
#3

I installed 15.10, hopefully that fixes the problem.