package grub-efi-amd64-signed 1.187.2+2.06-2ubuntu14 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1

Bug #2004607 reported by Nkosingiphile
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub2-signed (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Not sure what happened, after restart and update the system reported that there was an error and updates were not completed. However everything is functioning correctly.

Thought I may as well report whatever issues there may be as I would be comfortable with the system well up to date to avoid any system vulnerabilities as well as unexpected crashes or failures.

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: grub-efi-amd64-signed 1.187.2+2.06-2ubuntu14
ProcVersionSignature: Ubuntu 5.15.0-58.64-generic 5.15.74
Uname: Linux 5.15.0-58-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Feb 3 01:48:34 2023
ErrorMessage: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-05-14 (264 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
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.187.2+2.06-2ubuntu14 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nkosingiphile (medmechatrons) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Bug reporting is about finding & fixing problems thus preventing future users from hitting the same bug.

I suspect a Support site would be more appropriate, eg. https://answers.launchpad.net/ubuntu. You can also find help with your problem in the support forum of your local Ubuntu community http://loco.ubuntu.com/ or asking at https://askubuntu.com or https://ubuntuforums.org, or for more support options please look at https://discourse.ubuntu.com/t/community-support/709

Revision history for this message
Stefan Szabo (szbs001) wrote :

Same as on 18.04 LTS!
Worked fine until the latest update...

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
Stefan Szabo (szbs001) wrote (last edit ):

My problem was with the --auto-nvram in the postinst script contained in the .deb package:
   grub-install --target=$target --auto-nvram
Replaced it with --no-nvram and it worked...
Not sure it's the right thing, though, nor why --auto-nvram would fail.

Revision history for this message
Steve (pigeon35) wrote :

BIOS set to Legacy, installed 22.04.1 shortly after it came out. Now getting this error as mentioned above.

sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
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-amd64-signed (1.187.2+2.06-2ubuntu14) ...
mount: /var/lib/grub/esp: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
Errors were encountered while processing:
 grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

"My problem was with the --auto-nvram in the postint script:"

Where is the script which might need editing please?

Revision history for this message
Steve (pigeon35) wrote :

Stumbled on
https://askubuntu.com/questions/1276111/error-upgrading-grub-efi-amd64-signed-special-device-old-ssd-does-not-exist

And "Dima L" comment worked

sudo rm /var/cache/debconf/config.dat

sudo dpkg --configure -a

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.