安装Virtulbox的问题

如题;系统自带软件商店没有Virtulbox,只有从官网下载deb安装包,系统包安装器报错。又下了run安装包,终端安装有报错但安装成功。启动正常,但创建虚拟机报错!
报错如下:
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

‘/sbin/vboxconfig’

as root.

If your system has EFI Secure Boot enabled you may also 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.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

是virtulbox的驱动未起来,有谁处理过类似问题吗?
如能分享不胜感激!

‘/sbin/vboxconfig’

as root.
先按这个提示,执行一遍看看

谢谢,已经试验了,还是不行故障依旧。等一下我复现给你帮我看看!

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.

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.
上面是sudo vboxconfig的报错信息

是要装gcc编译包吗?
可我是直接下的run包是编译好的,没有源码耶!

Please install the gcc make perl packages from your distribution.
vbox要编译一些模块,需要编译工具

哎呀,这个解决问题难度上了一个数量级。我先试试吧,还不知道需要gcc的那个版本,这个试错时间和代价,我都有打退堂鼓了。现在死马当活马医办。
还是谢谢你!

sudo apt install gcc make perl
应该不用考虑版本,就装系统最新版本
都是基础编译工具,应该没有风险
image

谢谢大神,我正在测试。

难者不会,会者不难!问题解决了!
学习到了!
大神请接受我的跪拜!!!

客气。我碰巧也遇到过这个问题而已。