package grub-efi-amd64-signed 1.139+2.04-1ubuntu24 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 2 when I ran apt dist-upgrade with pre-release updates enabled in Software Properties

Bug #1871955 reported by Seija K.
94
This bug affects 21 people
Affects Status Importance Assigned to Milestone
grub2-signed (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

See above

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: grub-efi-amd64-signed 1.139+2.04-1ubuntu24
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
CasperMD5CheckResult: skip
Date: Thu Apr 9 18:33:19 2020
ErrorMessage: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2020-04-09 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.1ubuntu1
SourcePackage: grub2-signed
Title: package grub-efi-amd64-signed 1.139+2.04-1ubuntu24 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Seija K. (rose128) 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
Shane O'Sullivan (hitsuji) wrote :

removing the case clause terminator ";;" on line 19 of /var/lib/dpkg/info/grub-efi-amd64-signed.postinst allowed the installation to continue for me and complete the installation

Revision history for this message
Peter Knowles (pknowles) wrote :

Thanks @hitsuji that adjustmnet worked for me as well.

Revision history for this message
Shane O'Sullivan (hitsuji) wrote :

looks like the original code in the debian postinst wraps what results in line 19 in sub case statement.

case @PACKAGE@ in
  grub-efi-ia32) target=i386-efi ;;
  grub-efi-amd64) target=x86_64-efi ;;
  grub-efi-ia64) target=ia64-efi ;;
  grub-efi-arm) target=arm-efi ;;
  grub-efi-arm64) target=arm64-efi ;;
esac

since the package of for amd64 only then the case block is removed, but the clause terminator has accidentally been left behind and needs to be removed

Revision history for this message
Shane O'Sullivan (hitsuji) wrote :
Changed in grub2-signed (Ubuntu):
status: Confirmed → Fix Committed
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.