ubuntu20.04卸载virtualbox失败,“if your system is using efi secure boot you may need to sign the kernel “

ubuntu20.04卸载virtualbox失败,报错信息中有“if your system is using efi secure boot you may need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them.“

昨晚在ubuntu20.04上安装了vietualbox,准备做一个centos7.8的虚拟机,但是在安装的时候,有个地方要输入密码,我迷迷糊糊的输入了开机密码,virtualbox安装成功了,但是创建的虚拟机无法启动,具体报错信息忘了记录(坏习惯),好像跟下图差不多:
ubuntu20.04卸载virtualbox失败,“if your system is using efi secure boot you may need to sign the kernel “_第1张图片
于是打算卸载virtualbox,重新安装,但是卸载失败,报错信息中有以下内容:

debconf: dbdriver "config": /var/cache/debconf/config.dat is locked by another process: resource temporarily unavailable vboxdrv.sh: failed: modprobe vboxdrv failed. please use 'dmesg' to find out why. there were problems setting up virtualbox. to re-start the set-up process, run /sbin/vboxconfig as root. 
if your system is using efi secure boot you may need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. please see your linux system's documentation for more information.

google以下如何sign the kernel modules,找到了下面这篇文章,实测有效,具体内在原因还在研究中,谨此记录。
https://superuser.com/questions/1438279/how-to-sign-a-kernel-module-ubuntu-18-04

你可能感兴趣的:(ubuntu)