[Bug 1929440] Re: package grub-pc 2.04-1ubuntu26.11 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 127

Jan Mathisen 1929440 at bugs.launchpad.net
Wed May 26 14:22:16 UTC 2021


Hi Julian Klode.

Thanks for your info.  Yes, I changed the line in /etc/default/grub 
while trying to resolve boot failures.

After making the correction you recommended:
- I ran update-grub,
- restarted, ok,
- ran Software Updater and got the error- grub-install: error: failed to 
register the EFI boot entry: Operation not permitted. Grub failed to 
install to the following devices: /dev/nvme0n1p1

Not sure what to do about this; maybe I'll be back to reinstalling the
OS.

Regards,

--jan mathisen

On 2021-05-24 6:16 p.m., Julian Andres Klode wrote:
> Thanks for your bug report.
>
> It seems you changed one line in /etc/default/grub to
>
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" "acpi=off"
>
> meaning that "acpi=off" is considered a program to run (and
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" an environment variable to
> pass to it).
>
> Please change the line to remove the spurious quotes and space in the
> middle so it says
>
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"
>
> I marked the bug as incomplete, as I can't be sure it's not a bug in
> some maintainer script trying to rewrite the file, I think we saw some
> of them. Please let us know if you did not cause this!
>
> ** Changed in: grub2 (Ubuntu)
>         Status: New => Incomplete
>
-- 
Jan Mathisen
Email:  jbminim at gmail.com
Adress: Bispeveien 54B, NO-1362 Hosle
Phone:  +47 97460585
Web:    100yr.no

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

Title:
  package grub-pc 2.04-1ubuntu26.11 failed to install/upgrade: installed
  grub-pc package post-installation script subprocess returned error
  exit status 127

Status in grub2 package in Ubuntu:
  Incomplete

Bug description:
  Occurred during software update.

  ProblemType: Package
  DistroRelease: Ubuntu 20.04
  Package: grub-pc 2.04-1ubuntu26.11
  ProcVersionSignature: Ubuntu 5.8.0-50.56~20.04.1-generic 5.8.18
  Uname: Linux 5.8.0-50-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.17
  Architecture: amd64
  CasperMD5CheckResult: skip
  Date: Mon May 24 17:48:24 2021
  DuplicateSignature:
   package:grub-pc:2.04-1ubuntu26.11
   Setting up grub-pc (2.04-1ubuntu26.11) ...
   /var/lib/dpkg/info/grub-pc.config: 10: /etc/default/grub: acpi=off: not found
   dpkg: error processing package grub-pc (--configure):
    installed grub-pc package post-installation script subprocess returned error exit status 127
  ErrorMessage: installed grub-pc package post-installation script subprocess returned error exit status 127
  InstallationDate: Installed on 2021-04-16 (38 days ago)
  InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
  InvalidGrubScript: /etc/default/grub
  ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-50-generic root=UUID=72c504d8-e76c-4bbb-bac1-a05442706176 ro quiet splash vt.handoff=7
  Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
  PythonDetails: N/A
  RelatedPackageVersions:
   dpkg 1.19.7ubuntu3
   apt  2.0.5
  SourcePackage: grub2
  Title: package grub-pc 2.04-1ubuntu26.11 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 127
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list