内核更新无法安装-启动分区已满

内核更新无法安装-启动分区已满

我正在运行 14.04 LTS。

无法安装或卸载内核更新。引导空间(约 240Mb)现已填满,使用 sudo apt-get 、autoremoveautoclean不起作用。cleanremove

这一切都始于内核更新 3.13.0-47。

没有释放空间,出现以下情况.....

sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 60 not to upgrade.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.13.0-47-generic (3.13.0-47.78) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-48-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-47-generic /boot/vmlinuz-3.13.0-47-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-47-generic /boot/vmlinuz-3.13.0-47-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-47-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-47-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-3.13.0-47-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-47-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.13.0-48-generic (3.13.0-48.80) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-47-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-48-generic /boot/vmlinuz-3.13.0-48-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-48-generic /boot/vmlinuz-3.13.0-48-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-48-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-48-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-3.13.0-48-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-48-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-48-generic:
 linux-image-extra-3.13.0-48-generic depends on linux-image-3.13.0-48-generic; however:
  Package linux-image-3.13.0-48-generic is not configured yet.

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

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.13.0.48.55); however:
  Package linux-image-generic is not cNo apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                  No apport report written because MaxReports has already been reached
                                                      No apport report written because MaxReports has already been reached
                                          onfigured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up linux-image-extra-3.13.0-46-generic (3.13.0-46.79) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-46-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-46-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-46-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports has already been reached
                                                                    dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-47-generic:
 linux-image-extra-3.13.0-47-generic depends on linux-image-3.13.0-47-generic; however:
  Package linux-image-3.13.0-47-generic is not configured yet.

> dpkg: error processing package linux-image-extra-3.13.0-47-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    E: Sub-process /usr/bin/dpkg returned an error code (1)

如何在不重新安装的情况下修复此问题?我尝试调整启动区域的大小,但 GParted 不允许我这么做。

答案1

我也遇到了同样的问题。执行 df -h 后,我发现我的/boot几乎已满。我尝试了本指南卸载旧版本的 ubuntu。现在更新工作正常。这有点奇怪,因为通常我会收到一条错误消息,告诉我/boot几乎已满,而不是一条非描述性的失败消息。

相关内容