Не удалось установить гостевое дополнение VirtualBox в гостевой системе Debian 3.16.0-4

758
Vignesh k

У меня есть гость Debian (VirtualBox) на хосте Windows 7.
Я пытаюсь установить гостевые дополнения, и я сделал следующие шаги.

  1. "apt-get update"
  2. "apt-get upgrade"
  3. "apt-get install build-essential module-assistant"
  4. "готовлюсь"
  5. "mount / media / cdrom0"
  6. "cd / media / cdrom0"
  7. "sh VBoxLinuxAdditions.run"

    Шаг 7 не может установить гостевые дополнения со следующими сообщениями:

=============================================

root@vig-debian:/media/cdrom0# sh VBoxLinuxAdditions.run  Verifying archive integrity... All good.  Uncompressing VirtualBox 4.1.14 Guest Additions for Linux.........  VirtualBox Guest Additions installer  Removing installed version 4.1.14 of VirtualBox Guest Additions...  Removing existing VirtualBox DKMS kernel modules ...done.  Removing existing VirtualBox non-DKMS kernel modules ...done.  Building the VirtualBox Guest Additions kernel modules  The headers for the current running kernel were not found. If the following  module compilation fails then this could be the reason.   Building the main Guest Additions module ...fail!  (Look at /var/log/vboxadd-install.log to find out what went wrong)  Doing non-kernel setup of the Guest Additions ...done.  Installing the Window System drivers  Warning: unknown version of the X Window System installed. Not installing  X Window System drivers.  Installing modules ...done.  Installing graphics libraries and desktop services components ...done.  root@vig-debian:/media/cdrom0#  

ошибка говорит: «Заголовки для текущего запущенного ядра не найдены».
Ниже приведена версия моего ядра и заголовки, что, я думаю, хорошо.

root@vig-debian:/media/cdrom0# uname -a  Linux vig-debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux  root@vig-debian:/media/cdrom0# cd /usr/src/  root@vig-debian:/usr/src# ls  linux linux-headers-3.16.0-4-common vboxguest-4.1.14  linux-headers-3.16.0-4-amd64 linux-kbuild-3.16  root@vig-debian:/usr/src# 
0

2 ответа на вопрос

1
Ipor Sircer

Нет, это не хорошо, точнее: недостаточно.

apt install linux-headers-3.16.0-4-amd64 
попробовал, все еще та же проблема (та же ошибка, когда пытался установить гостевое дополнение) Vignesh k 6 лет назад 0
0
GAD3R

Предупреждение: установлена ​​неизвестная версия X Window System. Не устанавливать
драйверы X Window System.

Некоторые пакеты должны быть установлены в вашей системе:

apt-get install virtualbox-guest-x11 xserver-xorg xserver-xorg-core 

Похожие вопросы