内核版本变更,开启了Secure Boot的电脑上模块必须注册才允许执行,解决问题的办法就是注册这些模块。
一、找到MOK.priv地址并进入 locate MOK.priv
二、创建签名 openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj “/CN=Descriptive name/”
三、注册模块 sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
四、注册 key 到 Secure Boot sudo mokutil --import MOK.der
五、重启电脑->enroll MOK->continue->yes->(输入密码,后续要用到)->reboot
参考:https://blog.csdn.net/liangjiu2009/article/details/72056947?utm_source=blogxgwz8