Xubuntu 18.04 更新错误

Xubuntu 18.04 更新错误

升级时出现奇怪的更新错误,其他所有更新设置正常,只有这两个: grub-efi-amd64-signed/bionic-updates 1.93.2+2.02-2ubuntu8.1 amd64 [upgradable from: 1.93.1+2.02-2ubuntu8.1] unattended-upgrades/bionic-updates,bionic-updates 1.1ubuntu1.18.04.1 all [upgradable from: 1.1ubuntu1]

给我这个错误:

File descriptor 4 (/dev/sda1) leaked on vgs invocation. Parent PID 9320: grub-install
File descriptor 4 (/dev/sda1) leaked on vgs invocation. Parent PID 9320: grub-install
grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=y' in file `/etc/default/grub'.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (237-3ubuntu10) ...
Setting up unattended-upgrades (1.1ubuntu1.18.04.1) ...
Replacing config file /etc/apt/apt.conf.d/20auto-upgrades with new version
Processing triggers for man-db (2.8.3-2) ...
dpkg: dependency problems prevent configuration of shim-signed:
 shim-signed depends on grub-efi-amd64-signed; however:
  Package grub-efi-amd64-signed is not configured yet.

dpkg: error processing package shim-signed (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 grub-efi-amd64-signed
 shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

好的,出现此错误是因为 grub 试图对未加密的文件进行更改。

要解决此问题,您必须GRUB_ENABLE_CRYPTODISK=y 在文件中添加以下行:/etc/default/grub

此后,一切都将按应有的方式更新。

不知道为什么从一开始就出现这个错误。

[已编辑]

如果您像我一样修复此错误,它将破坏您的 GRUB 加载程序,并且您将不得不恢复它。

相关内容