kali linux 2.0 无法安装vmware tools

首先不是源的问题,。。我各种源各种更新,绝对不是源的问题。

其中我执行
apt-get install linux-headers-$(uname -r)
这个命令后提示:
E: 无法定位软件包 linux-headers-4.3.0-kali1-686-pae
E: 无法按照 glob ‘linux-headers-4.3.0-kali1-686-pae’ 找到任何软件包
E: 无法按照正则表达式 linux-headers-4.3.0-kali1-686-pae 找到任何软件包

我搜索了一下:apt-cache search linux-headers
也确实没有这个软件包。。。。

再然后我各种百度,各种谷歌。。。反正最终我是按着:http://gdd.gd/980.html (这是我写的,非打广告)
找到了 linux-headers-4.3.0-kali1-686-pae ,也安装了。。

但是问题来了,我安装vmware tools最终现实是,成功,但是实际没有成功。安装过程中出现了很多错误。。

不知道朋友们遇到过吗?  有知道如何解决这个问题的朋友吗?

收藏 感谢(0)
分享到: 0
9 个回复
  1. 1# Pany自留地 (‮) | 2016-03-16 10:39

    apt-get update
    apt-get install open-vm-tools-desktop fuse


    使用Open-VM-Tools

  2. 2# 欧冠狂魔阿森纳 | 2016-03-16 10:47

    unmae -r 如果有了的话  你直接安装vm-tools,  在安装的过程中 你注意下,就可以安装成功了,具体原因也没搞清楚,反正这样弄就OK

  3. 3# 40huo | 2016-03-16 10:59

    直接去官网下虚拟机文件导入就好了,自带vmtools

  4. 4# Mayter | 2016-03-16 11:01

    1楼正解。https://www.kali.org/news/kali-linux-rolling-edition-2016-1/  官网有说明的。

  5. 5# sysALong (不用社工我那么累,我HLJ的!博客:gdd.gd) | 2016-03-16 11:05

    ------------------------error code-------------------------------



    Searching for a valid kernel header path...
    Detected the kernel headers at
    "/lib/modules/4.3.0-kali1-686-pae/build/include".
    The path "/lib/modules/4.3.0-kali1-686-pae/build/include" appears to be a valid
    path to the 4.3.0-kali1-686-pae kernel headers.
    Would you like to change it? [no]

    make: Entering directory '/tmp/modconfig-FZpmhZ/vmhgfs-only'
    Using 2.6.x kernel build system.
    /usr/bin/make -C /lib/modules/4.3.0-kali1-686-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory '/usr/src/linux-headers-4.3.0-kali1-686-pae'
    Makefile:10: *** mixed implicit and normal rules: deprecated syntax
    CC [M]  /tmp/modconfig-FZpmhZ/vmhgfs-only/message.o
    CC [M]  /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.o
    In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/backdoor.h:30:0,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/message.c:54:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
    ^
    In file included from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/kernel.h:13:0,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/kernelStubs.h:36,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/message.c:45:
    /usr/src/linux-headers-4.3.0-kali1-common/include/linux/printk.h:105:0: note: this is the location of the previous definition
    #define DEPRECATED "[Deprecated]: "
    ^
    CC [M]  /tmp/modconfig-FZpmhZ/vmhgfs-only/rpcout.o
    In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/hgfs.h:40:0,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/hgfsProto.h:37,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:37:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
    ^
    In file included from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/kernel.h:13:0,
    from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/list.h:8,
    from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/module.h:9,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:29:
    /usr/src/linux-headers-4.3.0-kali1-common/include/linux/printk.h:105:0: note: this is the location of the previous definition
    #define DEPRECATED "[Deprecated]: "
    ^
    In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/vmware.h:39:0,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/rpcout.c:43:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
    #define DEPRECATED(_fix) do {} while (0)
    ^
    In file included from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/kernel.h:13:0,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/kernelStubs.h:36,
    from /tmp/modconfig-FZpmhZ/vmhgfs-only/rpcout.c:33:
    /usr/src/linux-headers-4.3.0-kali1-common/include/linux/printk.h:105:0: note: this is the location of the previous definition
    #define DEPRECATED "[Deprecated]: "
    ^
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c: In function ‘HgfsPackDirOpenRequest’:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:417:26: error: ‘struct file’ has no member named ‘f_dentry’
    file->f_dentry) < 0) {
    ^
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c: In function ‘HgfsDirLlseek’:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:707:32: error: ‘struct file’ has no member named ‘f_dentry’
    struct dentry *dentry = file->f_dentry;
    ^
    In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:39:0:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c: In function ‘HgfsReaddirNextEntry’:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:993:31: error: ‘struct file’ has no member named ‘f_dentry’
    si = HGFS_SB_TO_COMMON(file->f_dentry->d_inode->i_sb);
    ^
    /tmp/modconfig-FZpmhZ/vmhgfs-only/module.h:89:62: note: in definition of macro ‘HGFS_SB_TO_COMMON’
    #define HGFS_SB_TO_COMMON(sb)             ((HgfsSuperInfo *)(sb)->s_fs_info)
    ^
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1082:26: error: ‘struct file’ has no member named ‘f_dentry’
    *entryIno = file->f_dentry->d_inode->i_ino;
    ^
    In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:30:0:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1088:44: error: ‘struct file’ has no member named ‘f_dentry’
    *entryIno = compat_parent_ino(file->f_dentry);
    ^
    /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/compat_fs.h:120:46: note: in definition of macro ‘compat_parent_ino’
    #define compat_parent_ino(dentry) parent_ino(dentry)
    ^
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1093:52: error: ‘struct file’ has no member named ‘f_dentry’
    *entryIno = HgfsGetFileInode(&entryAttrs, file->f_dentry->d_inode->i_sb);
    ^
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c: In function ‘HgfsDoReaddir’:
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1173:13: error: ‘struct file’ has no member named ‘f_dentry’
    !(file->f_dentry) ||
    ^
    /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1174:13: error: ‘struct file’ has no member named ‘f_dentry’
    !(file->f_dentry->d_inode)) {
    ^
    /usr/src/linux-headers-4.3.0-kali1-common/scripts/Makefile.build:263: recipe for target '/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.o' failed
    make[4]: *** [/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.o] Error 1
    make[4]: *** 正在等待未完成的任务....
    /usr/src/linux-headers-4.3.0-kali1-common/Makefile:1395: recipe for target '_module_/tmp/modconfig-FZpmhZ/vmhgfs-only' failed
    make[3]: *** [_module_/tmp/modconfig-FZpmhZ/vmhgfs-only] Error 2
    Makefile:146: recipe for target 'sub-make' failed
    make[2]: *** [sub-make] Error 2
    Makefile:8: recipe for target 'all' failed
    make[1]: *** [all] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-4.3.0-kali1-686-pae'
    Makefile:130: recipe for target 'vmhgfs.ko' failed
    make: *** [vmhgfs.ko] Error 2
    make: Leaving directory '/tmp/modconfig-FZpmhZ/vmhgfs-only'

    The filesystem driver (vmhgfs module) is used only for the shared folder
    feature. The rest of the software provided by VMware Tools is designed to work
    independently of this feature.

  6. 6# sysALong (不用社工我那么累,我HLJ的!博客:gdd.gd) | 2016-03-16 11:13

    @Pany自留地   gan xie pengyou de hui da .  dan shi  chu xian cuo wu..

    正在读取状态信息... 完成      
    fuse is already the newest version (2.9.4-1).
    fuse 已设置为手动安装。
    有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
    因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
    包尚未被创建或是它们已被从新到(Incoming)目录移出。
    下列信息可能会对解决问题有所帮助:

    下列软件包有未满足的依赖关系:
    open-vm-tools-desktop : 依赖: libatkmm-1.6-1 (>= 2.22.1) 但是它将不会被安装
                             依赖: libcairomm-1.0-1 (>= 1.6.4) 但是它将不会被安装
                             依赖: libglibmm-2.4-1c2a (>= 2.42.0) 但是它将不会被安装
                             依赖: libgtkmm-2.4-1c2a (>= 1:2.24.0) 但是它将不会被安装
                             依赖: libpangomm-1.4-1 (>= 2.27.1) 但是它将不会被安装
                             依赖: libsigc++-2.0-0c2a (>= 2.2.0) 但是它将不会被安装
    E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

  7. 7# Pany自留地 (‮) | 2016-03-16 11:22

    @sysALong 试试用vm自带的perl安装脚本 加-d参数

  8. 8# sysALong (不用社工我那么累,我HLJ的!博客:gdd.gd) | 2016-03-16 11:31

    @Pany自留地  白费。。。。。 已经崩溃。。。。 啥招都木有了。。。。我又从新回复到最初最初的快照 然后安装,最终现实成功,但是 实际还是没成功。。。。

  9. 9#
    回复此人 感谢
    纷纭 (:-)) | 2016-03-16 11:52

    楼主看这里:
    首先更新系统到kali-rolling
    cat << EOF > /etc/apt/sources.list
    deb http://http.kali.org/kali kali-rolling main non-free contrib
    EOF

    apt-get update
    apt-get dist-upgrade # get a coffee, or 10.
    reboot


    之后 安装vm tools

    apt-get update
    apt-get install open-vm-tools-desktop fuse
    reboot


    ps :  若下载速度慢,请使用国内kali源

你可能感兴趣的:(TOOL)