![为什么在有可用空间的情况下 dpkg 配置在 ubuntu 10.04 上会耗尽空间?](https://linux22.com/image/816583/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9C%A8%E6%9C%89%E5%8F%AF%E7%94%A8%E7%A9%BA%E9%97%B4%E7%9A%84%E6%83%85%E5%86%B5%E4%B8%8B%20dpkg%20%E9%85%8D%E7%BD%AE%E5%9C%A8%20ubuntu%2010.04%20%E4%B8%8A%E4%BC%9A%E8%80%97%E5%B0%BD%E7%A9%BA%E9%97%B4%EF%BC%9F.png)
我有 7Gb 可用,但是...
~ # dpkg --configure -a
Setting up linux-image-2.6.32-31-generic-pae (2.6.32-31.61) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-31-generic-pae
gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.32-31-generic-pae
Failed to create initrd image.
dpkg: error processing linux-image-2.6.32-31-generic-pae (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
linux-image-generic-pae depends on linux-image-2.6.32-31-generic-pae; however:
Package linux-image-2.6.32-31-generic-pae is not configured yet.
dpkg: error processing linux-image-generic-pae (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:
linux-generic-pae depends on linux-image-generic-pae (= 2.6.32.31.37); however:
Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-2.6.32-31-generic-pae
linux-image-generic-pae
linux-generic-pae
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 18577148 10255512 7377972 59% /
none 1026416 164 1026252 1% /dev
none 1030624 0 1030624 0% /dev/shm
none 1030624 100 1030524 1% /var/run
none 1030624 4 1030620 1% /var/lock
none 1030624 0 1030624 0% /lib/init/rw
/dev/sda1 93207 87960 435 100% /boot
~ # lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid
知道为什么会失败吗?
答案1
您有一个单独的/boot
分区,并且它已 100% 满:
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
...
/dev/sda1 93207 87960 435 100% /boot
删除一些较旧的内核并重试。
更新:我所说的“删除内核”是指“使用 apt-get 或 synaptic 或上述方法在@Whippy 找到的文章中“,而不是“手动删除内核文件和目录”——后者不是一个好主意。
也可以看看: