我的双启动笔记本电脑升级后,运行 Ubuntu 18.04.3 作为主操作系统,同时运行 Windows。每当我尝试安装或更新应用程序时,都会收到此错误:
Setting up grub-efi-amd64-signed (1.128+2.04-1ubuntu12) ...
dpkg: error processing package grub-efi-amd64-signed (--configure):
installed grub-efi-amd64-signed package post-installation script subprocess ret
urned error exit status 127
Errors were encountered while processing:
grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
现在这种情况在任何 apt 交互中都会发生,非常不方便。我已经尝试更新 grub,但没有任何解决方案。
这是我的 dpkg 和 fstab,希望它们能有帮助。
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================-====================-============-===============================================================
un grub <none> <none> (no description available)
un grub-cloud-amd64 <none> <none> (no description available)
ii grub-common 2.04-1ubuntu12 amd64 GRand Unified Bootloader (common files)
un grub-coreboot <none> <none> (no description available)
un grub-doc <none> <none> (no description available)
ii grub-efi 2.04-1ubuntu12 amd64 GRand Unified Bootloader, version 2 (dummy package)
ii grub-efi-amd64 2.04-1ubuntu12 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version)
ii grub-efi-amd64-bin 2.04-1ubuntu12 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 modules)
iF grub-efi-amd64-signed 1.128+2.04-1ubuntu12 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed)
un grub-efi-arm <none> <none> (no description available)
un grub-efi-arm64 <none> <none> (no description available)
un grub-efi-ia32 <none> <none> (no description available)
un grub-efi-ia64 <none> <none> (no description available)
un grub-emu <none> <none> (no description available)
un grub-ieee1275 <none> <none> (no description available)
un grub-legacy <none> <none> (no description available)
un grub-legacy-doc <none> <none> (no description available)
un grub-linuxbios <none> <none> (no description available)
un grub-pc <none> <none> (no description available)
un grub-uboot <none> <none> (no description available)
un grub-xen <none> <none> (no description available)
un grub-yeeloong <none> <none> (no description available)
un grub2 <none> <none> (no description available)
ii grub2-common 2.04-1ubuntu12 amd64 GRand Unified Bootloader (common files for version 2)
文件系统
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/nvme0n1p2 during installation
UUID=d5d23cc4-21a5-4c06-bf9a-9a74d76d315b /boot ext4 defaults 0 2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=93E0-B2F2 /boot/efi vfat umask=0077 0 1
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
答案1
根据此错误报告,您需要安装mokutil
来修复该问题。
看起来这个包缺少依赖项。
答案2
如果你已经安装了 shim-signed,请将其删除。
此软件包提供了一个极简的引导加载程序,允许根据安全启动 DB/DBX 或内置签名数据库验证其他 UEFI 二进制文件的签名。其目的是允许 UEFI CA 签署小型、不经常更改的二进制文件,同时允许操作系统分销商独立于 CA 修订其主引导加载程序。
此软件包包含由 Microsoft UEFI CA 签名的引导加载程序二进制文件的版本。
然后删除 grub-efi-amd64-signed。