[Bug 2083626] Re: package grub-pc 2.12-1ubuntu7 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1

Mate Kukri 2083626 at bugs.launchpad.net
Fri Oct 4 10:20:57 UTC 2024


This could also be caused by cloud_style_installation=true on a system
where it shouldnt be and grub-probe returning nonsense.

OP can you post the output of debconf-show grub-pc?

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

Title:
  package grub-pc 2.12-1ubuntu7 failed to install/upgrade: installed
  grub-pc package post-installation script subprocess returned error
  exit status 1

Status in grub2 package in Ubuntu:
  New

Bug description:
  in upgrading from 22 LTS to 24 LTS with do-release-upgrade
  One problem was declared during upgrade for grub-pc
  =====
  The upgrade has aborted. Your system could be in an unusable state. A
  recovery will run now (dpkg --configure -a).

  Setting up grub-gfxpayload-lists (0.7build2) ...
  Setting up grub-pc (2.12-1ubuntu7) ...
  Installing for i386-pc platform.
  mdadm: /dev/md does not appear to be an md device
  grub-install: error: ioctl RAID_VERSION error: Inappropriate ioctl for device.
  dpkg: error processing package grub-pc (--configure):
   installed grub-pc package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   grub-pc

  Upgrade complete
  ====
  But
  $ dpkg -l|grep grub
  ii  grub-common                            2.12-1ubuntu7                            amd64        GRand Unified Bootloader (common files)
  ii  grub-gfxpayload-lists                  0.7build2                                amd64        GRUB gfxpayload blacklist
  iF  grub-pc                                2.12-1ubuntu7                            amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
  ii  grub-pc-bin                            2.12-1ubuntu7                            amd64        GRand Unified Bootloader, version 2 (PC/BIOS modules)
  ii  grub2-common                           2.12-1ubuntu7                            amd64        GRand Unified Bootloader (common files for version 2)
  ====
  means grub-pc was installed
  and ubuntu 24 LTS seems working
  ====
  $ lsb_release -rd
  No LSB modules are available.
  Description:    Ubuntu 24.04.1 LTS
  Release:        24.04
  ====

  ProblemType: Package
  DistroRelease: Ubuntu 24.04
  Package: grub-pc 2.12-1ubuntu7
  ProcVersionSignature: Ubuntu 5.15.0-122.132-generic 5.15.163
  Uname: Linux 5.15.0-122-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CloudArchitecture: x86_64
  CloudBuildName: server
  CloudID: configdrive
  CloudName: configdrive
  CloudPlatform: configdrive
  CloudSerial: 20220902
  CloudSubPlatform: config-disk (/dev/sda5)
  Date: Thu Oct  3 17:06:00 2024
  ErrorMessage: installed grub-pc package post-installation script subprocess returned error exit status 1
  ProcCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-122-generic root=UUID=d7bd969a-ed0f-407d-b297-c3bf79aac228 ro iommu=pt
  Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu2
  PythonDetails: N/A
  RebootRequiredPkgs: Error: path contained symlinks.
  RelatedPackageVersions:
   dpkg 1.22.6ubuntu6.1
   apt  2.7.14build2
  SourcePackage: grub2
  Title: package grub-pc 2.12-1ubuntu7 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1
  UpgradeStatus: Upgraded to noble on 2024-10-03 (0 days ago)
  mtime.conffile..etc.init.d.apport: 2024-07-22T16:59:07

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




More information about the foundations-bugs mailing list