
Я пытался установить virtualBox на свой Debian Server, но каждый раз, когда я пытаюсь запустить виртуальную машину, мне говорят выполнить /etc/init.d/vboxdrv setup. Всякий раз, когда я пытаюсь использовать эту команду, мне говорят следующее:
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 2.6.32-amd64 cannot be found.
Please install the linux-headers-2.6.32-amd64 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)
Когда я пытаюсь установить пакет, он сообщает, что не может его найти.
apt-get install linux-headers-2.6.32-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-2.6.32-amd64
E: Couldn't find any package by regex 'linux-headers-2.6.32-amd64'
Где мне получить этот пакет?
решение1
Хороший инструмент — module-assistant
. Запустите apt-get install module-assistant
и используйте его для установки linux-headers и build-essential:
m-a update
А потом:
m-a prepare