Error: BrokenCount>0'. Missing Dependencies?

Asked by Jason Steele on 2013-05-07

There is a red symbol on the bar at the top right of the screen. When I click it I read that there has been an error. It suggests running apt-get from a terminal so I did and this is what I saw:
jason@ubuntu:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-headers-3.2.0-41 linux-headers-3.2.0-41-generic
  linux-headers-3.2.0-41-generic-pae
The following NEW packages will be installed:
  linux-headers-3.2.0-41 linux-headers-3.2.0-41-generic
  linux-headers-3.2.0-41-generic-pae
0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.
5 not fully installed or removed.
Need to get 0 B/13.7 MB of archives.
After this operation, 78.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 748480 files and directories currently installed.)
Unpacking linux-headers-3.2.0-41 (from .../linux-headers-3.2.0-41_3.2.0-41.66_all.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-41_3.2.0-41.66_all.deb (--unpack):
 unable to create `/usr/src/linux-headers-3.2.0-41/drivers/media/dvb/dm1105/Kconfig.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-41/drivers/media/dvb/dm1105/Kconfig'): No space left on device
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking linux-headers-3.2.0-41-generic (from .../linux-headers-3.2.0-41-generic_3.2.0-41.66_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-41-generic_3.2.0-41.66_i386.deb (--unpack):
 error creating directory `./usr/src/linux-headers-3.2.0-41-generic/include/config/uts': No space left on device
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking linux-headers-3.2.0-41-generic-pae (from .../linux-headers-3.2.0-41-generic-pae_3.2.0-41.66_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-41-generic-pae_3.2.0-41.66_i386.deb (--unpack):
 unable to create `/usr/src/linux-headers-3.2.0-41-generic-pae/include/config/cmpxchg/local.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-41-generic-pae/include/config/cmpxchg/local.h'): No space left on device
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-3.2.0-41_3.2.0-41.66_all.deb
 /var/cache/apt/archives/linux-headers-3.2.0-41-generic_3.2.0-41.66_i386.deb
 /var/cache/apt/archives/linux-headers-3.2.0-41-generic-pae_3.2.0-41.66_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The package manager runs into an error every time I try to run it from the GUI also.

I dont' know what is wrong or how to find out and fix it. I have not changed anything recently I just do the updates when they come along. The last thing I installed was Steam.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Jason Steele
Solved:
2013-05-10
Last query:
2013-05-10
Last reply:
2013-05-10
Jason Steele (rockgecko) said : #1

The error from the GUI Update manager is:
The package system is broken.
details:
The following packages have unmet dependencies:

linux-headers-generic: Depends: linux-headers-3.2.0-41-generic but it is not installed
linux-headers-generic-pae: Depends: linux-headers-3.2.0-41-generic-pae but it is not installed

Jason Steele (rockgecko) said : #2

Using the Update Manager I tried each of the 9 updates one at a time but there was always the same error. A couple of times the Update Manager window went grey and hung for a while.

N1ck 7h0m4d4k15 (nicktux) said : #3

At the error report you posted here it seems that you have a space issue

"dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-41-generic-pae/include/config/cmpxchg/local.h'): No space left on device"

You see ? No space left on the device.

How many kernels you have ? You can see with a simple command in terminal

    ls /boot

OR

    dpkg -l | grep linux-image

Then you can remove some old kernels to gain some space.

Removal Example

    sudo apt-get purge linux-image-3.2.0-39-generic

BE AWARE that you CANNOT REMOVE the kernel you have booted the system. You can see which kernel you have booted your system with this command

    uname -r

After you remove some kernels and gain some space, then try to update again..

    sudo apt-get update
    sudo apt-get dist-upgrade

Regards
 NikTh

Jason Steele (rockgecko) said : #4

Thanks! I obviously should have read more closely. On the other hand I had no idea that the old Kernels would build up and take space. Unfortunately the purge does not seem to work I also tried remove and autoremove.

Below you see where I used the "ls /boot" and then the "apt-get purge" and then the "ls /boot" and it looks like the kernel is still there. I tried to purge 5 or so of the kernels I saw listed it always gave the same result. Afterward I tried the "apt-get update" and "apt-get dist-upgrade" and then the "apt-get install" still saw the "no space left on the device" Am I missing something obvious again? It seems like the Kernels are not geing removed.

jason@ubuntu:~$ ls /boot
abi-2.6.38-10-generic config-3.2.0-27-generic initrd.img-3.2.0-34-generic System.map-3.2.0-39-generic
abi-2.6.38-11-generic config-3.2.0-29-generic initrd.img-3.2.0-35-generic System.map-3.2.0-40-generic
abi-2.6.38-8-generic config-3.2.0-31-generic initrd.img-3.2.0-36-generic System.map-3.2.0-41-generic
abi-3.2.0-24-generic config-3.2.0-32-generic initrd.img-3.2.0-37-generic vmcoreinfo-2.6.38-10-generic
abi-3.2.0-25-generic config-3.2.0-33-generic initrd.img-3.2.0-38-generic vmcoreinfo-2.6.38-11-generic
abi-3.2.0-26-generic config-3.2.0-34-generic initrd.img-3.2.0-39-generic vmcoreinfo-2.6.38-8-generic
abi-3.2.0-27-generic config-3.2.0-35-generic initrd.img-3.2.0-40-generic vmlinuz-2.6.38-10-generic
abi-3.2.0-29-generic config-3.2.0-36-generic memtest86+.bin vmlinuz-2.6.38-11-generic
abi-3.2.0-31-generic config-3.2.0-37-generic memtest86+_multiboot.bin vmlinuz-2.6.38-8-generic
abi-3.2.0-32-generic config-3.2.0-38-generic System.map-2.6.38-10-generic vmlinuz-3.2.0-24-generic
abi-3.2.0-33-generic config-3.2.0-39-generic System.map-2.6.38-11-generic vmlinuz-3.2.0-25-generic
abi-3.2.0-34-generic config-3.2.0-40-generic System.map-2.6.38-8-generic vmlinuz-3.2.0-26-generic
abi-3.2.0-35-generic config-3.2.0-41-generic System.map-3.2.0-24-generic vmlinuz-3.2.0-27-generic
abi-3.2.0-36-generic grub System.map-3.2.0-25-generic vmlinuz-3.2.0-29-generic
abi-3.2.0-37-generic initrd.img-2.6.38-10-generic System.map-3.2.0-26-generic vmlinuz-3.2.0-31-generic
abi-3.2.0-38-generic initrd.img-2.6.38-11-generic System.map-3.2.0-27-generic vmlinuz-3.2.0-32-generic
abi-3.2.0-39-generic initrd.img-2.6.38-8-generic System.map-3.2.0-29-generic vmlinuz-3.2.0-33-generic
abi-3.2.0-40-generic initrd.img-3.2.0-24-generic System.map-3.2.0-31-generic vmlinuz-3.2.0-34-generic
abi-3.2.0-41-generic initrd.img-3.2.0-25-generic System.map-3.2.0-32-generic vmlinuz-3.2.0-35-generic
config-2.6.38-10-generic initrd.img-3.2.0-26-generic System.map-3.2.0-33-generic vmlinuz-3.2.0-36-generic
config-2.6.38-11-generic initrd.img-3.2.0-27-generic System.map-3.2.0-34-generic vmlinuz-3.2.0-37-generic
config-2.6.38-8-generic initrd.img-3.2.0-29-generic System.map-3.2.0-35-generic vmlinuz-3.2.0-38-generic
config-3.2.0-24-generic initrd.img-3.2.0-31-generic System.map-3.2.0-36-generic vmlinuz-3.2.0-39-generic
config-3.2.0-25-generic initrd.img-3.2.0-32-generic System.map-3.2.0-37-generic vmlinuz-3.2.0-40-generic
config-3.2.0-26-generic initrd.img-3.2.0-33-generic System.map-3.2.0-38-generic vmlinuz-3.2.0-41-generic
jason@ubuntu:~$ sudo apt-get purge linux-image-2.6.38-10-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-headers-generic : Depends: linux-headers-3.2.0-41-generic but it is not going to be installed
 linux-headers-generic-pae : Depends: linux-headers-3.2.0-41-generic-pae but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
jason@ubuntu:~$ ls /boot
abi-2.6.38-10-generic config-3.2.0-27-generic initrd.img-3.2.0-34-generic System.map-3.2.0-39-generic
abi-2.6.38-11-generic config-3.2.0-29-generic initrd.img-3.2.0-35-generic System.map-3.2.0-40-generic
abi-2.6.38-8-generic config-3.2.0-31-generic initrd.img-3.2.0-36-generic System.map-3.2.0-41-generic
abi-3.2.0-24-generic config-3.2.0-32-generic initrd.img-3.2.0-37-generic vmcoreinfo-2.6.38-10-generic
abi-3.2.0-25-generic config-3.2.0-33-generic initrd.img-3.2.0-38-generic vmcoreinfo-2.6.38-11-generic
abi-3.2.0-26-generic config-3.2.0-34-generic initrd.img-3.2.0-39-generic vmcoreinfo-2.6.38-8-generic
abi-3.2.0-27-generic config-3.2.0-35-generic initrd.img-3.2.0-40-generic vmlinuz-2.6.38-10-generic
abi-3.2.0-29-generic config-3.2.0-36-generic memtest86+.bin vmlinuz-2.6.38-11-generic
abi-3.2.0-31-generic config-3.2.0-37-generic memtest86+_multiboot.bin vmlinuz-2.6.38-8-generic
abi-3.2.0-32-generic config-3.2.0-38-generic System.map-2.6.38-10-generic vmlinuz-3.2.0-24-generic
abi-3.2.0-33-generic config-3.2.0-39-generic System.map-2.6.38-11-generic vmlinuz-3.2.0-25-generic
abi-3.2.0-34-generic config-3.2.0-40-generic System.map-2.6.38-8-generic vmlinuz-3.2.0-26-generic
abi-3.2.0-35-generic config-3.2.0-41-generic System.map-3.2.0-24-generic vmlinuz-3.2.0-27-generic
abi-3.2.0-36-generic grub System.map-3.2.0-25-generic vmlinuz-3.2.0-29-generic
abi-3.2.0-37-generic initrd.img-2.6.38-10-generic System.map-3.2.0-26-generic vmlinuz-3.2.0-31-generic
abi-3.2.0-38-generic initrd.img-2.6.38-11-generic System.map-3.2.0-27-generic vmlinuz-3.2.0-32-generic
abi-3.2.0-39-generic initrd.img-2.6.38-8-generic System.map-3.2.0-29-generic vmlinuz-3.2.0-33-generic
abi-3.2.0-40-generic initrd.img-3.2.0-24-generic System.map-3.2.0-31-generic vmlinuz-3.2.0-34-generic
abi-3.2.0-41-generic initrd.img-3.2.0-25-generic System.map-3.2.0-32-generic vmlinuz-3.2.0-35-generic
config-2.6.38-10-generic initrd.img-3.2.0-26-generic System.map-3.2.0-33-generic vmlinuz-3.2.0-36-generic
config-2.6.38-11-generic initrd.img-3.2.0-27-generic System.map-3.2.0-34-generic vmlinuz-3.2.0-37-generic
config-2.6.38-8-generic initrd.img-3.2.0-29-generic System.map-3.2.0-35-generic vmlinuz-3.2.0-38-generic
config-3.2.0-24-generic initrd.img-3.2.0-31-generic System.map-3.2.0-36-generic vmlinuz-3.2.0-39-generic
config-3.2.0-25-generic initrd.img-3.2.0-32-generic System.map-3.2.0-37-generic vmlinuz-3.2.0-40-generic
config-3.2.0-26-generic initrd.img-3.2.0-33-generic System.map-3.2.0-38-generic vmlinuz-3.2.0-41-generic

Manfred Hampl (m-hampl) said : #5

The command

sudo apt-get purge linux-image-3.2.0-2* linux-headers-3.2.0-2* inux-image-3.2.0-3*-generic linux-headers-3.2.0-3*

should free plenty of space (and still leave the 3.2.0-40 and 3.2.0-41 versions in place).

Manfred Hampl (m-hampl) said : #6

sorry typo errors in the command
it should looke like this:

sudo apt-get purge linux-image-3.2.0-2* linux-headers-3.2.0-2* linux-image-3.2.0-3* linux-headers-3.2.0-3*

Jason Steele (rockgecko) said : #7

Thanks,

I tried the:

sudo apt-get purge linux-image-3.2.0-2* linux-headers-3.2.0-2* linux-image-3.2.0-3* linux-headers-3.2.0-3*

then the:

 sudo apt-get update
 sudo apt-get dist-upgrade

And got the following error message after the dist-upgrade command:

The following packages have unmet dependencies:

linux-headers-generic: Depends: linux-headers-3.2.0-41-generic but it is not installed
linux-headers-generic-pae: Depends: linux-headers-3.2.0-41-generic-pae but it is not installed

The message also suggested the command:

apt-get -f install

so I tried that and here is what I got:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-headers-3.2.0-41 linux-headers-3.2.0-41-generic linux-headers-3.2.0-41-generic-pae
The following NEW packages will be installed:
  linux-headers-3.2.0-41 linux-headers-3.2.0-41-generic linux-headers-3.2.0-41-generic-pae
0 upgraded, 3 newly installed, 0 to remove and 33 not upgraded.
5 not fully installed or removed.
Need to get 0 B/13.7 MB of archives.
After this operation, 78.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 748480 files and directories currently installed.)
Unpacking linux-headers-3.2.0-41 (from .../linux-headers-3.2.0-41_3.2.0-41.66_all.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-41_3.2.0-41.66_all.deb (--unpack):
 unable to create `/usr/src/linux-headers-3.2.0-41/drivers/media/common/tuners/Kconfig.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-41/drivers/media/common/tuners/Kconfig'): No space left on device
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking linux-headers-3.2.0-41-generic (from .../linux-headers-3.2.0-41-generic_3.2.0-41.66_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-41-generic_3.2.0-41.66_i386.deb (--unpack):
 error creating directory `./usr/src/linux-headers-3.2.0-41-generic/include/config/mouse': No space left on device
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking linux-headers-3.2.0-41-generic-pae (from .../linux-headers-3.2.0-41-generic-pae_3.2.0-41.66_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-41-generic-pae_3.2.0-41.66_i386.deb (--unpack):
 unable to create `/usr/src/linux-headers-3.2.0-41-generic-pae/include/config/bridge/ebt/pkttype.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-41-generic-pae/include/config/bridge/ebt/pkttype.h'): No space left on device
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-3.2.0-41_3.2.0-41.66_all.deb
 /var/cache/apt/archives/linux-headers-3.2.0-41-generic_3.2.0-41.66_i386.deb
 /var/cache/apt/archives/linux-headers-3.2.0-41-generic-pae_3.2.0-41.66_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I do see the line in here about "no space left on device" but what about the rest of it.

So just to see if the purge command removed things I did the command:

   ls /boot

and this is what I saw:

abi-2.6.38-10-generic config-3.2.0-27-generic initrd.img-3.2.0-34-generic System.map-3.2.0-39-generic
abi-2.6.38-11-generic config-3.2.0-29-generic initrd.img-3.2.0-35-generic System.map-3.2.0-40-generic
abi-2.6.38-8-generic config-3.2.0-31-generic initrd.img-3.2.0-36-generic System.map-3.2.0-41-generic
abi-3.2.0-24-generic config-3.2.0-32-generic initrd.img-3.2.0-37-generic vmcoreinfo-2.6.38-10-generic
abi-3.2.0-25-generic config-3.2.0-33-generic initrd.img-3.2.0-38-generic vmcoreinfo-2.6.38-11-generic
abi-3.2.0-26-generic config-3.2.0-34-generic initrd.img-3.2.0-39-generic vmcoreinfo-2.6.38-8-generic
abi-3.2.0-27-generic config-3.2.0-35-generic initrd.img-3.2.0-40-generic vmlinuz-2.6.38-10-generic
abi-3.2.0-29-generic config-3.2.0-36-generic memtest86+.bin vmlinuz-2.6.38-11-generic
abi-3.2.0-31-generic config-3.2.0-37-generic memtest86+_multiboot.bin vmlinuz-2.6.38-8-generic
abi-3.2.0-32-generic config-3.2.0-38-generic System.map-2.6.38-10-generic vmlinuz-3.2.0-24-generic
abi-3.2.0-33-generic config-3.2.0-39-generic System.map-2.6.38-11-generic vmlinuz-3.2.0-25-generic
abi-3.2.0-34-generic config-3.2.0-40-generic System.map-2.6.38-8-generic vmlinuz-3.2.0-26-generic
abi-3.2.0-35-generic config-3.2.0-41-generic System.map-3.2.0-24-generic vmlinuz-3.2.0-27-generic
abi-3.2.0-36-generic grub System.map-3.2.0-25-generic vmlinuz-3.2.0-29-generic
abi-3.2.0-37-generic initrd.img-2.6.38-10-generic System.map-3.2.0-26-generic vmlinuz-3.2.0-31-generic
abi-3.2.0-38-generic initrd.img-2.6.38-11-generic System.map-3.2.0-27-generic vmlinuz-3.2.0-32-generic
abi-3.2.0-39-generic initrd.img-2.6.38-8-generic System.map-3.2.0-29-generic vmlinuz-3.2.0-33-generic
abi-3.2.0-40-generic initrd.img-3.2.0-24-generic System.map-3.2.0-31-generic vmlinuz-3.2.0-34-generic
abi-3.2.0-41-generic initrd.img-3.2.0-25-generic System.map-3.2.0-32-generic vmlinuz-3.2.0-35-generic
config-2.6.38-10-generic initrd.img-3.2.0-26-generic System.map-3.2.0-33-generic vmlinuz-3.2.0-36-generic
config-2.6.38-11-generic initrd.img-3.2.0-27-generic System.map-3.2.0-34-generic vmlinuz-3.2.0-37-generic
config-2.6.38-8-generic initrd.img-3.2.0-29-generic System.map-3.2.0-35-generic vmlinuz-3.2.0-38-generic
config-3.2.0-24-generic initrd.img-3.2.0-31-generic System.map-3.2.0-36-generic vmlinuz-3.2.0-39-generic
config-3.2.0-25-generic initrd.img-3.2.0-32-generic System.map-3.2.0-37-generic vmlinuz-3.2.0-40-generic
config-3.2.0-26-generic initrd.img-3.2.0-33-generic System.map-3.2.0-38-generic vmlinuz-3.2.0-41-generic

So it looks like all those kernels are still there right?
Is "apt-get purge" not removing these things?
Is "ls /boot" not showing the kernels that are really there?
Is space on the drive not really the problem?
How do I meet those unmet dependencies mentioned above?

Thanks
J

Manfred Hampl (m-hampl) said : #8

If despite the "apt-get purge" commands you still have "No space left on device", something must have gone wrong in the apt-get command

please try again by opening a terminal and issuing the commands

sudo apt-get purge 'linux-image-3.2.0-2*'
sudo apt-get purge 'linux-headers-3.2.0-2*'

then copy/paste all output into this question document that we can check the results.

Jason Steele (rockgecko) said : #9

Thanks for your help. This apt-get purge command just does not seem to help. Last night I look around for threads on removing old kernels and found one that explained using the synaptic package manager to do it. Synaptic is already installed for me so I opened it up and found all my old linux-images and set them to be removed completely. I also did this for linux-headers. After synaptic did the removals I used synaptic again and found the dependencies that were listed as missing and installed them. Then I just did the usual update with the manager and all is well.

Thanks agian.