无法在Debian 3.16.0-4 guest中安装VirtualBox guest添加


0

我在Windows 7主机上有一个Debian(VirtualBox)来宾。
我正在尝试安装客户添加,我做了以下步骤。

  1. “apt-get update”
  2. “apt-get升级”
  3. “apt-get install build-essential模块助手”
  4. “马准备”
  5. “mount / media / cdrom0”
  6. “cd / media / cdrom0”
  7. “sh VBoxLinuxAdditions.run”

    步骤7无法使用以下消息安装guest虚拟机添加:

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

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#

Answers:


1

不,这不好,更确切地说:还不够。

apt install linux-headers-3.16.0-4-amd64

尝试过,仍然是同样的问题(同样的错误,当试图安装客人添加)
Vignesh k

0

警告:安装了X Window System的未知版本。没有安装
X Window System驱动程序。

您的系统需要安装一些软件包:

apt-get install virtualbox-guest-x11 xserver-xorg xserver-xorg-core
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.