Hey James, I also encountered this problem days before. And I find the answer in this link quite helpful. Maybe you could have a try.
https://askubuntu.com/questions/1481336/var-lib-dpkg-info-shim-signed- postinst-165-usr-lib-grub-grub-multi-install Best -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2081940 Title: package shim-signed 1.51.3+15.7-0ubuntu1 failed to install/upgrade: 已安装 shim-signed 软件包 post-installation 脚本 子进程返回错误状态 127 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shim-signed/+bug/2081940/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs