升级到 Ubuntu 22.04 LTS 时出错

升级到 Ubuntu 22.04 LTS 时出错

当我从 21.10 升级到 22.04 LTS 时,出现了以下最终错误:

root@reaper /opt # apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up grub-efi-amd64-signed (1.180+2.06-2ubuntu7) ...
mount: /var/lib/grub/esp: special device /dev/sda15 does not exist.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
dpkg: dependency problems prevent processing triggers for shim-signed:
 shim-signed depends on grub-efi-amd64-signed | grub-efi-arm64-signed; however:
  Package grub-efi-amd64-signed is not configured yet.
  Package grub-efi-arm64-signed is not installed.

dpkg: error processing package shim-signed (--configure):
 dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
 grub-efi-amd64-signed
 shim-signed
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

如果有人能给我指明正确的方向,我将非常感激,因为它现在困扰着我。

谢谢,萨尔沃

答案1

我设法通过运行来解决它:apt remove shim-signed grub-efi-amd64-bin --allow-remove-essential

服务器上没有 EFI 系统,经fdisk -l

相关内容