Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I recently clicked yes to a system update, which subsequently failed. I believe the problem is that my boot partition does not have enough space.

I would like to install Synaptic Package Manager to delete some of the old kernels (I can't just rm them from /boot/ can I? - this is also an acceptable solution, provided it doesn't break anything) but when I aptitude/apt-get synaptic it fails because presumably because it tries to complete the partially-failed upgrade...

Reading package lists... Done
Building dependency tree       
[... lines removed for brevity ...]
update-initramfs: Generating /boot/initrd.img-3.8.0-21-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-21-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-21-generic.postinst line 1010.
dpkg: error processing linux-image-extra-3.8.0-21-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-21-generic; however:
  Package linux-image-extra-3.8.0-21-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.21.37); however:
  Package linux-image-generic is not configured yet.

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

dpkg: error processing linux-generic-pae (--configure):
 dependency problems - leaving unconfigured
Setting up libept1.4.12 (1.0.9) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    No apport report written because MaxReports is reached already
                                  Setting up synaptic (0.80~exp2) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.8.0-21-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-21-generic with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
Errors were encountered while processing:
 linux-image-extra-3.8.0-21-generic
 linux-image-generic
 linux-generic
 linux-generic-pae
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here are my system details:

$uname -r
3.8.0-21-generic

$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.04
Release:    13.04
Codename:   raring

Presumably it's completed enough of the upgrade to be 13.04 in lsb_release. I was on 12.10 before the upgrade.

share|improve this question
    
For removing kernels this old post should help askubuntu.com/questions/153185/… –  AurA Jun 3 '13 at 5:35
    
Brilliant! thank you. –  ninjamario Jun 3 '13 at 5:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.