Errors when updating - grub-efi-amd64-signed & shim-signed

What is my problem besides being an idiot?

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
mike@mike-desktop:~$ sudo apt-get install update-manager-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
update-manager-core is already the newest version (1:18.04.11.13).
The following packages were automatically installed and are no longer required:
libllvm7 libllvm8
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 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 grub-efi-amd64-signed (1.93.16+2.02-2ubuntu8.15) ...
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 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)

what's the output of ... lsblk -f

Please check this issue from StackOverflow:

I'd recommend commenting on this bug and marking that it effects you.

For brevity:

sudo apt-get purge grub\*
sudo apt-get install grub-efi
sudo apt-get autoremove
sudo update-grub

1 Like

NAME FSTYPE LABEL UUID MOUNTPOINT
loop0 squashfs /snap/ubuntu-
loop1 squashfs /snap/core/90
loop2 squashfs /snap/core/92
loop3 squashfs /snap/softwar
loop4 squashfs /snap/softwar
loop5 squashfs /snap/pulsemi
loop6 squashfs /snap/ubuntu-
loop7 squashfs /snap/pulsemi
loop8 squashfs /snap/core18/
loop9 squashfs /snap/core18/
sda
├─sda1 ext4 b92db1e4-5473-4bcc-bbcd-b4f936203d2b
├─sda2
├─sda5 swap 3df66e5a-6b40-4095-a937-28a96998f753 [SWAP]
├─sda6 ext4 a55f4d17-6f9b-4bc9-989c-dc73528fc0c9 /
└─sda7 ext4 aac73031-a8e0-4d8b-90a1-ec50548185c3 /home
sdb
├─sdb1 ext4 7b70a583-70b0-4004-8fbf-c36043c940e8
├─sdb2
└─sdb5 swap 710ef26d-4c6c-4cd9-9ddf-bc9cda382f5c [SWAP]
sdc
└─sdc1 ext4 My Files 2e90f703-d138-4165-bd40-3acb6ddd56d9
sdd promise_fastt
├─sdd1 ext4 4e3df694-1521-479b-961a-e8a1e403409b
├─sdd2 promise_fastt
└─sdd5 swap bf8a708e-9e96-4dc8-84f4-8fcb171bfdb5
sr0

Was going to post the output of this, but it says new users can only insert 2 links per post.

