我已将我的 ubuntu 服务器从 16.xx 更新到 18.xx,现在更新到 Ubuntu 20.04.1 LTS。
我努力了
sudo apt-get purge grub\*
sudo apt-get install grub-efi
sudo apt-get autoremove
sudo update-grub
但仍然出现错误。
我努力了
sudo apt-get -f install
但仍然出现错误。
root@xxx:~# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub-efi-amd64-signed (1.142.6+2.04-1ubuntu26.4) ...
dpkg: error processing package grub-efi-amd64-signed (--configure):
installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@xxx:~#
我不知道下一步该做什么,因为所有的谷歌搜索都给了我一些不起作用的解决方案。
答案1
今天的更新已解决问题:
grub-common/focal-updates 2.04-1ubuntu26.6 amd64 [upgradable from: 2.04-1ubuntu26.4]
grub-efi-amd64-bin/focal-updates 2.04-1ubuntu26.6 amd64 [upgradable from: 2.04-1ubuntu26.4]
grub-efi-amd64-signed/focal-updates 1.142.8+2.04-1ubuntu26.6 amd64 [upgradable from: 1.142.6+2.04-1ubuntu26.4]
grub-efi-amd64/focal-updates 2.04-1ubuntu26.6 amd64 [upgradable from: 2.04-1ubuntu26.4]
grub-efi/focal-updates 2.04-1ubuntu26.6 amd64 [upgradable from: 2.04-1ubuntu26.4]
grub2-common/focal-updates 2.04-1ubuntu26.6 amd64 [upgradable from: 2.04-1ubuntu26.4]