package grub-common 2.04-1ubuntu26.13 failed to install/upgrade: installed grub-common package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
This is a single operating system home pc where the system disc is a 2.5" Samsung 860 Pro 512GB mounted on a ASMedia PCIe card, I also have 3 1TB Seagate 3.5" mechanical hard drives with NTFS file system on them which are data drives left over from the time when I used to use Windows 7, hence the NTFS partitions.
Every time I do a clean install, the following Monday I get error messages again, and can only boot the pc via the grub menu thereafter. Obviously Monday being the start of the new week is something to do with it. It does not matter which day of the week I do a clean install, the following Monday is always the same result.
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: grub-common 2.04-1ubuntu26.13
ProcVersionSign
Uname: Linux 5.11.0-34-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Tue Sep 14 10:27:29 2021
ErrorMessage: installed grub-common package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-07-06 (69 days ago)
InstallationMedia: Ubuntu 20.04.2 LTS "Focal Fossa" - Release amd64 (20210705.1)
ProcCmdLine: BOOT_IMAGE=
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.6
SourcePackage: grub2
Title: package grub-common 2.04-1ubuntu26.13 failed to install/upgrade: installed grub-common package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
It seems your /boot/grub/grubenv gets corrupted on a weekly basis then - It fails to find that first line:
# head -1 /boot/grub/grubenv
# GRUB Environment Block
Deleting the file should get you started again. Maybe there is an issue with the PCIe card or the SSD causing the file(system) to get corrupted?