E:软件包“ linux-headers-4.18.12-041812-generic”没有安装候选人

时间:2020-04-08 12:38:33

标签: linux ubuntu linux-kernel virtual-machine vbox

我一直试图在Ubuntu 18.04上运行Virtual Box,但是我一直收到错误消息。

未安装内核驱动程序(rc = -1908)

未加载或未设置VirtualBox Linux内核驱动程序 正确地。请尝试通过执行再次设置

'/ sbin / vboxconfig'

以root用户身份。

如果您的系统启用了EFI安全启动,则可能还需要签名 内核模块(vboxdrv,vboxnetflt,vboxnetadp,vboxpci)之前 您可以加载它们。请参阅您的Linux系统文档 更多信息。

其中:suplibOsInit什么:3 VERR_VM_DRIVER_NOT_INSTALLED(-1908)- 未安装支持驱动程序。在Linux上,打开返回的ENOENT。

所以我尝试运行sudo / sbin / vboxconfig,出现以下错误:

sudo /sbin/vboxconfig
[sudo] password for user: 
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 Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-generic linux-headers-4.18.12-041812-generic
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-generic linux-headers-4.18.12-041812-generic

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.

如果我尝试安装Linux标头,则会得到:

sudo apt-get install linux-headers-$(uname -r)
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-4.18.12-041812-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-4.18.12-041812-generic' has no installation candidate

那我应该如何解决这个问题才能运行Vbox?我应该升级内核吗?

0 个答案:

没有答案
相关问题