假设我输入,
sudo apt-get install SOME_PACKAGE
无论我安装什么包,最终都会出现以下错误:
Setting up shim-signed (1.51.3+15.7-0ubuntu1) ...
/var/lib/dpkg/info/shim-signed.postinst: 165: /usr/lib/grub/grub-multi-install: not found
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)
我关闭了安全启动,重新启动,并尝试卸载 shim-signed,但得到:
The following packages will be REMOVED:
shim-signed*
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
shim-signed
0 upgraded, 0 newly installed, 1 to remove and 40 not upgraded.
1 not fully installed or removed.
After this operation, 4,841 kB disk space will be freed.
E: Removing essential system-critical packages is not permitted. This might break the system.
从网上查找看来,这grub-multi-install
是的一部分grub-common
,所以我尝试了 grub-multi-install,结果出现了关于shim-signed
和 grub-multi-install 的错误。
还有谁经历过这样的事吗?
这一切都是在我做了之后开始的
apt-get upgrade
apt-get update
还有人有这个问题吗?