mike@mike-desktop:~$ sudo apt-get purge grub*
[sudo] password for mike:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'grub-legacy' for glob 'grub*'
Note, selecting 'grub-doc' for glob 'grub*'
Note, selecting 'grub-ipxe' for glob 'grub*'
Note, selecting 'grub-efi' for glob 'grub*'
Note, selecting 'grub-emu' for glob 'grub*'
Note, selecting 'grub-coreboot' for glob 'grub*'
Note, selecting 'grub-linuxbios' for glob 'grub*'
Note, selecting 'grub-common' for glob 'grub*'
Note, selecting 'grub-invaders' for glob 'grub*'
Note, selecting 'grub-coreboot-bin' for glob 'grub*'
Note, selecting 'grub-ieee1275-bin' for glob 'grub*'
Note, selecting 'grub-coreboot-dbg' for glob 'grub*'
Note, selecting 'grub-xen-bin' for glob 'grub*'
Note, selecting 'grub-ieee1275-dbg' for glob 'grub*'
Note, selecting 'grub-xen-dbg' for glob 'grub*'
Note, selecting 'grub2-common' for glob 'grub*'
Note, selecting 'grub-legacy-doc' for glob 'grub*'
Note, selecting 'grub-legacy-ec2' for glob 'grub*'
Note, selecting 'grub-splashimages' for glob 'grub*'
Note, selecting 'grub-yeeloong' for glob 'grub*'
Note, selecting 'grub-pc' for glob 'grub*'
Note, selecting 'grub-theme-breeze' for glob 'grub*'
Note, selecting 'grub-imageboot' for glob 'grub*'
Note, selecting 'grub-xen' for glob 'grub*'
Note, selecting 'grub-pc-bin' for glob 'grub*'
Note, selecting 'grub-pc-dbg' for glob 'grub*'
Note, selecting 'grub-efi-amd64-bin' for glob 'grub*'
Note, selecting 'grub-gfxpayload-lists' for glob 'grub*'
Note, selecting 'grub-efi-amd64-dbg' for glob 'grub*'
Note, selecting 'grub2-themes-ubuntu-mate' for glob 'grub*'
Note, selecting 'grub-rescue-pc' for glob 'grub*'
Note, selecting 'grub-ieee1275' for glob 'grub*'
Note, selecting 'grub' for glob 'grub*'
Note, selecting 'grub2' for glob 'grub*'
Note, selecting 'grub-efi-amd64' for glob 'grub*'
Note, selecting 'grub-efi-ia32' for glob 'grub*'
Note, selecting 'grub-efi-ia64' for glob 'grub*'
Note, selecting 'grub-efi-amd64-signed' for glob 'grub*'
Note, selecting 'grub-efi-ia32-bin' for glob 'grub*'
Note, selecting 'grub2-splashimages' for glob 'grub*'
Note, selecting 'grub-efi-ia32-dbg' for glob 'grub*'
Note, selecting 'grub-emu-dbg' for glob 'grub*'
Note, selecting 'grub-xen-host' for glob 'grub*'
Note, selecting 'grub-theme-starfield' for glob 'grub*'
Note, selecting 'grub-firmware-qemu' for glob 'grub*'
Package 'grub-efi-ia64' is not installed, so not removed
Package 'grub-yeeloong' is not installed, so not removed
Package 'grub' is not installed, so not removed
Package 'grub-legacy' is not installed, so not removed
Package 'grub-legacy-doc' is not installed, so not removed
Package 'grub-doc' is not installed, so not removed
Package 'grub-gfxpayload-lists' is not installed, so not removed
Package 'grub-legacy-ec2' is not installed, so not removed
Package 'grub-imageboot' is not installed, so not removed
Package 'grub-invaders' is not installed, so not removed
Package 'grub-splashimages' is not installed, so not removed
Package 'grub-theme-breeze' is not installed, so not removed
Package 'grub2-splashimages' is not installed, so not removed
Package 'grub2-themes-ubuntu-mate' is not installed, so not removed
Package 'grub-efi' is not installed, so not removed
Package 'grub-efi-amd64-dbg' is not installed, so not removed
Package 'grub-efi-ia32' is not installed, so not removed
Package 'grub-efi-ia32-bin' is not installed, so not removed
Package 'grub-efi-ia32-dbg' is not installed, so not removed
Package 'grub-ieee1275' is not installed, so not removed
Package 'grub-ieee1275-bin' is not installed, so not removed
Package 'grub-ieee1275-dbg' is not installed, so not removed
Package 'grub-ipxe' is not installed, so not removed
Package 'grub-pc' is not installed, so not removed
Package 'grub-pc-bin' is not installed, so not removed
Package 'grub-pc-dbg' is not installed, so not removed
Package 'grub-xen' is not installed, so not removed
Package 'grub-xen-bin' is not installed, so not removed
Package 'grub-xen-dbg' is not installed, so not removed
Package 'grub-coreboot' is not installed, so not removed
Package 'grub-coreboot-bin' is not installed, so not removed
Package 'grub-coreboot-dbg' is not installed, so not removed
Package 'grub-emu' is not installed, so not removed
Package 'grub-emu-dbg' is not installed, so not removed
Package 'grub-firmware-qemu' is not installed, so not removed
Package 'grub-linuxbios' is not installed, so not removed
Package 'grub-rescue-pc' is not installed, so not removed
Package 'grub-theme-starfield' is not installed, so not removed
Package 'grub-xen-host' is not installed, so not removed
Package 'grub2' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libllvm7 libllvm8 shim
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
grub-common* grub-efi-amd64* grub-efi-amd64-bin* grub-efi-amd64-signed* grub2-common*
os-prober* shim-signed* ubiquity* ubiquity-frontend-gtk*
0 upgraded, 0 newly installed, 9 to remove and 3 not upgraded.
2 not fully installed or removed.
After this operation, 39.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 242485 files and directories currently installed.)
Removing shim-signed (1.37~18.04.3+15+1533136590.3beb971-0ubuntu1) ...
Removing grub-efi-amd64-signed (1.93.16+2.02-2ubuntu8.15) ...
Removing grub-efi-amd64 (2.02-2ubuntu8.15) ...
Removing grub2-common (2.02-2ubuntu8.15) ...
Removing grub-efi-amd64-bin (2.02-2ubuntu8.15) ...
Removing ubiquity (18.04.14.14) ...
Removing ubiquity-frontend-gtk (18.04.14.14) ...
Removing os-prober (1.74ubuntu1) ...
Removing grub-common (2.02-2ubuntu8.15) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Processing triggers for menu (2.1.47ubuntu2.1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
(Reading database ... 241398 files and directories currently installed.)
Purging configuration files for grub-efi-amd64 (2.02-2ubuntu8.15) ...
Purging configuration files for shim-signed (1.37~18.04.3+15+1533136590.3beb971-0ubuntu1) ...
Purging configuration files for grub-common (2.02-2ubuntu8.15) ...
Purging configuration files for ubiquity (18.04.14.14) ...
Purging configuration files for ubiquity-frontend-gtk (18.04.14.14) ...
Processing triggers for menu (2.1.47ubuntu2.1) ...
Processing triggers for systemd (237-3ubuntu10.41) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
mike@mike-desktop:~$ sudo apt-get install grub-efi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libllvm7 libllvm8 shim
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
grub-common grub-efi-amd64 grub-efi-amd64-bin grub2-common os-prober
Suggested packages:
multiboot-doc grub-emu xorriso desktop-base
The following NEW packages will be installed:
grub-common grub-efi grub-efi-amd64 grub-efi-amd64-bin grub2-common os-prober
0 upgraded, 6 newly installed, 0 to remove and 3 not upgraded.
Need to get 3,031 kB of archives.
After this operation, 16.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-common amd64 2.02-2ubuntu8.15 [1,775 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub2-common amd64 2.02-2ubuntu8.15 [532 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 os-prober amd64 1.74ubuntu1 [19.8 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-efi-amd64-bin amd64 2.02-2ubuntu8.15 [655 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-efi-amd64 amd64 2.02-2ubuntu8.15 [47.8 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-efi amd64 2.02-2ubuntu8.15 [2,584 B]
Fetched 3,031 kB in 1s (2,816 kB/s)
Preconfiguring packages ...
Selecting previously unselected package grub-common.
(Reading database ... 241382 files and directories currently installed.)
Preparing to unpack .../0-grub-common_2.02-2ubuntu8.15_amd64.deb ...
Unpacking grub-common (2.02-2ubuntu8.15) ...
Selecting previously unselected package grub2-common.
Preparing to unpack .../1-grub2-common_2.02-2ubuntu8.15_amd64.deb ...
Unpacking grub2-common (2.02-2ubuntu8.15) ...
Selecting previously unselected package os-prober.
Preparing to unpack .../2-os-prober_1.74ubuntu1_amd64.deb ...
Unpacking os-prober (1.74ubuntu1) ...
Selecting previously unselected package grub-efi-amd64-bin.
Preparing to unpack .../3-grub-efi-amd64-bin_2.02-2ubuntu8.15_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.02-2ubuntu8.15) ...
Selecting previously unselected package grub-efi-amd64.
Preparing to unpack .../4-grub-efi-amd64_2.02-2ubuntu8.15_amd64.deb ...
Unpacking grub-efi-amd64 (2.02-2ubuntu8.15) ...
Selecting previously unselected package grub-efi.
Preparing to unpack .../5-grub-efi_2.02-2ubuntu8.15_amd64.deb ...
Unpacking grub-efi (2.02-2ubuntu8.15) ...
Setting up grub-common (2.02-2ubuntu8.15) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up grub-efi-amd64-bin (2.02-2ubuntu8.15) ...
Setting up grub2-common (2.02-2ubuntu8.15) ...
Setting up os-prober (1.74ubuntu1) ...
Setting up grub-efi-amd64 (2.02-2ubuntu8.15) ...

Creating config file /etc/default/grub with new version
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
Failed: grub-install --target=x86_64-efi
WARNING: Bootloader is not properly installed, system may not be bootable
Setting up grub-efi (2.02-2ubuntu8.15) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Processing triggers for systemd (237-3ubuntu10.41) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
mike@mike-desktop:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libllvm7 libllvm8 shim
0 upgraded, 0 newly installed, 3 to remove and 3 not upgraded.
After this operation, 132 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 241806 files and directories currently installed.)
Removing libllvm7:amd64 (1:7-3~ubuntu0.18.04.1) ...
Removing libllvm8:amd64 (1:8-3~ubuntu18.04.2) ...
Removing shim (15+1533136590.3beb971-0ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
mike@mike-desktop:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-106-generic
Found initrd image: /boot/initrd.img-4.15.0-106-generic
Found linux image: /boot/vmlinuz-4.15.0-101-generic
Found initrd image: /boot/initrd.img-4.15.0-101-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
ERROR: pdc: wrong # of devices in RAID set "pdc_bihhgehgb" [1/2] on /dev/sdd
ERROR: pdc: wrong # of devices in RAID set "pdc_bihhgehgb" [1/2] on /dev/sdd
Found Ultimate Edition 4.2 (4.2) on /dev/sda1
Found Ubuntu 12.04.3 LTS (12.04) on /dev/sdb1
Found Ubuntu 12.04.2 LTS (12.04) on /dev/sdd1
done

Gentlemen, thank you for the help. At this point not sure what to make of this.

First off, are you able to run updates.

sudo apt update && sudo apt upgrade

I don't see a /boot/efi partition listed in your lsblk -f output. Were you running Legacy/BIOS boot on this system?

Can you run this command and give us the output:

ls /sys/firmware/efi

Can you give us some more details on what is on the drives listed.

Bios is UEFI. Sofware updater will normally give some type of error that not all updates could be installed. When notified Mate 20.04 LTS was available, it stated only a partial upgrade could be performed. sda1 has Ultimate Edition 4.2 installed first then at a later date Mate 18.04 was installed. I can boot into either one.

sdb1 has Ubuntu 12.04.3 LTS and is used to store copies of photos, folders and documents.

sdc1 no operating system, just copies of photos, documents and music.

sdd1 Ubuntu unsure of version, have not booted it for quite some time. Disconnected it once to remove it and when I booted into my current OS I had to manually enable networking to access the internet. Sounds like a mess doesn't it?

mike@mike-desktop:~$ ls /sys/firmware/efi
ls: cannot access '/sys/firmware/efi': No such file or directory

mike@mike-desktop:~$ sudo apt update && sudo apt upgrade
[sudo] password for mike:
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:3 http://archive.canonical.com/ubuntu bionic InRelease
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Ign:6 http://repo.vivaldi.com/stable/deb stable InRelease
Get:7 http://repo.vivaldi.com/stable/deb stable Release [3,831 B]
Get:8 http://repo.vivaldi.com/stable/deb stable Release.gpg [833 B]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [970 kB]
Get:10 http://repo.vivaldi.com/stable/deb stable/main i386 Packages [1,196 B]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [694 kB]
Get:12 http://repo.vivaldi.com/stable/deb stable/main amd64 Packages [1,199 B]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [329 kB]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [46.1 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [294 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,022 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [49.2 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,085 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [337 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [279 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [213 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7,972 B]
Fetched 5,585 kB in 2s (2,330 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
xserver-common xserver-xorg-core xserver-xorg-legacy
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,411 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 241785 files and directories currently installed.)
Preparing to unpack .../xserver-common_2%3a1.19.6-1ubuntu4.4_all.deb ...
Unpacking xserver-common (2:1.19.6-1ubuntu4.4) over (2:1.19.6-1ubuntu4.3) ...
Preparing to unpack .../xserver-xorg-legacy_2%3a1.19.6-1ubuntu4.4_amd64.deb ...
Unpacking xserver-xorg-legacy (2:1.19.6-1ubuntu4.4) over (2:1.19.6-1ubuntu4.3) ...
Preparing to unpack .../xserver-xorg-core_2%3a1.19.6-1ubuntu4.4_amd64.deb ...
Unpacking xserver-xorg-core (2:1.19.6-1ubuntu4.4) over (2:1.19.6-1ubuntu4.3) ...
Setting up xserver-common (2:1.19.6-1ubuntu4.4) ...
Setting up xserver-xorg-core (2:1.19.6-1ubuntu4.4) ...
Setting up xserver-xorg-legacy (2:1.19.6-1ubuntu4.4) ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

Your bios may say uefi but sda does not have the proper partitions. Probably, ultimate edition and mate 18.04 were installed as legacy. There is no reason to install efi packages.

A basic EFI layout looks like:
sda1, vfat, about 500M, mounted at /boot/efi and
sda2, ext4, rest of disk, mounted at / for linux

NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat AF36-E526 /boot/efi
└─sda2 ext4 778636d8-22cc-476f-b801-ff9f5ac9ef5d /

1 Like

Have you rebooted the system since running the commands in from post #3? If you have done so successfully then feel free to skip this next step.

If not, before reboot please check /boot/grub/grub.cfg and make sure everything is lining up correct with UUID and installed OSes.

Somehow there seems to have been an issue with the system trying to install the grub-efi package on a legacy boot system. You did mention a partial upgrade issue with an upgrade to 20.04, which may have been a culprit.

Have not rebooted yet,since inputting the commands, been a little afraid to. This doesn't look good, I know .There was the notification that updates were available. When I clicked on it then I was informed that due to an error or possible failed update from before that it could only do a partial upgrade. I proceeded with that and my browsers were updated. I did reboot after that. I'm just perplexed as to why it would not upgrade to 20.04 and usually says there was an error when applying any updates.

mike@mike-desktop:~$ /boot/grub/grub.cfg
bash: /boot/grub/grub.cfg: Permission denied

Hi wmreed, try this:
Go to Software Boutique > Fixes > Configure interrupted packages > Resolve broken packages > Upgrade installed packages.
Reboot.

You will need to use something like nano, pluma, or cat to view that file.

ie: pluma /boot/grub/grub.cfg

Can you also provide outputs to these:
uname -a
cat /etc/os-release

Will give this a shot when I'm ready to do a reboot.