Erro ao iniciar o VirtualBox no Ubuntu [duplicado]

2

Estou usando o Ubuntu e estou tentando instalar o virtualbox. Mas eu recebo esse erro. Se alguém souber como resolver isso, por favor, me diga.

Error:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.32-042stab092.2) or it failed to
load. Please recompile the kernel module and install it by

   sudo /etc/init.d/vboxdrv setup

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

* Edit: Após a resposta de ThomasW, esta apareceu:

ERROR ON LOG: Error log file:
Uninstalling modules from DKMS
Attempting to install using DKMS
Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel.
Specify KERN_DIR=<directory> and run Make again. Stop
    
por Joserex65 16.10.2014 / 16:27

3 respostas

1

Você precisa executar o comando que está sendo fornecido no erro, bem como recompilá-lo.

Primeiro, comece instalando build-essential para obter as bibliotecas essenciais para criar coisas:

sudo apt-get install build-essential

Em seguida, execute o comando que o erro está especificando:

sudo /etc/init.d/vboxdrv setup
    
por Thomas Ward 16.10.2014 / 16:36
0

Primeiro, comece seguindo a resposta de Thomas W.:

sudo apt-get install build-essential

seguido por

sudo /etc/init.d/vboxdrv setup 

Para corrigir seu erro, execute:

sudo apt-get install linux-generic linux-headers-generic
    
por Kaz Wolfe 22.10.2014 / 22:25
0

O que funcionou para mim:

sudo apt-get install linux-headers-amd64 

substitua amd64 por sua arquitetura.

    
por user372772 27.01.2015 / 12:10