shim-signed 1.57+15.8-0ubuntu1 upgrade failing due to grub-common/2.12-1ubuntu3 still being present during installation

Bug #2056562 reported by lotuspsychje
52
This bug affects 9 people
Affects Status Importance Assigned to Milestone
shim-signed (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu 24.04 development branch at 8/3/2024

Getting this error after doing updates

ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: shim-signed 1.57+15.8-0ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-11.11-generic 6.8.0-rc4
Uname: Linux 6.8.0-11-generic x86_64
.proc.sys.kernel.moksbstate_disabled: Error: [Errno 2] Bestand of map bestaat niet: '/proc/sys/kernel/moksbstate_disabled'
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
BootEFIContents:
 BOOTX64.CSV
 grub.cfg
 grubx64.efi
 mmx64.efi
 shimx64.efi
CasperMD5CheckResult: unknown
Date: Fri Mar 8 15:23:24 2024
ErrorMessage: subproces van pakket shim-signed werd script post-installation geïnstalleerd gaf de foutwaarde 10 terug
InstallationDate: Installed on 2023-11-09 (120 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
Python3Details: /usr/bin/python3.12, Python 3.12.2, python3-minimal, 3.12.1-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.22.4ubuntu5
 apt 2.7.12
SecureBoot: 6 0 0 0 0
SourcePackage: shim-signed
Title: package shim-signed 1.57+15.8-0ubuntu1 failed to install/upgrade: subproces van pakket shim-signed werd script post-installation geïnstalleerd gaf de foutwaarde 10 terug
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
lotuspsychje (lotuspsychje) wrote :
Revision history for this message
Mate Kukri (mkukri) wrote (last edit ):

Hi,

Can you check what version of the grub-common and grub2-common packages does your system have installed? (dpkg -l)

Revision history for this message
lotuspsychje (lotuspsychje) wrote :

@ #2 Mate:

ii grub-common 2.12-1ubuntu4 amd64 GRand Unified Bootloader (common files)
ii grub2-common 2.12-1ubuntu4 amd64 GRand Unified Bootloader (common files for version 2)

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

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

Changed in shim-signed (Ubuntu):
status: New → Confirmed
Revision history for this message
corrado venturini (corradoventu) wrote :

The following packages have been kept back:
  grub-common grub2-common ....

corrado@corrado-n4-nn-0215:~$ apt policy grub*-common
grub2-common:
  Installed: 2.12-1ubuntu3
  Candidate: 2.12-1ubuntu4
  Version table:
     2.12-1ubuntu5 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
     2.12-1ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
 *** 2.12-1ubuntu3 100
        100 /var/lib/dpkg/status
grub-common:
  Installed: 2.12-1ubuntu3
  Candidate: 2.12-1ubuntu4
  Version table:
     2.12-1ubuntu5 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
     2.12-1ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
 *** 2.12-1ubuntu3 100
        100 /var/lib/dpkg/status
corrado@corrado-n4-nn-0215:~$

Revision history for this message
Mate Kukri (mkukri) wrote :

Can you try just upgrading grub-common and grub2-common first and then upgrading shim-signed?

E.g. by:

apt update
apt install --only-upgrade grub-common grub2-common
apt install --only-upgrade shim-signed

Revision history for this message
corrado venturini (corradoventu) wrote :

Ok thanks after upgrade grub-common grub2-common...

corrado@corrado-n4-nn-0215:~$ sudo apt install --only-upgrade shim-signed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
shim-signed is already the newest version (1.57+15.8-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
corrado@corrado-n4-nn-0215:~$

Revision history for this message
Brett Holman (holmanb) wrote :

solution worked for me as well

Mate Kukri (mkukri)
summary: - package shim-signed 1.57+15.8-0ubuntu1 failed to install/upgrade:
- subproces van pakket shim-signed werd script post-installation
- geïnstalleerd gaf de foutwaarde 10 terug
+ shim-signed upgrade failing due to grub-common/2.12-1ubuntu3 still being
+ present during installation
summary: - shim-signed upgrade failing due to grub-common/2.12-1ubuntu3 still being
- present during installation
+ shim-signed 1.57+15.8-0ubuntu1 upgrade failing due to grub-
+ common/2.12-1ubuntu3 still being present during installation
Revision history for this message
Skia (hyask) wrote :

Solution worked here too. :-)

tags: added: rls-nn-incoming
Revision history for this message
Tamás Pénzes (penzes-tamas) wrote :

Worked for me too. apt upgrade worked after it perfectly for other packages.

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

I think we can actually just respin noble's shim-signed with Breaks: grub-common (= 2.12-1ubuntu3) for the few people affected by this

tags: added: foundations-todo
removed: rls-nn-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package shim-signed - 1.58

---------------
shim-signed (1.58) noble; urgency=medium

  * Prevent postinst failing when broken grub-common was previously
    installed(LP: #2056562)

 -- Mate Kukri <email address hidden> Thu, 04 Apr 2024 13:39:00 +0100

Changed in shim-signed (Ubuntu):
status: Confirmed → Fix Released
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.