Vagrant нуждается в Virtual Box ChrUbuntu 13.10 на Acer C720

Мне нужно запустить Vagrant для своих проектов, когда я пытаюсь его запустить:

user@chrubuntu:/var/www/***$ vagrant up
VirtualBox is complaining that the installation is incomplete. Please
run `VBoxManage --version` to see the error message which should contain
instructions on how to fix this error.

VBoxManage --версия

user@chrubuntu:/var/www/***$ VBoxManage --version
WARNING: The character device /dev/vboxdrv does not exist.
     Please install the virtualbox-dkms package and the appropriate
     headers, most likely linux-headers-3.8.11.

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

Я попытался настроить vboxdrv:

/etc/init.d/vboxdrv setup
    * Starting VirtualBox kernel modules                                            
    * No suitable module for running kernel found           [fail]

dpkg-перенастроить виртуальный бокс

user@chrubuntu:/var/www/***$ sudo dpkg-reconfigure virtualbox
+ sudo dpkg-reconfigure virtualbox
[sudo] password for user: 
 * Stopping VirtualBox kernel modules  [ OK ] 
 * Starting VirtualBox kernel modules
 * No suitable module for running kernel found          [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.

dpkg-перенастроить виртуальный бокс-dkms

user@chrubuntu:/var/www/***$ sudo dpkg-reconfigure virtualbox-dkms
+ sudo dpkg-reconfigure virtualbox-dkms

------------------------------
Deleting module version: 4.2.16
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-4.2.16 DKMS files...
dpkg: warning: version '*-*' has bad syntax: version number does not start with digit
It is likely that 3.8.11 belongs to a chroot's host
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
 * Stopping VirtualBox kernel modules                  [ OK ] 
 * Starting VirtualBox kernel modules 
 * No suitable module for running kernel found               [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.

uname -а

Linux chrubuntu 3.8.11 #1 SMP Wed May 14 04:04:45 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux

Когда я пытаюсь установить заголовки Linux:

user@chrubuntu:/var/www/rs-chef$ sudo apt-get install linux-headers-$(uname -r)
++ uname -r
+ sudo apt-get install linux-headers-3.8.11
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-3.8.11
E: Couldn't find any package by regex 'linux-headers-3.8.11'

person hmelenok    schedule 09.06.2014    source источник
comment
Это может помочь: github.com /dnschneid/крутон/вики/   -  person Canuk    schedule 12.07.2014
comment
Спасибо! github.com/dnschneid/crouton /вики/ - идеальный ответ   -  person hmelenok    schedule 10.02.2015


Ответы (1)


Попробуйте установить следующие отсутствующие пакеты:

sudo apt-get install dkms linux-headers-generic virtualbox-ose-source

Также попробуйте:

sudo /etc/init.d/vboxdrv setup

Для получения дополнительной информации проверьте: Сборка ядра заголовки и установить Virtualbox (x86).

person kenorb    schedule 28.06.2016