Ubuntu eoan 在 ZFS 根分区上使用 grub-probe 失败

Ubuntu eoan 在 ZFS 根分区上使用 grub-probe 失败

我是新用户。我很久没安装 Ubuntu 了,用 ZFS 作为根分区来试试。通过 apt 安装软件时遇到了一些问题:

user@T440S:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.3.0-42 linux-headers-5.3.0-42-generic linux-image-5.3.0-42-generic linux-modules-5.3.0-42-generic
  linux-modules-extra-5.3.0-42-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/8,664 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up linux-image-5.3.0-53-generic (5.3.0-53.47) ...
Processing triggers for linux-image-5.3.0-53-generic (5.3.0-53.47) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.3.0-53-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.0-53-generic
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=8d9373be-c8cb-4b3d-a6b2-4eb3efc268a5)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-probe: error: failed to get canonical path of `rpool/ROOT/ubuntu_qojhyv'.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.3.0-53-generic (--configure):
 installed linux-image-5.3.0-53-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-5.3.0-53-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

user@T440S:/dev$ sudo grub-probe /
grub-probe: error: failed to get canonical path of `rpool/ROOT/ubuntu_qojhyv'.

我一直无法弄清楚为什么它无法探测根池位置。 AskUbuntu 上有一些类似的问题,但没有一个与此问题完全相同。例如:

该用户有类似的问题,似乎与加密或快照更相关

这个比较接近,但环境变量没有修复,并且由于 rpool 格式没有显示任何位置,因此在符号链接建议方面遇到了困难

ubuntu 中存在更多类似的启动板问题,但不确定如何解决:

这似乎是一个很好的匹配...但据说很久以前就修复了

这似乎也是一场不错的比赛...链接到另一个问题

据称这是一个修复,但不确定如何应用它。没有行尝试使用 grub_probe

我现在还不太清楚如何解决这个问题。

有任何想法吗?

相关内容