![将 Ubuntu 20 升级到 22 时内核安装失败](https://linux22.com/image/1193416/%E5%B0%86%20Ubuntu%2020%20%E5%8D%87%E7%BA%A7%E5%88%B0%2022%20%E6%97%B6%E5%86%85%E6%A0%B8%E5%AE%89%E8%A3%85%E5%A4%B1%E8%B4%A5.png)
我完成了从 Ubuntu 20 到 22 的升级,但由于内核崩溃而无法启动。我启动了一个旧内核,发现内核安装不正确。
Setting up linux-image-5.15.0-67-generic (5.15.0-67.74) ...
Processing triggers for linux-image-5.15.0-67-generic (5.15.0-67.74) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.15.0-67-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-67-generic
W: Possible missing firmware /lib/firmware/amdgpu/yellow_carp_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vangogh_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_sdma1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/cyan_skillfish_sdma.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
cpio: write error: No space left on device
E: mkinitramfs failure cpio 2
update-initramfs: failed for /boot/initrd.img-5.15.0-67-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.15.0-67-generic (--configure):
installed linux-image-5.15.0-67-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.15.0-67-generic
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
这很令人困惑,因为 /boot 有很多空间:
sudo df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sdc2 916G 160G 717G 19% /
有人能提供什么建议来帮助吗?