package grub-pc 2.04-1ubuntu26.4 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1: dependency problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Setting up grub-pc (2.04-1ubuntu26.4) ...
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of grub-gfxpayload
grub-gfxpayloa
Package grub-pc is not configured yet.
dpkg: error processing package grub-gfxpayload
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
grub-pc
grub-gfxpayloa
E: Sub-process /usr/bin/dpkg returned an error code (1)
...seems that something is broken here.
this is the result of apt list| grep grub:
grub-common/
grub-coreboot-
grub-coreboot-
grub-coreboot/
grub-customizer
grub-efi-
grub-efi-
grub-efi-
grub-efi-
grub-efi-
grub-efi-
grub-efi-
grub-efi-
grub-efi/
grub-emu-
grub-emu/
grub-firmware-
grub-gfxpayload
grub-ieee1275-
grub-ieee1275-
grub-ieee1275/
grub-imageboot/
grub-invaders/focal 1.0.0-13 amd64
grub-ipxe/
grub-legacy-
grub-linuxbios/
grub-pc-
grub-pc-
grub-pc/
grub-rescue-
grub-splashimag
grub-theme-
grub-theme-
grub-xen-
grub-xen-
grub-xen-
grub-xen/
grub2-common/
grub2-splashima
grub2-themes-
grub2-themes-
grub2/focal-updates 2.04-1ubuntu26.4 amd64
grubzfs-
lubuntu-
pv-grub-
sabily-
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: grub-pc 2.04-1ubuntu26.4
ProcVersionSign
Uname: Linux 5.4.0-48-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckR
Date: Wed Oct 14 08:36:06 2020
DuplicateSignature:
package:
Setting up grub-pc (2.04-1ubuntu26.4) ...
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
ErrorMessage: installed grub-pc package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2014-07-22 (2275 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
ProcCmdLine: BOOT_IMAGE=
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.2ubuntu0.1
SourcePackage: grub2
Title: package grub-pc 2.04-1ubuntu26.4 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2020-10-05 (8 days ago)
tags: | removed: need-duplicate-check |
I have solved it by
sudo apt purge grub-pc
sudo apt install grub-pc
Quite scaring but it worked.