Errors encountered while processing "grub-efi-amd64-signed" and "shim-signed"
Yesterday, after executed command "apt dist-upgrade", I got error
'
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.
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-
Installing for arm64-efi platform.
grub-install: error: efibootmgr: not found.
dpkg: error processing package grub-efi-
installed grub-efi-
dpkg: dependency problems prevent processing triggers for shim-signed:
shim-signed depends on grub-efi-
Package grub-efi-
Package grub-efi-
dpkg: error processing package shim-signed (--configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
grub-efi-
shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
'''
I found out some upgraded packages may leading to this issue:
grub-efi-
grub-efi-
grub-efi-
grub-efi-
Currenty, I cannot install any packages, got the same error above.
This issue only happen with Ubuntu 18.04.6 aarch64.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu grub2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Execute the command
sudo apt install efibootmgr -f
and tell us the result.
Revision history for this message
|
#2 |
it's works, but can you share me why install this package can solve my issue?
root@ip-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libefiboot1
The following NEW packages will be installed:
efibootmgr libefiboot1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 47.8 kB of archives.
After this operation, 151 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Get:2 http://
Fetched 47.8 kB in 1s (32.8 kB/s)
Selecting previously unselected package libefiboot1:arm64.
(Reading database ... 91274 files and directories currently installed.)
Preparing to unpack .../libefiboot1
Unpacking libefiboot1:arm64 (34-1) ...
Selecting previously unselected package efibootmgr.
Preparing to unpack .../efibootmgr_
Unpacking efibootmgr (15-1) ...
Setting up grub-efi-
Installing for arm64-efi platform.
Installation finished. No error reported.
Setting up libefiboot1:arm64 (34-1) ...
Setting up efibootmgr (15-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for shim-signed (1.37~18.
W: APT had planned for dpkg to do more than it reported back (10 vs 14).
Affected packages: grub-efi-
Revision history for this message
|
#3 |
This looks good.
For diagnostic purposes please provide the output that you receive for the commands:
uname -a
lsb_release -crid
sudo dpkg --audit
sudo apt update
sudo apt full-upgrade
Revision history for this message
|
#4 |
Yes, please see
lsb_release -crid:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
uname -a:
Linux ip-16-179-159-129 5.4.0-1084-aws #91~18.04.1-Ubuntu SMP Sun Aug 14 01:27:17 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
dpkg --audit: empty
apt update && apt upgrade -y
Hit:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Fetched 21.6 MB in 8s (2819 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
60 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 NEW packages will be installed:
linux-
linux-
The following packages will be upgraded:
bind9-host cloud-init curl dbus dbus-user-session dnsutils git git-man grub-efi-arm64
grub-
libbind9-160 libcurl3-gnutls libcurl4 libdbus-1-3 libdns-export1100 libdns1100 libgmp10
libgssapi3-
libhx509-
libkrb5-
libroken18-
linux-headers-aws linux-image-aws perl perl-base perl-modules-5.26 snapd sosreport systemd
systemd-sysv tzdata ubuntu-
60 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
52 standard security updates
Need to get 101 MB of archives.
After this operation, 192 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Fetched 101 MB in 22s (4475 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 60337 files and directories currently installed.)
Preparing to unpack .../libperl5.
Unpacking libperl5.26:arm64 (5.26.1-6ubuntu0.6) over (5.26.1-6ubuntu0.5) ...
Preparing to unpack .../perl_
Unpacking perl (5.26.1-6ubuntu0.6) over (5.26.1-6ubuntu0.5) ...
Preparing to unpack .../perl-
Unpacking perl-base (5.26.1-6ubuntu0.6) over (5.26.1-6ubuntu0.5) ...
Setting up perl-base (5.26.1-6ubuntu0.6) ...
(Reading database ... 60337 files and directories currently installed.)
Preparing to unpack .../perl-
Unpacking perl-modules-5.26 (5.26.1-6ubuntu0.6) over (5.26.1-6ubuntu0.5) ...
Preparing to unpack .../libnss-
Unpacking libnss-
Preparing to unpack .../libsystemd0
Unpacking libsystemd0:arm64 (237-3ubuntu10.56) over (237-3ubuntu10.53) ...
Setting up libsystemd0:arm64 (237-3ubuntu10.56) ...
(Reading database ... 60337 files and directories currently installed.)
Preparing to unpack .../snapd_
Unpacking snapd (2.57.5+18.04) over (2.55.5+18.04) ...
Preparing to unpack .../libpam-
Unpacking libpam-
Preparing to unpack .../systemd_
Unpacking systemd (237-3ubuntu10.56) over (237-3ubuntu10.53) ...
Preparing to unpack .../udev_
Unpacking udev (237-3ubuntu10.56) over (237-3ubuntu10.53) ...
Preparing to unpack .../libudev1_
Unpacking libudev1:arm64 (237-3ubuntu10.56) over (237-3ubuntu10.53) ...
Setting up libudev1:arm64 (237-3ubuntu10.56) ...
(Reading database ... 60343 files and directories currently installed.)
Preparing to unpack .../dbus_
Unpacking dbus (1.12.2-1ubuntu1.4) over (1.12.2-1ubuntu1.3) ...
Preparing to unpack .../libdbus-
Unpacking libdbus-1-3:arm64 (1.12.2-1ubuntu1.4) over (1.12.2-1ubuntu1.3) ...
Setting up systemd (237-3ubuntu10.56) ...
(Reading database ... 60343 files and directories currently installed.)
Preparing to unpack .../systemd-
Unpacking systemd-sysv (237-3ubuntu10.56) over (237-3ubuntu10.53) ...
Preparing to unpack .../dbus-
Unpacking dbus-user-session (1.12.2-1ubuntu1.4) over (1.12.2-1ubuntu1.3) ...
Preparing to unpack .../libgmp10_
Unpacking libgmp10:arm64 (2:6.1.
Setting up libgmp10:arm64 (2:6.1.
(Reading database ... 60343 files and directories currently installed.)
Preparing to unpack .../00-
Unpacking libisc-
Preparing to unpack .../01-
Unpacking libdns-export1100 (1:9.11.
Preparing to unpack .../02-
Unpacking isc-dhcp-client (4.3.5-3ubuntu7.4) over (4.3.5-3ubuntu7.3) ...
Preparing to unpack .../03-
Unpacking isc-dhcp-common (4.3.5-3ubuntu7.4) over (4.3.5-3ubuntu7.3) ...
Preparing to unpack .../04-
Unpacking libsqlite3-0:arm64 (3.22.0-1ubuntu0.6) over (3.22.0-1ubuntu0.5) ...
Preparing to unpack .../05-
Unpacking tzdata (2022e-
Preparing to unpack .../06-
Unpacking ubuntu-
Preparing to unpack .../07-
Unpacking vim (2:8.0.
Preparing to unpack .../08-
Unpacking vim-tiny (2:8.0.
Preparing to unpack .../09-
Unpacking vim-runtime (2:8.0.
Preparing to unpack .../10-
Unpacking xxd (2:8.0.
Preparing to unpack .../11-
Unpacking vim-common (2:8.0.
Preparing to unpack .../12-
Unpacking libirs160:arm64 (1:9.11.
Preparing to unpack .../13-
Unpacking bind9-host (1:9.11.
Preparing to unpack .../14-
Unpacking dnsutils (1:9.11.
Preparing to unpack .../15-
Unpacking libbind9-160:arm64 (1:9.11.
Preparing to unpack .../16-
Unpacking libisccfg160:arm64 (1:9.11.
Preparing to unpack .../17-
Unpacking libisccc160:arm64 (1:9.11.
Preparing to unpack .../18-
Unpacking libdns1100:arm64 (1:9.11.
Preparing to unpack .../19-
Unpacking libisc169:arm64 (1:9.11.
Preparing to unpack .../20-
Unpacking liblwres160:arm64 (1:9.11.
Preparing to unpack .../21-
Unpacking curl (7.58.0-
Preparing to unpack .../22-
Unpacking libcurl4:arm64 (7.58.0-
Preparing to unpack .../23-
Unpacking git-man (1:2.17.
Preparing to unpack .../24-
Unpacking libcurl3-
Preparing to unpack .../25-
Unpacking git (1:2.17.
Preparing to unpack .../26-
Unpacking grub-efi-
Preparing to unpack .../27-
Unpacking grub-efi-arm64 (2.04-1ubuntu47.4) over (2.04-1ubuntu44
Preparing to unpack .../28-
Unpacking grub-efi-arm64-bin (2.04-1ubuntu47.4) over (2.04-1ubuntu44
Preparing to unpack .../29-
Unpacking libroken18-
Preparing to unpack .../30-
Unpacking libasn1-
Preparing to unpack .../31-
Unpacking libheimbase1-
Preparing to unpack .../32-
Unpacking libhcrypto4-
Preparing to unpack .../33-
Unpacking libwind0-
Preparing to unpack .../34-
Unpacking libhx509-
Preparing to unpack .../35-
Unpacking libkrb5-
Preparing to unpack .../36-
Unpacking libheimntlm0-
Preparing to unpack .../37-
Unpacking libgssapi3-
Preparing to unpack .../38-
Unpacking libksba8:arm64 (1.3.5-
Selecting previously unselected package linux-modules-
Preparing to unpack .../39-
Unpacking linux-modules-
Selecting previously unselected package linux-image-
Preparing to unpack .../40-
Unpacking linux-image-
Preparing to unpack .../41-
Unpacking linux-aws (5.4.0.1088.67) over (5.4.0.1084.64) ...
Preparing to unpack .../42-
Unpacking linux-image-aws (5.4.0.1088.67) over (5.4.0.1084.64) ...
Selecting previously unselected package linux-aws-
Preparing to unpack .../43-
Unpacking linux-aws-
Selecting previously unselected package linux-headers-
Preparing to unpack .../44-
Unpacking linux-headers-
Preparing to unpack .../45-
Unpacking linux-headers-aws (5.4.0.1088.67) over (5.4.0.1084.64) ...
Preparing to unpack .../46-
Unpacking sosreport (4.4-1ubuntu0.
Preparing to unpack .../47-
Unpacking cloud-init (22.3.4-
Setting up ubuntu-
Installing new version of config file /etc/ubuntu-
Installing new version of config file /etc/ubuntu-
Setting up libisc169:arm64 (1:9.11.
Setting up libnss-
Setting up git-man (1:2.17.
Setting up libisccc160:arm64 (1:9.11.
Setting up linux-aws-
Setting up xxd (2:8.0.
Setting up isc-dhcp-common (4.3.5-3ubuntu7.4) ...
Setting up libisc-
Setting up libcurl3-
Setting up tzdata (2022e-
Current default time zone: 'Etc/UTC'
Local time is now: Mon Oct 31 12:08:01 UTC 2022.
Universal Time is now: Mon Oct 31 12:08:01 UTC 2022.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Setting up systemd-sysv (237-3ubuntu10.56) ...
Setting up libcurl4:arm64 (7.58.0-
Setting up linux-headers-
Setting up libroken18-
Setting up libksba8:arm64 (1.3.5-
Setting up perl-modules-5.26 (5.26.1-6ubuntu0.6) ...
Setting up linux-headers-aws (5.4.0.1088.67) ...
Setting up grub-efi-arm64-bin (2.04-1ubuntu47.4) ...
Setting up libperl5.26:arm64 (5.26.1-6ubuntu0.6) ...
Setting up udev (237-3ubuntu10.56) ...
update-initramfs: deferring update (trigger activated)
Setting up sosreport (4.4-1ubuntu0.
Setting up libheimbase1-
Setting up libdns-export1100 (1:9.11.
Setting up grub-efi-arm64 (2.04-1ubuntu47.4) ...
Installing for arm64-efi platform.
grub-install: error: efibootmgr: not found.
Failed: grub-install --target=arm64-efi
WARNING: Bootloader is not properly installed, system may not be bootable
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Adding boot menu entry for EFI firmware configuration
done
Setting up vim-common (2:8.0.
Setting up libsqlite3-0:arm64 (3.22.0-1ubuntu0.6) ...
Setting up vim-runtime (2:8.0.
Setting up libdns1100:arm64 (1:9.11.
Setting up linux-modules-
Setting up linux-image-
I: /boot/vmlinuz is now a symlink to vmlinuz-
I: /boot/initrd.img is now a symlink to initrd.
Setting up liblwres160:arm64 (1:9.11.
Setting up libdbus-1-3:arm64 (1.12.2-1ubuntu1.4) ...
Setting up vim-tiny (2:8.0.
Setting up libwind0-
Setting up curl (7.58.0-
Setting up grub-efi-
Installing for arm64-efi platform.
grub-install: error: efibootmgr: not found.
dpkg: error processing package grub-efi-
installed grub-efi-
Setting up vim (2:8.0.
Setting up libasn1-
Setting up libhcrypto4-
Setting up libhx509-
Setting up isc-dhcp-client (4.3.5-3ubuntu7.4) ...
Setting up perl (5.26.1-6ubuntu0.6) ...
Setting up libisccfg160:arm64 (1:9.11.
Setting up linux-image-aws (5.4.0.1088.67) ...
Setting up libkrb5-
Setting up dbus (1.12.2-1ubuntu1.4) ...
A reboot is required to replace the running dbus-daemon.
Please reboot the system when convenient.
Setting up git (1:2.17.
Setting up libheimntlm0-
Setting up cloud-init (22.3.4-
Installing new version of config file /etc/cloud/
Setting up libpam-
Setting up libirs160:arm64 (1:9.11.
Setting up libbind9-160:arm64 (1:9.11.
Setting up dbus-user-session (1.12.2-1ubuntu1.4) ...
Setting up snapd (2.57.5+18.04) ...
Created symlink /etc/systemd/
snapd.failure.
snapd.snap-
Setting up linux-aws (5.4.0.1088.67) ...
Setting up libgssapi3-
Setting up bind9-host (1:9.11.
Setting up dnsutils (1:9.11.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for rsyslog (8.32.0-1ubuntu4.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
Processing triggers for initramfs-tools (0.130ubuntu3.13) ...
update-initramfs: Generating /boot/initrd.
Ignoring old or unknown version 5.4.0-1084-aws (latest is 5.4.0-1088-aws)
Processing triggers for linux-image-
/etc/kernel/
update-initramfs: Generating /boot/initrd.
flash-kernel: deferring update (trigger activated)
/etc/kernel/
flash-kernel: deferring update (trigger activated)
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Adding boot menu entry for EFI firmware configuration
done
Processing triggers for flash-kernel (3.98ubuntu11~
Unsupported platform on EFI system, doing nothing.
Errors were encountered while processing:
grub-efi-
E: Sub-process /usr/bin/dpkg returned an error code (1)
Revision history for this message
|
#5 |
That is very strange:
In your initial question you had
"grub-install: error: efibootmgr: not found."
My recommendadtion in comment #1 was
"sudo apt install efibootmgr -f"
which should care for installing the /bin/efibootmgr program.
Now you again get the error message
"grub-install: error: efibootmgr: not found."
I do not have an explanation for that.
Does the file /bin/efibootmgr exist?
If it doesn't, does is exist after executing
sudo apt install efibootmgr -f
?
Revision history for this message
|
#6 |
My bad, the above output of apt update and apt upgrade is before installed efibootmgr.
After installed, there is nothing to update.
Revision history for this message
|
#7 |
If you now run the command
sudo apt install --reinstall grub-efi-
what do you get?
Revision history for this message
|
#8 |
it's working
apt update && apt upgrade
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
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.
sudo apt install --reinstall grub-efi-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/460 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 91290 files and directories currently installed.)
Preparing to unpack .../grub-
Unpacking grub-efi-
Setting up grub-efi-
Installing for arm64-efi platform.
Installation finished. No error reported.
Revision history for this message
|
#9 |
All updates are installed and there is no error message again.
I suggest that you mark this question as "solved".
If there are further problems, then please open a new question document.
Can you help with this problem?
Provide an answer of your own, or ask Dung Tran for more information if necessary.