[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

JAWORSKY 2083626 at bugs.launchpad.net
Sat Oct 5 19:34:29 UTC 2024


Hi,
I am not responsible, the system use md as device as i am using a raid 
architecture.
md1 for /boot, and md2 for /, and also md (/dev/md).
But it was the only upgrade error (GOOD) and apparently with no effect 
on work.
As you ask,
===
$ debconf-show grub-pc
   grub2/kfreebsd_cmdline:
   grub-efi/install_devices_failed: false
* grub-pc/install_devices_empty: false
   grub2/linux_cmdline_default:
   grub-pc/mixed_legacy_and_grub2: true
   grub-pc/partition_description:
   grub-pc/install_devices_failed_upgrade: true
   grub2/no_efi_extra_removable: false
   grub-pc/chainload_from_menu.lst: true
   grub2/enable_os_prober: false
* grub2/update_nvram: false
   grub-pc/hidden_timeout: true
   grub-efi/install_devices_empty: false
   grub-pc/timeout: 0
   grub2/unsigned_kernels_title:
   grub-efi/partition_description:
   grub-efi/install_devices:
* grub-efi/cloud_style_installation: true
* grub-pc/install_devices: 
/dev/disk/by-id/ata-HGST_HUS726020ALA610_N4G6YJ1Y
   grub2/kfreebsd_cmdline_default: quiet splash
   grub-pc/disk_description:
   grub-efi/install_devices_disks_changed:
   grub-pc/kopt_extracted: false
   grub-pc/install_devices_failed: false
   grub2/linux_cmdline: iommu=pt
   grub2/unsigned_kernels:
* grub-pc/cloud_style_installation: true
   grub-pc/postrm_purge_boot_grub: false
   grub-pc/install_devices_disks_changed:
===
Le 2024-10-04 12:20, Mate Kukri a écrit :
> 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 subscribed to the 
> bug
> report.
> 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

-- 
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