package:grub-common:2.04-1ubuntu26.13 Setting up grub-common (2.04-1ubuntu26.13) ... Job for grub-initrd-fallback.service failed because the control process exited with error code. See "systemctl status grub-initrd-fallback.service" and "journalctl -xe" for details. update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Job for grub-common.service failed because the control process exited with error code. See "systemctl status grub-common.service" and "journalctl -xe" for details. invoke-rc.d: initscript grub-common, action "restart" failed. ● grub-common.service - Record successful boot for GRUB Loaded: loaded (]8;;file://hosts-pc/lib/systemd/system/grub-common.service/lib/systemd/system/grub-common.service]8;;; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2021-09-14 10:27:29 BST; 23ms ago Process: 3822 ExecStartPre=/bin/sh -c [ -s /boot/grub/grubenv ] || rm -f /boot/grub/grubenv; mkdir -p /boot/grub (code=exited, status=0/SUCCESS) Process: 3824 ExecStart=/usr/bin/grub-editenv /boot/grub/grubenv unset recordfail (code=exited, status=1/FAILURE) Main PID: 3824 (code=exited, status=1/FAILURE) Sep 14 10:27:29 hosts-pc systemd[1]: Starting Record successful boot for GRUB... Sep 14 10:27:29 hosts-pc grub-editenv[3824]: /usr/bin/grub-editenv: error: invalid environment block. Sep 14 10:27:29 hosts-pc systemd[1]: grub-common.service: Main process exited, code=exited, status=1/FAILURE Sep 14 10:27:29 hosts-pc systemd[1]: grub-common.service: Failed with result 'exit-code'. Sep 14 10:27:29 hosts-pc systemd[1]: Failed to start Record successful boot for GRUB. dpkg: error processing package grub-common (--configure): installed grub-common package post-installation script subprocess returned error exit status 1