Score:0

/var/lib/dpkg/info/shim-signed.postinst: 165: /usr/lib/grub/grub-multi-install: not found

sg flag

After a fresh Ubuntu install I'm running into this error:
Sub-process /usr/bin/dpkg returned an error code (1)

Full log:

dpkg: error processing package shim-signed (--configure):
 installed shim-signed package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

As I can see, this package is to blame: shim-signed.
But it is also a system package so I can't purge it, there is no cached installation file and sudo apt-get install --fix-broken results in the same log as previously.

Can someone please explain what this /usr/lib/grub/grub-multi-install is and how to fix it?

P.S. Running an ~2017 HP office laptop that still has BIOS for some odd reason. Might be related to grub somehow.

mook765 avatar
cn flag
The file `/usr/lib/grub/grub-multi-install` is part of the package `grub-common`, this package should be installed on your system. I'd try to reinstall the package (`sudo apt reinstall grub-common`) to see if this helps. Which version of Ubuntu did you install?
Lev Slinsen avatar
sg flag
@mook765 Same result. It even detects that one package has to be fixed: `1 not fully installed or removed.`
mook765 avatar
cn flag
It's a strange thing, no idea how to fix this. Since this is a fresh install I'd try a reinstall. Your machine should be EFI compatible if it's from ~2017. If there is no need for bios boot, I'd disable it in Bios settings, EFI boot is usually preferable.
Score:0
sg flag

According to this bug report: https://bugs.launchpad.net/ubuntu/+source/shim-signed/+bug/2012196
...it can be fixed with sudo apt -f install grub-common/jammy grub2-common/jammy. Looks like it solved the issue for me.
After it is done, you can clean up unnecessary packages with sudo apt autoremove.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.