[Bug 2006050] [NEW] package grub-efi-amd64-signed 1.187.2~20.04.2+2.06-2ubuntu14 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1 (/dev/disk/by-id does not exist)

Tuomas Heino 2006050 at bugs.launchpad.net
Sun Feb 5 11:47:02 UTC 2023


Public bug reported:

Upgraded packages on a VM which had been dormant for a while.
Apparently /dev/disk/by-id doesn't exist and grub2-signed postinst isn't expecting such scenario.

$ ls -la /dev/disk/
total 0
drwxr-xr-x  6 root root  120 Feb  5 13:19 .
drwxr-xr-x 19 root root 4300 Feb  5 13:30 ..
drwxr-xr-x  2 root root   60 Feb  5 13:19 by-partlabel
drwxr-xr-x  2 root root   80 Feb  5 13:19 by-partuuid
drwxr-xr-x  2 root root  160 Feb  5 13:19 by-path
drwxr-xr-x  2 root root   80 Feb  5 13:19 by-uuid

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: grub-efi-amd64-signed 1.187.2~20.04.2+2.06-2ubuntu14
ProcVersionSignature: Ubuntu 5.15.0-56.62~20.04.1-generic 5.15.64
Uname: Linux 5.15.0-56-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.25
Architecture: amd64
CasperMD5CheckResult: skip
Date: Sun Feb  5 13:34:24 2023
DuplicateSignature:
 package:grub-efi-amd64-signed:1.187.2~20.04.2+2.06-2ubuntu14
 Setting up grub-efi-amd64-signed (1.187.2~20.04.2+2.06-2ubuntu14) ...
 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
ErrorMessage: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2020-04-10 (1030 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3.2
 apt  2.0.9
SourcePackage: grub2-signed
Title: package grub-efi-amd64-signed 1.187.2~20.04.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)

** Affects: grub2-signed (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package focal third-party-packages

** Summary changed:

- package grub-efi-amd64-signed 1.187.2~20.04.2+2.06-2ubuntu14 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1 (/dev/disk/ only contains by-partlabel/partuuid/path/uuid, no /dev/disk/by-id)
+ package grub-efi-amd64-signed 1.187.2~20.04.2+2.06-2ubuntu14 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1 (/dev/disk/by-id does not exist)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2-signed in Ubuntu.
https://bugs.launchpad.net/bugs/2006050

Title:
  package grub-efi-amd64-signed 1.187.2~20.04.2+2.06-2ubuntu14 failed to
  install/upgrade: installed grub-efi-amd64-signed package post-
  installation script subprocess returned error exit status 1
  (/dev/disk/by-id does not exist)

Status in grub2-signed package in Ubuntu:
  New

Bug description:
  Upgraded packages on a VM which had been dormant for a while.
  Apparently /dev/disk/by-id doesn't exist and grub2-signed postinst isn't expecting such scenario.

  $ ls -la /dev/disk/
  total 0
  drwxr-xr-x  6 root root  120 Feb  5 13:19 .
  drwxr-xr-x 19 root root 4300 Feb  5 13:30 ..
  drwxr-xr-x  2 root root   60 Feb  5 13:19 by-partlabel
  drwxr-xr-x  2 root root   80 Feb  5 13:19 by-partuuid
  drwxr-xr-x  2 root root  160 Feb  5 13:19 by-path
  drwxr-xr-x  2 root root   80 Feb  5 13:19 by-uuid

  ProblemType: Package
  DistroRelease: Ubuntu 20.04
  Package: grub-efi-amd64-signed 1.187.2~20.04.2+2.06-2ubuntu14
  ProcVersionSignature: Ubuntu 5.15.0-56.62~20.04.1-generic 5.15.64
  Uname: Linux 5.15.0-56-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.25
  Architecture: amd64
  CasperMD5CheckResult: skip
  Date: Sun Feb  5 13:34:24 2023
  DuplicateSignature:
   package:grub-efi-amd64-signed:1.187.2~20.04.2+2.06-2ubuntu14
   Setting up grub-efi-amd64-signed (1.187.2~20.04.2+2.06-2ubuntu14) ...
   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
  ErrorMessage: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
  InstallationDate: Installed on 2020-04-10 (1030 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
  Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
  PythonDetails: N/A
  RelatedPackageVersions:
   dpkg 1.19.7ubuntu3.2
   apt  2.0.9
  SourcePackage: grub2-signed
  Title: package grub-efi-amd64-signed 1.187.2~20.04.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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/2006050/+subscriptions




More information about the foundations-bugs mailing list