安装VMWare Tools出现提示:Enter the path to the kernel header files for the 3.18.0-kali1-686-pae kerne?

2015年02月15日 渗透测试 评论 1 条 阅读 4,421 次
 

由于缺少头文件导致的,只要安装linux header即可:

1.先更新软件源:

先备份软件源sources.list文件,然后修改sources.list文件,在终端输入:

  1. leafpad /etc/apt/sources.list

然后添加以下较快的源:

  1. #中科大kali源
  2. deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
  3. deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
  4. deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
  5. #阿里云kali源
  6. deb http://mirrors.aliyun.com/kali kali main non-free contrib
  7. deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
  8. deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free

然后保存,再到终端更新:

  1. apt-get update               #刷新系统
  2. apt-get dist-upgrade      #安装更新

然后执行以下命令:

  1. sudo apt-get install linux-headers-$(uname -r)

然后再安装VMware Tools。

centos 7 The path "" is not a valid path to the 3.10.0-229.el7.x86_64 kernel headers. Would you like to change it?

2015-04-22 04:07

第一次用centos7,由于版本太新,所以资料很少,安装过程出现了很多问题,用了很多时间解决过后记录下来,帮助有需要的人。

安装vmtools 时提示The path "" is not a valid path to the 3.10.0-229.el7.x86_64 kernel headers. Would you like to change it?[yes]

原因:没有找到kernel的头文件。

解决法案:/usr/src 目录下有要求的kernel源文件,没有的话使用命令 yum -y install kernel-devel 

然后在Enter the path to the kernel header files for the 3.10.0-229.el7.x86_64 kernel?这一步输入内核头文件的目录,我的是/usr/src/kernels /3.10.0-229.el7.x86_64/include。

此时如果你的vmtools版本比较旧的话,还是会提示not a valid path。这是因为3.x版本的内核version.h的路径变了,导致vmtools无法找到。

用命令 sudo ln -s <内核头文件目录>/generated/uapi/linux/version.h <内核头文件目录>/include/linux/version.h

我的是 sudo ln -s /usr/src/kernels/3.10.0-229.el7.x86_64/include/generated/uapi/linux/version.h /usr/src/kernels/3.10.0-229.el7.x86_64/include/linux/version.h

然后再次运行vmtools安装程序此问题不在出现。

yum -y install kernel-devel-3.10.0-327.el7.x86_64
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 kernel-devel.x86_64.0.3.10.0-327.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

================================================================================
 Package              架构           版本                    源            大小
================================================================================
正在安装:
 kernel-devel         x86_64         3.10.0-327.el7          base          11 M

事务概要
================================================================================
安装  1 软件包

总下载量:11 M
安装大小:33 M
Downloading packages:
No Presto metadata available for base
kernel-devel-3.10.0-327.el7.x86_64.rpm                                                                                                           |  11 MB  00:00:10
Running transaction check
Running transaction test

Enter the path to the kernel header files for the 3.18.0-kali1-686-pae kerne vmware tool的更多相关文章

  1. 解决 安装VMwanre tools时 Enter the path to the kernel header files for the 3.10.0-862.14.4.el7.x86_64 kernel

    1.使用ctrl+z停止安装vmtools安装 2.然后yum升级kernel-devel yum -y install kernel-devel

  2. ubuntu安装VMware Tools报错enter the path to the kernel header files

    $ sudo apt-get install build-essential linux-headers-$(uname -r) cd /lib/modules/$(uname -r)/build/i ...

  3. 如何处理错误消息Please install the Linux kernel header files

    Please install the Linux kernel "header" files matching the current kernel 当我启动minilkube时遇 ...

  4. (转)Ubuntu 12.04 LTS安装VMware Tools实现linux和window 互相复制:无法找到kernel header path的问题

    Ubuntu 12.04 LTS安装VMware Tools无法找到kernel header path的问题   ubuntuvmware Ubuntu 12.04 安装 VMware Tools, ...

  5. Vmware由于centos升级内核不可运行(C header files matching your running kernel were not found)的解决方案

    C header files matching your running kernel were not found. Refer to your distribution's documentati ...

  6. The path is not a valid path to the xxx kernel header

    在安装vmtools时无意中出现了这样的问题 1.gcc错误 Searching for GCC- The path "" is not valid path to the gcc ...

  7. vmware + centos 7安装vmtools时提示The path "" is not a valid path to the xxx kernel header

    在安装vmtools时无意中出现了这样的问题 1.gcc错误 Searching for GCC- The path "" is not valid path to the gcc ...

  8. 解决centos7安装wmwaretools找不到kernel header

    解决centos6安装wmwaretools找不到kernel header http://www.centoscn.com/CentosBug/softbug/2015/0525/5531.html ...

  9. [转载]C header files matching your running 

    原文地址:C header files matching your running kernel were not found.作者:[Opser]小默 c header files matching ...

随机推荐

  1. 用Grunt进行CSS文件压缩

    假设你的项目的CSS文件全部放在项目目录下名为css的文件夹中,现在将它压缩合并成一个名为main-min.css的文件,放在css-min文件夹下. (1)首先保证机器安装了node.js. (2) ...

  2. (转)Java任务调度框架Quartz入门教程指南(四)Quartz任务调度框架之触发器精讲SimpleTrigger和CronTrigger、最详细的Cron表达式范例

    http://blog.csdn.net/zixiao217/article/details/53075009 Quartz的主要接口类是Schedule.Job.Trigger,而触发器Trigge ...

  3. Uncaught TypeError: str.replace is not a function

    在做审核页面时,点击审核通过按钮不执行 后来F12控制台查看发现有报错 是因为flisnullandxyzero未执行 然后找出这个方法,此方法为公共方法,将这个方法复制出来 然后使用console. ...

  4. POJ 2823 Sliding Window & Luogu P1886 滑动窗口

    Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 66613   Accepted: 18914 ...

  5. C++实现双人枪战游戏

    //单机版枪战游戏,喜欢就拿走,把赞留下//by floatiy #include<iostream> #include<cstdio> #include<windows ...

  6. Linux - VMware和Centos安装

    目录 Linux - VMware和Centos安装 选择性 下载centos系统ISO镜像 安装虚拟机VMware虚拟机 1. 准备vmware软件 2. 解压软件包, 当前选择vm12 3. vm ...

  7. Django-cookie与session操作

    添加cookie: def login(req): if req.method=="POST": uf = UserInfoForm(req.POST) if uf.is_vali ...

  8. hdu2014 青年歌手大奖赛_评委会打分【C++】

    青年歌手大奖赛_评委会打分 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Tot ...

  9. 【Codeforces 126B】Password

    [链接] 我是链接,点我呀:) [题意] 给你一个字符串s 让你从中选出来一个字符串t 这个字符串t是s的前缀和后缀 且在除了前缀和后缀之外的中间部位出现过. 且要求t的长度最长. 让你输出这个字符串 ...

  10. java后台处理解析json字符串的两种方式

    简单说一下背景 上次后端通过模拟http请求百度地图接口,得到的是一个json字符串,而我只需要其中的某个key对应的value. 当时我是通过截取字符串取的,后来觉得不太合理,今天整理出了两种处理解 ...