我正在尝试将 Ubuntu 升级到最新版本,但收到此错误:
Not enough free disk space
The upgrade has aborted. The upgrade needs a total of 430 M free space on disk '/boot'. Please free at least an additional 37.8 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)
从 gparted 中我得知我的/boot
分区大小为 732 MB,其中 425 MB 空闲。我很乐意分配更多空间来/boot
避免这个问题,但考虑到我现在所处的位置,这就是我所做的:
sudo apt autoremove
——这没有什么区别。