synaptics package manager errors and dpkg wont work [dependency problems]

Asked by Bober

I opened synaptics package manager this morning after booting up and it gave me an error
after running what it said in the message box in terminal i got this

    bober@BoberBot:~$ sudo dpkg --configure -a
    [sudo] password for bober:
    Setting up gnome-system-monitor (3.8.0-0ubuntu1) ...
    Setting up linux-image-extra-3.8.0-27-generic (3.8.0-27.40) ...
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-27-generic /boot/vmlinuz-3.8.0-27-generic
    run-parts: executing /etc/kernel/postinst.d/dkms 3.8.0-27-generic /boot/vmlinuz-3.8.0-27-generic
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-27-generic /boot/vmlinuz-3.8.0-27-generic
    update-initramfs: Generating /boot/initrd.img-3.8.0-27-generic

    gzip: stdout: No space left on device
    E: mkinitramfs failure cpio 141 gzip 1
    update-initramfs: failed for /boot/initrd.img-3.8.0-27-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-extra-3.8.0-27-generic.postinst line 1010.
    dpkg: error processing linux-image-extra-3.8.0-27-generic (--configure):
     subprocess installed post-installation script returned error exit status 2
    dpkg: dependency problems prevent configuration of linux-image-generic:
     linux-image-generic depends on linux-image-extra-3.8.0-27-generic; however:
      Package linux-image-extra-3.8.0-27-generic is not configured yet.

    dpkg: error processing linux-image-generic (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-generic:
     linux-generic depends on linux-image-generic (= 3.8.0.27.45); however:
      Package linux-image-generic is not configured yet.

    dpkg: error processing linux-generic (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     linux-image-extra-3.8.0-27-generic
     linux-image-generic
     linux-generic
    bober@BoberBot:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bober
Solved:
Last query:
Last reply:
Revision history for this message
Daniel Letzeisen (dtl131) said :
#1

" gzip: stdout: No space left on device"

Your /boot partition is full (if you don't have /boot in a separate partition, then root is full). If you have old kernels hanging aroud, now would be a good time to remove them.

Give output of:
df -h

Revision history for this message
primefalcon (primefalcon) said :
#2

could also be errors on the device in which case boot a live disk/usb and opening gparted and selecting fix from the menus for said partitions

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Please open a terminal and issue the command

df -h; df -i

then select all output, copy it and paste into this question document taht we can see it.
The results of that command should indicate which of the devices is full.

Revision history for this message
Bober (bober-182) said :
#4

It was my boot drive I didn't know you had to delete old kernels. There should be a way to do it by default after 3 new ones or so.