Mar 12, 2009

dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

ox0spy@ox0spy-laptop:~$ sudo apt-get update && sudo apt-get upgrade
.
..
...
Fetched 1165kB in 2min7s (9162B/s)                                            
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

竟然有错,
按提示,输入: dpkg --configure -a

ox0spy@ox0spy-laptop:~$ sudo dpkg --configure -a
Setting up initramfs-tools (0.85eubuntu39.3) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.24-24-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.24-24-generic
dpkg: subprocess post-installation script returned error exit status 1

原来没空间了

下面确定下,果然/boot 被100%的使用了
ox0spy@ox0spy-laptop:~$ df -m /boot/
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/sda8                   43        41         1 100% /boot

ox0spy@ox0spy-laptop:/boot$ sudo mv initrd.img-2.6.24-2*.bak ~/
然后,再看下/boot可用空间
ox0spy@ox0spy-laptop:/boot$ df -m /boot/
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/sda8                   43        26        15  64% /boot
恩,有15M 可用,先试试...
ox0spy@ox0spy-laptop:/boot$ sudo dpkg --configure -a
Setting up initramfs-tools (0.85eubuntu39.3) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.24-24-generic

OK,没问题了
看来下次得把/boot空间分大点,50M有点小了...
或经常把/boot中的备份文件移到其他地方

No comments:

Post a Comment

您的评论将使我blog更有动力~