Я пытаюсь запустить virtualbox на моем компьютере Debian 8.7 (64-битная архитектура).
При выполнении команды vboxconfig:
/sbin/vboxconfig
я получаю следующий ответ:
vboxdrv.sh: Building VirtualBox kernel modules.
dpkg-query: no path found matching pattern /lib/modules/3.16.0-042stab116.1/kernel
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:
apt-get install -headers-3.16.0-042stab116.1
(The last command may fail if your system is not fully updated.)
apt-get install -headers
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
dpkg-query: no path found matching pattern /lib/modules/3.16.0-042stab116.1/kernel
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:
apt-get install -headers-3.16.0-042stab116.1
(The last command may fail if your system is not fully updated.)
apt-get install -headers
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
Следуя предложению, я начал установку заголовочных файлов (после исправления опечатки с тире перед именем пакета headers-3.16.0-042stab116.1):
apt-get install headers-3.16.0-042stab116.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package headers-3.16.0-042stab116.1
E: Couldn't find any package by regex 'headers-3.16.0-042stab116.1'
Мой sources.list выглядит так:
deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb http://download.virtualbox.org/virtualbox/debian jessie contrib
Я предполагаю, что пакет, содержащий headers-3.16.0-042stab116.1 не доступен в репозиториях (больше). Поэтому мой подход будет заключаться в попытке обновить ядро соответствующим образом, чтобы я мог установить более новые заголовки.
Теперь мои вопросы: это VPS, а не настольная машина.
Смогу ли я обновить ядро на таком сервере? И если да: как мне узнать, какой образ ядра будет подходящим для установки (apt-cache search linux-image дает ужасно много результатов)?
Будьте здоровы