Here is the end of the log from grub-install grub-install: info: Registering with EFI: distributor = `debian', path = `\EFI\debian\shimx64.efi', ESP at mduuid/a6fcec628151c509d2bd0ab56b8e5c15. grub-install: info: executing modprobe efivars 2>/dev/null. grub-install: warning: efivarfs_get_variable: open(/sys/firmware/efi/efivars/blk0-47c7b225-c42a-11d2-8e57-00a0c969723b): No such file or directory. grub-install: warning: efi_get_variable: ops->get_variable failed: No such file or directory. grub-install: warning: efi_va_generate_file_device_path_from_esp: could not open device for ESP: Bad address. grub-install: warning: efi_generate_file_device_path_from_esp: could not generate File DP from ESP: Bad address. grub-install: error: failed to register the EFI boot entry: Bad address.
And here the log from apt root@thistle:~# apt full-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 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 shim-signed-common (1.33+15+1533136590.3beb971-7) ... Installing for x86_64-efi platform. grub-install: warning: efivarfs_get_variable: open(/sys/firmware/efi/efivars/blk0-47c7b225-c42a-11d2-8e57-00a0c969723b): No such file or directory. grub-install: warning: efi_get_variable: ops->get_variable failed: No such file or directory. grub-install: warning: efi_va_generate_file_device_path_from_esp: could not open device for ESP: Bad address. grub-install: warning: efi_generate_file_device_path_from_esp: could not generate File DP from ESP: Bad address. grub-install: error: failed to register the EFI boot entry: Bad address. dpkg: error processing package shim-signed-common (--configure): installed shim-signed-common package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of shim-signed:amd64: shim-signed:amd64 depends on shim-signed-common (= 1.33+15+1533136590.3beb971-7); however: Package shim-signed-common is not configured yet. dpkg: error processing package shim-signed:amd64 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: shim-signed-common shim-signed:amd64 needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1)