无法删除 linux-image-extra-4.4.0-71-generic

无法删除 linux-image-extra-4.4.0-71-generic

我正在尝试安装最新的内核,但是当我运行

sudo apt-get -f install linux-image-4.4.0-78-generic linux-image-extra-4.4.0-78-generic

我收到此错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-4.4.0-78-generic is already the newest version (4.4.0-78.99).
linux-image-4.4.0-78-generic set to manually installed.
linux-image-extra-4.4.0-78-generic is already the newest version (4.4.0-78.99).
linux-image-extra-4.4.0-78-generic set to manually installed.
The following packages will be REMOVED:
  linux-image-extra-4.4.0-71-generic
0 to upgrade, 0 to newly install, 1 to remove and 76 not to upgrade.
5 not fully installed or removed.
After this operation, 153 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 193286 files and directories currently installed.)
Removing linux-image-extra-4.4.0-71-generic (4.4.0-71.92) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-71-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-71-generic /boot/vmlinuz-4.4.0-71-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-71-generic /boot/vmlinuz-4.4.0-71-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-71-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
depmod: WARNING: could not open /var/tmp/mkinitramfs_dPzLCV/lib/modules/4.4.0-71-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_dPzLCV/lib/modules/4.4.0-71-generic/modules.builtin: No such file or directory

而且它似乎无限期地卡住了...有人能告诉我如何调试它,或者从中恢复吗?

谢谢。

编辑:/boot 没有满,它有 254Mb 可用空间

edit2:问题似乎在于更新-initramfs,当我运行它时,sudo update-initramfs -u它无限期地卡住

相关内容