Kubuntu 22.04升级至24.04时,因安装程序默认创建的704MB/boot分区空间不足导致升级失败求助
Kubuntu 22.04升级至24.04时,因安装程序默认创建的704MB/boot分区空间不足导致升级失败求助
我最近尝试把Kubuntu 22.04升级到24.04,运行sudo do-release-upgrade的时候直接失败了,错误提示说/boot分区空间不够,具体报错内容如下:
Not enough free disk space
The upgrade has aborted. The upgrade needs a total of 621 M free
space on disk '/boot'. Please free at least an additional 152 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.Restoring original system state
Aborting
我查了下我的/boot分区,是当初Kubuntu 22.04安装程序默认创建的,只有704MB大小,现在的使用情况是:
/dev/nvme0n1p2 704M 205M 448M 32% /boot
而且我现在只装了一个内核,看/boot目录的总大小也才197M左右,具体目录列表(部分内容):
$ ls -lah /boot total 197M drwxr-xr-x 5 root root 4.0K aug 30 16:41 . drwxr-xr-x 22 root root 4.0K juuni 16 2022 .. -rw-r--r-- 1 root root 281K juuli 30 17:33 config-6.8.0-40-generic drwx------ 4 root root 4.0K jaan 1 1970 efi drwxr-xr-x 5 root root 4.0K aug 30 16:38 grub lrwxrwxrwx 1 root root 27 aug 30 13:38 initrd...
明明看起来还有不少剩余空间,但升级就是提示需要额外152MB,有没有大佬能帮忙解决这个问题呀?
备注:内容来源于stack exchange,提问作者deemon
相关产品推荐
相关产品推荐

