Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion

grub-install: error: cannot find EFI directory; dpkg: error processing package shim-signed
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

grub-install: error: cannot find EFI directory; dpkg: error processing package shim-signed

postcdpostcd Member
edited June 2021 in Help

Hi, i am getting weird grub/EFI issue on a KVM VPS with Ubuntu 18.04.5 LTS:

root@ubuntu:~# apt update && apt install tor
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
...
0 upgraded, 0 newly installed, 0 to remove and 55 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.167~18.04.5+2.04-1ubuntu44.1.2) ...
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent processing triggers for 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 triggers unprocessed
Errors were encountered while processing:
 grub-efi-amd64-signed
 shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

these seems to be installed grub* related packages:
grub-common
grub-efi-amd64
grub-efi-amd64-bin
grub-efi-amd64-signed
grub-legacy-ec2
grub2-common
os-prober
shim-signed

what do you suggest to try to fix this please?

I have tried "apt-get remove grub-efi-amd64-signed" and it also removed shim-signed
and update is now without error.

Comments

Sign In or Register to comment.