I have tried many tutorials to install виртуальный box on Ubuntu 14.04 LTS but не matter what I do, it doesn't work.
Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 4.2.0-c9 cannot be found.
Please install the linux-headers-4.2.0-c9 package,
or use the --kernelsourcedir option to tell DKMS where it's located
...failed!
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
I have searched through many форумы and read askubuntu questions but NONE of them works for я.
HerВs the output of /var/log/vbox-install.log
:
Uninstalling модулируй from DKMS Attempting to install using DKMS
Creating symlink/var/lib/dkms/vboxhost/4.3.34/source->/usr/src/vboxhost-4.3.34
DKMS: add completed.
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.
4.2.0-c9 ядро не существует пакетов в Ubuntu. Если Вы устанавливаете это ядро из источников, то Вы нуждаетесь в заголовках ядрa, установленных вручную в/usr/src/linux-headers-4.2.0-c9 (и молитесь...)
, Моя рекомендация состоит в том, которые устанавливают ядро от lts-коварного с:
sudo Кв. - добирается, установка linux-image-generic-lts-wily linux-headers-generic-lts-wily существенный для сборки
не забывают, перезагрузка после установки новое ядро, гарантируют, что Вы с новым ядром при установке правильно нового ядра должен появиться в меню личинки перед начальной загрузкой, выбрать это, и теперь, Вы продолжаете свою установку virtualbox.