package grub-common 2.04-1ubuntu26.3 failed to install/upgrade: installed grub-common package post-installation script subprocess returned error exit status 1

Bug #1894597 reported by Stefan Krause-Kjær on 2020-09-07
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned

Bug Description

This happoned during a automated update through the GUI update prompt.
The system is running in a Hyper-v VM from windows 10

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: grub-common 2.04-1ubuntu26.3
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
Uname: Linux 5.4.0-42-generic x86_64
NonfreeKernelModules: lkp_Ubuntu_5_4_0_42_46_generic_70
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Sep 7 08:11:10 2020
ErrorMessage: installed grub-common package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2020-06-15 (83 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-42-generic root=UUID=1eac957e-3ea2-4b5c-b499-5b89baf8c790 ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.1
SourcePackage: grub2
Title: package grub-common 2.04-1ubuntu26.3 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
Download full text (10.8 KiB)

I believe I just observed the same issue again, and now have a log from that See below.
I've also come accross a simular issue here https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1699520

"plymouth --ping" is also hanging for me, I will attach a strace

First the log which happoned as I used `apt` to install an other unrelated tool
$ sudo apt install net-tools
[sudo] password for skk:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gyp javascript-common libc-ares2 libfprint-2-tod1 libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libllvm9 libnode-dev libnode64 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libssl-dev libuv1-dev nodejs-doc python-pkg-resources
  python2 python2-minimal python2.7 python2.7-minimal
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  net-tools
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
6 not fully installed or removed.
Need to get 196 kB of archives.
After this operation, 864 kB of additional disk space will be used.
Get:1 http://dk.archive.ubuntu.com/ubuntu focal/main amd64 net-tools amd64 1.60+git20180626.aebd88e-1ubuntu1 [196 kB]
Fetched 196 kB in 0s (938 kB/s)
Selecting previously unselected package net-tools.
(Reading database ... 174869 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20180626.aebd88e-1ubuntu1_amd64.deb ...
Unpacking net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
Setting up net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
Setting up grub-common (2.04-1ubuntu26.3) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults

Job for grub-common.service failed because a timeout was exceeded.
See "systemctl status grub-common.service" and "journalctl -xe" for details.
invoke-rc.d: initscript grub-common, action "restart" failed.
● grub-common.service - LSB: Record successful boot for GRUB
     Loaded: loaded (/etc/init.d/grub-common; generated)
     Active: failed (Result: timeout) since Wed 2020-09-09 08:32:40 CEST; 5ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 1985200 ExecStart=/etc/init.d/grub-common start (code=killed, signal=TERM)
      Tasks: 6 (limit: 23958)
     Memory: 4.0M
     CGroup: /system.slice/grub-common.service
             ├─ 421180 plymouth --ping
             ├─ 423955 plymouth --ping
             ├─ 434262 plymouth --ping
             ├─ 444489 plymouth --ping
             ├─1923087 plymouth --ping
             └─1985208 plymouth --ping

Sep 09 08:27:40 PC-5928-Linux-VM systemd[1]: Starting LSB: Record successful boot for GRUB...
Sep 09 08:32:40 PC-5928-Linux-VM systemd[1]: grub-common.service: start operation timed out. Terminating.
Sep 09 08:32:40 PC-5928-Linux-VM systemd[1]: grub-common.service: Failed with result 'timeout'.
Sep 09 08:32:40 PC-5928-Linux-VM systemd[1]: Failed to start LSB: Record successful boot for GRUB.
dpkg: error processing package grub-common (--configure):
 installed grub-common package post-installation script subproces...

The issue resolved on my system by rebooting

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers