package shim-signed 1.51.3+15.7-0ubuntu1 failed to install/upgrade: dependency problems - leaving triggers unprocessed

Bug #2039094 reported by Peter Abolude

This bug report was marked for expiration 203 days ago. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shim-signed (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

sudo apt update fails with

Errors were encountered while processing:
 grub-efi-amd64-signed
 shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: shim-signed 1.51.3+15.7-0ubuntu1
ProcVersionSignature: Ubuntu 6.2.0-33.33~22.04.1-generic 6.2.16
Uname: Linux 6.2.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
AptOrdering: NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: pass
Date: Wed Oct 11 18:38:59 2023
DuplicateSignature:
 package:shim-signed:1.51.3+15.7-0ubuntu1
 Setting up grub-efi-amd64-signed (1.187.6+2.06-2ubuntu14.4) ...
 mount: /var/lib/grub/esp: special device /dev/disk/by-id/nvme-TS512GMTE220S_H278000148-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: dependency problems - leaving triggers unprocessed
InstallationDate: Installed on 2023-10-03 (7 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
Missing: /boot/efi/EFI/ubuntu directory is missing
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt 2.4.10
SourcePackage: shim-signed
Title: package shim-signed 1.51.3+15.7-0ubuntu1 failed to install/upgrade: dependency problems - leaving triggers unprocessed
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Peter Abolude (cfcife) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

It seems your /boot/efi partition is not mounted. Please mount it to continue the upgrade.

It seems you actually deleted that partition otherwise it would have been automatically mounted (which you can see fails here because the partition no longer exists).

In this case, please create a new EFI system partition and mount it to /boot/efi.

The bug here is that we allowed you to continue with a device that no longer exists, but since we already have other bugs tracking this and I don't have them handy I'll go close this instead of marking it a duplicate.

Changed in shim-signed (Ubuntu):
status: New → Invalid
Revision history for this message
Peter Abolude (cfcife) wrote :

Firstly, thanks @juliank

1. I am a newbie to ubuntu

2. I got a new computer that I just installed the Ubuntu 22.04 iso on, I did not upgrade from any version. I formatted the windows 11 default O.S and installed ubuntu.

3. Does this step - "In this case, please create a new EFI system partition and mount it to /boot/efi." involves me formatting the computer. This is my personal PC, and made this new installation of ubuntu about 2 weeks ago.

Revision history for this message
Steve Langasek (vorlon) wrote :

Peter, please show the output of the command 'ls -l /dev/disk/by-id' on this system.

Revision history for this message
Steve Langasek (vorlon) wrote :

For the record, we have seen a surprisingly large number of bug reports of this sort *specifically* from users with NVME disks and no other kinds of disks so I am suspicious. You're the first bug reporter who has responded after initial bug filing, however, so it hasn't been possible to get more information!

Changed in shim-signed (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Peter Abolude (cfcife) wrote :

I was able to solve this issue, thanks to what juliank suggested.

"In this case, please create a new EFI system partition and mount it to /boot/efi."

Like I said, I'm new to Ubuntu so I shared this with ChatGPT and the solution it recommended. worked.

Would it be possible to share it here, as it's AI and I don't know the rules of this platform.

Revision history for this message
Peter Abolude (cfcife) wrote :

I don't the output of the command will be same as what it was when the bug was reported.

```
$ ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 13 Oct 11 21:00 nvme-eui.00000000000000007c354851ed684214 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Oct 11 21:00 nvme-eui.00000000000000007c354851ed684214-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Oct 11 21:00 nvme-eui.00000000000000007c354851ed684214-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 13 Oct 11 21:00 nvme-TS512GMTE220S_H278000148 -> ../../nvme0n1
lrwxrwxrwx 1 root root 13 Oct 11 21:00 nvme-TS512GMTE220S_H278000148_1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Oct 11 21:00 nvme-TS512GMTE220S_H278000148_1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Oct 11 21:00 nvme-TS512GMTE220S_H278000148_1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Oct 11 21:00 nvme-TS512GMTE220S_H278000148-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Oct 11 21:00 nvme-TS512GMTE220S_H278000148-part2 -> ../../nvme0n1p2

```

Revision history for this message
Peter Abolude (cfcife) wrote :

I would post the report of what I did though with the CAVEAT -> This is specific to my issue, and no SO answer could help me but what Juliank wrote.

-> Initially, my /boot/efi was mounted on the only partition available on my disk. So, i created a new Fat32 partition on `/dev/nvme0n1` using `gparted`.

-> Then, I formated the new partition with FAT32 filesystem
`
-> Then mounted the EFI partition which already existed btw on `dev/nvme0n1p1` to the new partition `dev/nvme0n1p2`

-> I updated the `/etc/fstab` with the new location of `/boot/efi` and commented out the old value

-> I reinstalled grub and did a reboot.

----

During reboot, I got this error - `x86/cpu: SGX disable by BIOS.`

I fixed this by going into the BiOs settings and switched the option for Intel SGX to Enable, and the rest was history.

Thanks once again @juliank. I do not regret trying out ubuntu

Revision history for this message
Steve Langasek (vorlon) wrote :

> Would it be possible to share it here, as it's AI and I don't know the rules of this platform.

Please tell us the instructions that you followed.

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.