package grub-efi-amd64-signed 1.182~22.04.1+2.06-2ubuntu10 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32

Bug #1995753 reported by David Perry
68
This bug affects 12 people
Affects Status Importance Assigned to Milestone
grub2-signed (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have no idea. I did the "update on reboot" and it did update although it took a very long time, over 10 min on a fast Ryzen 2700, and it kept saying "updating 9 min out of unlimited" for task whatever... I forgot what it said... the same type of message on shutdown that waits for something... those messages look like [2min out of 3] but during this "updating os while offline" or whatever message it said... had for example [2min out of unlimited] which to me means 2 min has elapsed, it's never going to kill the process (unlimited).

So, who knows what caused this.

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: grub-efi-amd64-signed 1.182~22.04.1+2.06-2ubuntu10
ProcVersionSignature: Ubuntu 5.15.0-52.58-generic 5.15.60
Uname: Linux 5.15.0-52-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Fri Nov 4 21:27:06 2022
DuplicateSignature:
 package:grub-efi-amd64-signed:1.182~22.04.1+2.06-2ubuntu10
 Setting up grub-efi-amd64-signed (1.182~22.04.1+2.06-2ubuntu10) ...
 mount: /var/lib/grub/esp: special device /dev/disk/by-id/ata-WD_Blue_SA510_2.5_1000GB_222029800137-part1 does not exist.
 dpkg: error processing package grub-efi-amd64-signed (--configure):
  installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
ErrorMessage: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
InstallationDate: Installed on 2019-10-24 (1107 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.8
SourcePackage: grub2-signed
Title: package grub-efi-amd64-signed 1.182~22.04.1+2.06-2ubuntu10 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
UpgradeStatus: Upgraded to jammy on 2022-08-29 (67 days ago)

Revision history for this message
David Perry (perrycs) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2-signed (Ubuntu):
status: New → Confirmed
Revision history for this message
Wataru Noguchi (wataru.noguchi.unicast) wrote :
Download full text (11.3 KiB)

I have same issue.
I have configured unattended-upgrades.
I have been started receive error mail from Fri, 28 Oct 2022.
some instances have same issue.
KVM/QEMU + Libvirt environment.

I launch instance using following cloud image.

https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img

launch server minimal configuration(without virtual cdrom drive).

```
[example.com:~ 2022-10-28 13:56:06]$ ssh example.com
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-131-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

  System information as of Fri Oct 28 13:56:11 JST 2022

  System load: 0.0 Processes: 180
  Usage of /: 22.2% of 19.20GB Users logged in: 0
  Memory usage: 28% IPv4 address for enp2s0: x.x.x.x
  Swap usage: 0% IPv4 address for enp3s0: y.y.y.y

 * Super-optimized for small spaces - read how we shrank the memory
   footprint of MicroK8s to make it the smallest full K8s around.

   https://ubuntu.com/blog/microk8s-memory-optimisation

3 updates can be applied immediately.
3 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

Last login: Fri Oct 14 16:39:06 2022 from 10.1.2.200
server:~$
```

```
server:~$ sudo less /var/log/unattended-upgrades/unattended-upgrades-dpkg.log

Unpacking grub-efi-amd64-signed (1.173.2~20.04.1+2.04-1ubuntu47.4) over (1.167.2+2.04-1ubuntu44.2) ...
Preparing to unpack .../grub-efi-amd64-bin_2.04-1ubuntu47.4_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.04-1ubuntu47.4) over (2.04-1ubuntu44.2) ...
Setting up grub-efi-amd64-bin (2.04-1ubuntu47.4) ...
Setting up grub-efi-amd64-signed (1.173.2~20.04.1+2.04-1ubuntu47.4) ...
Unknown device "/dev/disk/by-id/*": No such file or 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
Errors were encountered while processing:
 grub-efi-amd64-signed
Log ended: 2022-10-28 06:16:38
```

It indicates /dev/disk/by-id/ is missing.

```
[example.com:~ 2022-10-28 14:12:30]$ ssh example.com ls -l /dev/disk/
total 0
drwxr-xr-x 2 root root 80 Oct 20 03:44 by-label
drwxr-xr-x 2 root root 100 Oct 20 03:44 by-partuuid
drwxr-xr-x 2 root root 280 Oct 20 03:44 by-path
drwxr-xr-x 2 root root 120 Oct 20 03:44 by-uuid
server:~$ ls -l /dev/disk/by-id/
ls: cannot access '/dev/disk/by-id/': No such file or directory
server:~$
```

```
[example.com:~ 2022-11-08 00:42:33]$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
[example.com:~ 2022-11-08 00:42:46]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs tmpfs 1.6G 1.2M 1.6G 1% /run
/dev/vda1 ext4 993G 200G 793G 21% /
tmpfs tmpfs 7.9G 516K 7.9G 1% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 7.9G 0 7.9G 0% /sys/fs/...

tags: added: focal
Revision history for this message
Mike Burgener (aggbuke) wrote :

We face a similar issue on 1 of our server, the server is booted in uefi mode. The error is Trying to migrate /boot/efi into esp config
Unknown device "/dev/disk/by-id/*": No such file or directory

while ls /dev/disk/ output is:
by-label by-partuuid by-path by-uuid

tags: removed: need-duplicate-check
Revision history for this message
Sven (sven-koehler) wrote :

For me, the folder /dev/disk/by-id/ simply does not exist, if ubuntu is a virtualbox guest and the VM is configured to use the virtio-scsi controller only. It seems whatever udev scripts are creating the folder are failing.

Revision history for this message
Wataru Noguchi (wataru.noguchi.unicast) wrote :

In this case we identified due to recent package changes related to EFI.
at your own risk

sudo apt remove grub-efi-amd64-signed grub-efi-amd64-bin
sudo update-grub

Ubuntu upgrade error for grub-efi-amd64-signed : BinaryLane
https://support.binarylane.com.au/support/solutions/articles/11000095534-ubuntu-upgrade-error-for-grub-efi-amd64-signed

do not forget type 'Yes, do as I say!'.

$ sudo apt remove grub-efi-amd64-signed grub-efi-amd64-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-125 linux-headers-5.4.0-125-generic linux-image-5.4.0-125-generic linux-modules-5.4.0-125-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  fwupd-signed
The following packages will be REMOVED:
  grub-efi-amd64-bin grub-efi-amd64-signed shim-signed
The following packages will be upgraded:
  fwupd-signed
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  shim-signed grub-efi-amd64-signed (due to shim-signed)
1 upgraded, 0 newly installed, 3 to remove and 120 not upgraded.
1 not fully installed or removed.
Need to get 28.7 kB of archives.
After this operation, 16.3 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 fwupd-signed amd64 1.51~20.04.1+1.2-3ubuntu0.2 [28.7 kB]
Fetched 28.7 kB in 1s (25.5 kB/s)
(Reading database ... 237225 files and directories currently installed.)
Removing shim-signed (1.40.7+15.4-0ubuntu9) ...
Removing grub-efi-amd64-signed (1.173.2~20.04.1+2.04-1ubuntu47.4) ...
Removing grub-efi-amd64-bin (2.04-1ubuntu47.4) ...
(Reading database ... 236910 files and directories currently installed.)
Preparing to unpack .../fwupd-signed_1.51~20.04.1+1.2-3ubuntu0.2_amd64.deb ...
Unpacking fwupd-signed (1.51~20.04.1+1.2-3ubuntu0.2) over (1.27.1ubuntu7+1.2-2~20.04.1) ...
Setting up fwupd-signed (1.51~20.04.1+1.2-3ubuntu0.2) ...
$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-131-generic
Found initrd image: /boot/initrd.img-5.4.0-131-generic
Found linux image: /boot/vmlinuz-5.4.0-128-generic
Found initrd image: /boot/initrd.img-5.4.0-128-generic
Found linux image: /boot/vmlinuz-5.4.0-125-generic
Found initrd image: /boot/initrd.img-5.4.0-125-generic
done

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.