[Bug 2126738] Re: package grub-efi-amd64 2.12-1ubuntu7.3 failed to install/upgrade: installed grub-efi-amd64 package post-installation script subprocess returned error exit status 4

Mate Kukri 2126738 at bugs.launchpad.net
Fri Oct 3 09:27:11 UTC 2025


> sed: cannot rename /etc/default/sedpxc2lL: Operation not permitted
> dpkg: error processing package grub-efi-amd64 (--configure):
> installed grub-efi-amd64 package post-installation script subprocess returned error exit status 4

Seems like there some problem with /etc/default/grub being edited using
sed but without more details of how this came about, this is non-
actionable.

** Changed in: grub2-unsigned (Ubuntu)
       Status: New => Incomplete

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

Title:
  package grub-efi-amd64 2.12-1ubuntu7.3 failed to install/upgrade:
  installed grub-efi-amd64 package post-installation script subprocess
  returned error exit status 4

Status in grub2-unsigned package in Ubuntu:
  Incomplete

Bug description:
  I do not know the details. 
  It is system generated. 
  Kindly find a way to auto detect these things.

  Thanking you,

  ProblemType: Package
  DistroRelease: Ubuntu 24.04
  Package: grub-efi-amd64 2.12-1ubuntu7.3
  ProcVersionSignature: Ubuntu 6.11.0-26.26~24.04.1-generic 6.11.11
  Uname: Linux 6.11.0-26-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.28.1-0ubuntu3.5
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Fri Oct  3 11:32:39 2025
  DpkgHistoryLog:
   Start-Date: 2025-10-03  11:32:37
   Commandline: /usr/bin/unattended-upgrade
   Upgrade: cups-bsd:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), cups-common:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), cups-client:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), cups-ppdc:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), cups-daemon:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), libcups2t64:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), cups-ipp-utils:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), libcupsimage2t64:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), cups-core-drivers:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), cups:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4), cups-server-common:amd64 (2.4.7-1.2ubuntu7.3, 2.4.7-1.2ubuntu7.4)
  DuplicateSignature:
   package:grub-efi-amd64:2.12-1ubuntu7.3
   Setting up grub-efi-amd64 (2.12-1ubuntu7.3) ...
   sed: cannot rename /etc/default/sedpxc2lL: Operation not permitted
   dpkg: error processing package grub-efi-amd64 (--configure):
    installed grub-efi-amd64 package post-installation script subprocess returned error exit status 4
  ErrorMessage: installed grub-efi-amd64 package post-installation script subprocess returned error exit status 4
  InstallationDate: Installed on 2025-04-28 (157 days ago)
  InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 (20250215)
  Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu2
  PythonDetails: N/A
  RelatedPackageVersions:
   dpkg 1.22.6ubuntu6.1
   apt  2.7.14build2
  SourcePackage: grub2-unsigned
  Title: package grub-efi-amd64 2.12-1ubuntu7.3 failed to install/upgrade: installed grub-efi-amd64 package post-installation script subprocess returned error exit status 4
  UpgradeStatus: No upgrade log present (probably fresh install)

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




More information about the foundations-bugs mailing list