Linux 无法在Kali 2.0上安装来宾添加

Linux 无法在Kali 2.0上安装来宾添加,linux,virtualbox,kernel-module,Linux,Virtualbox,Kernel Module,我正在安装新的Kali(2.0),但无法成功安装来宾添加 我向您解释我所做的所有步骤: 首先,我确保拥有正确的存储库(我认为这些是正确的存储库): 我已经更新和升级了 然后我安装了linux头文件(可能是这里的错误,但我不这么认为) 然后我安装了CD,给它755个权限并执行了它。这就是我得到的: Building the main Guest Additions module ...done. Building the shared folder support module ...fail!

我正在安装新的Kali(2.0),但无法成功安装来宾添加

我向您解释我所做的所有步骤:

首先,我确保拥有正确的存储库(我认为这些是正确的存储库):

我已经更新和升级了

然后我安装了linux头文件(可能是这里的错误,但我不这么认为)

然后我安装了CD,给它755个权限并执行了它。这就是我得到的:

Building the main Guest Additions module ...done.
Building the shared folder support 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.
 ...done.
Installing graphics libraries and desktop services components ...done.
我已安装以下设备:

apt-get install virtualbox-guest-x11
apt-get install open-vm-tools
但我还是得到了同样的结果

关于更多信息,这是我的内核:

root@kali:~# uname -r
4.0.0-kali1-686-pae
似乎我已经安装了模块,但它不工作:

root@kali:~# lsmod | grep vbox
vboxguest             180224  5
我的virtualbox版本是4.3.20 有什么想法吗?多谢各位

/var/log/vboxadd-install.log

In file included from /tmp/vbox.0/dirops.c:19:0:
/tmp/vbox.0/dirops.c: In function ‘sf_getdent’:
/tmp/vbox.0/dirops.c:129:29: error: ‘struct file’ has no member named ‘f_dentry’
     sf_g = GET_GLOB_INFO(dir->f_dentry->d_inode->i_sb);
                             ^
/tmp/vbox.0/vfsmod.h:144:60: note: in definition of macro ‘GET_GLOB_INFO’
 # define GET_GLOB_INFO(sb)       ((struct sf_glob_info *) (sb)->s_fs_info)
                                                            ^
/tmp/vbox.0/dirops.c:135:16: error: ‘struct file’ has no member named ‘f_dentry’
     inode = dir->f_dentry->d_inode;
                ^
/usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: recipe for target '/tmp/vbox.0/dirops.o' failed
make[4]: *** [/tmp/vbox.0/dirops.o] Error 1
/usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: recipe for target '_module_/tmp/vbox.0' failed
make[3]: *** [_module_/tmp/vbox.0] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
/tmp/vbox.0/Makefile.include.footer:79: recipe for target 'vboxsf' failed
make: *** [vboxsf] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
在搜索引擎中输入“没有名为“f_dentry”的成员”表示这是内核3.19的一个缺陷,它对结构文件
引入了破坏性的更改,这使得(较旧的)VirtualBox 4.3.20代码无法编译


关于,我的舌头咬得很紧,恐怕你只需要找出是降级内核还是升级VirtualBox是解决你问题的“正确”解决方案。

查看/var/log/vboxadd-install.log,找出哪里出了问题。
?是的,对不起,我编辑了itI,我非常喜欢Linux,而不是目前可用的替代品,但是这个特殊的问题已经不止一次把我逼上了墙,无论是作为用户还是作为软件架构师。你向我推荐什么virtualbox版本??感谢u@aDoN:我自己不使用VirtualBox,也不知道您的要求。也许你最好在VirtualBox论坛(我的第一个链接)上问这样的问题,因为它们并不完全在这里的主题上。
root@kali:~# lsmod | grep vbox
vboxguest             180224  5
In file included from /tmp/vbox.0/dirops.c:19:0:
/tmp/vbox.0/dirops.c: In function ‘sf_getdent’:
/tmp/vbox.0/dirops.c:129:29: error: ‘struct file’ has no member named ‘f_dentry’
     sf_g = GET_GLOB_INFO(dir->f_dentry->d_inode->i_sb);
                             ^
/tmp/vbox.0/vfsmod.h:144:60: note: in definition of macro ‘GET_GLOB_INFO’
 # define GET_GLOB_INFO(sb)       ((struct sf_glob_info *) (sb)->s_fs_info)
                                                            ^
/tmp/vbox.0/dirops.c:135:16: error: ‘struct file’ has no member named ‘f_dentry’
     inode = dir->f_dentry->d_inode;
                ^
/usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: recipe for target '/tmp/vbox.0/dirops.o' failed
make[4]: *** [/tmp/vbox.0/dirops.o] Error 1
/usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: recipe for target '_module_/tmp/vbox.0' failed
make[3]: *** [_module_/tmp/vbox.0] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
/tmp/vbox.0/Makefile.include.footer:79: recipe for target 'vboxsf' failed
make: *** [vboxsf] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.