I've got a strange error preventing me from installing anything on my Debian box.
When I run apt-get upgrade (or apt-get install) it produces this error message:
# apt-get upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
If I do at it tells me - to run dpkg --configure -a
it produces the following output:
# dpkg --configure -a
Setting up initramfs-tools (0.93.4) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.26-2-686
gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.26-2-686
dpkg: subprocess installed post-installation script returned error exit status 1
If I do a df -h /boot
it shows that the partition is almost full:
# df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 38M 31M 5.5M 85% /boot
If I check the directory it seems that quite a lot of the stuff is duplicated:
# ls -la /boot
total 26495
drwxr-xr-x 4 root root 1024 2009-11-02 05:00 .
drwxr-xr-x 22 root root 4096 2009-10-25 07:46 ..
-rw-r--r-- 1 root root 70682 2009-08-20 23:14 config-2.6.18-6-686
-rw-r--r-- 1 root root 91690 2009-08-19 11:49 config-2.6.26-2-686
drwxr-xr-x 2 root root 1024 2009-09-20 15:48 grub
-rw-r--r-- 1 root root 4495693 2009-09-20 15:32 initrd.img-2.6.18-6-686
-rw-r--r-- 1 root root 4495471 2008-12-18 12:50 initrd.img-2.6.18-6-686.bak
-rw-r--r-- 1 root root 7175680 2009-09-20 15:54 initrd.img-2.6.26-2-686
-rw-r--r-- 1 root root 6239705 2009-09-20 15:48 initrd.img-2.6.26-2-686.bak
drwx------ 2 root root 12288 2008-08-29 12:21 lost+found
-rw-r--r-- 1 root root 723580 2009-08-21 05:08 System.map-2.6.18-6-686
-rw-r--r-- 1 root root 928010 2009-08-19 11:49 System.map-2.6.26-2-686
-rw-r--r-- 1 root root 1261508 2009-08-21 05:08 vmlinuz-2.6.18-6-686
-rw-r--r-- 1 root root 1506032 2009-08-19 11:48 vmlinuz-2.6.26-2-686
Can anyone help me get out of this misery? ;-)