Como resolver o problema do vagrant up

0

Eu instalei o VirtualBox e o vagrant, tentando tornar o trabalho vagabundo e recebi este erro:

VirtualBox is complaining that the kernel module is not loaded. Please
run 'VBoxManage --version' or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.

Eu corri sudo /sbin/vboxconfig depois e recebi o seguinte erro:

You will not be able to start VMs until this problem is fixed.
5.2.8r121009

nawalabs@nawalabs-ThinkPad-X240:~/web-dev/lighthouse$ sudo /sbin/vboxconfig
vboxdrv.sh: Stopping 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.15.0-13-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.15.0-13-generic

There were problems setting up VirtualBox.  To re-start the set-up process, run


/sbin/vboxconfig
as root.

O que posso fazer?

Depois de instalar os cabeçalhos do Linux genéricos e fazer sudo vboxconfig , recebi esta mensagem de erro:

vboxdrv.sh: Stopping 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.15.0-13-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.15.0-13-generic
There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
    
por tommyC 12.04.2018 / 22:13

0 respostas