当尝试从 20.04 升级到 22.04 时,我收到一条错误消息,提示/boot. 但请求的空间量非常大(617M),这让我怀疑出了什么问题。
产生的错误消息do-release-upgrade:
Not enough free disk space
The upgrade has aborted. The upgrade needs a total of 617 M free
space on disk '/boot'. Please free at least an additional 282 M of
disk space on '/boot'. You can remove old kernels using 'sudo apt
autoremove' and you could also set COMPRESS=xz in
/etc/initramfs-tools/initramfs.conf to reduce the size of your
initramfs.
Run Code Online (Sandbox Code Playgroud)
内容/boot:
$ ls -lh /boot/
total …Run Code Online (Sandbox Code Playgroud)