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

由于缺少头文件导致的,只要安装linux header即可:
1.先更新软件源:
先备份软件源sources.list文件,然后修改sources.list文件,在终端输入:
- leafpad /etc/apt/sources.list
然后添加以下较快的源:
- #中科大kali源
- deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
- deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
- deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
- #阿里云kali源
- deb http://mirrors.aliyun.com/kali kali main non-free contrib
- deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
- deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free
然后保存,再到终端更新:
- apt-get update #刷新系统
- apt-get dist-upgrade #安装更新
然后执行以下命令:
- 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?
第一次用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的更多相关文章
- 解决 安装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
- 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 ...
- 如何处理错误消息Please install the Linux kernel header files
Please install the Linux kernel "header" files matching the current kernel 当我启动minilkube时遇 ...
- (转)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, ...
- 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 ...
- 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 ...
- 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 ...
- 解决centos7安装wmwaretools找不到kernel header
解决centos6安装wmwaretools找不到kernel header http://www.centoscn.com/CentosBug/softbug/2015/0525/5531.html ...
- [转载]C header files matching your running
原文地址:C header files matching your running kernel were not found.作者:[Opser]小默 c header files matching ...
随机推荐
- SQL基本操作——约束
我们将主要探讨以下几种约束: 1.NOT NULL 2.UNIQUE 3.PRIMARY KEY 4.FOREIGN KEY 5.CHECK 6.DEFAULT SQL NOTNULL约束:NOT N ...
- C# ADO.NET动态数据的增删改查(第五天)
一.插入登录框中用户输入的动态数据 /// <summary> /// 添加数据 /// </summary> /// <param name="sender& ...
- Centos6.4 安装bind dns 服务器
一.介绍 1)Centos6.4 64bit minimal 2) bind-9.8.2-0.30.rc1.el6_6.3.x86_64 二.安装 $ yum install -y bind bind ...
- (转)Hibernate框架基础——cascade属性
http://blog.csdn.net/yerenyuan_pku/article/details/52760010 我们以部门和员工的关系为例讲解一对多关联关系映射时,删除部门时,如果部门有关联的 ...
- bat配置JDK环境变量
最近总是部署服务器,总是要安装配置JDK,今天就想写个bat来配置JDK的环境变量,首先介绍点bat的小知识 @符号后面的命令不会显示在terminal上 例如: @echo运行时 隐藏命令(不在te ...
- ESLint =》tslint.json
结论:将ESLint提示注意()里面的规则属性在tslint.json中"rules": { } 里设置为false 1.ES6: ESLint提示"Require Ob ...
- js里的深度克隆
ES6 数组克隆 let arr = [1,2,3,4,5]; let arr1 = [...a]; arr1 = ["a","b","c" ...
- 原型链、构造函数、箭头函数、se6数组去重
原型链 例子如下: var arr = [1, 2, 3]; 其原型链为:arr ----> Array.prototype ----> Object.prototype ----> ...
- (C/C++学习)11.随机数组的快速查找
说明:利用随机函数生成一个随机数组,然后对数组进行排列,再利用二分查找快速查找一个数. 一.生成随机数组 time_t ts; //等价于long ts; unsigned int num = tim ...
- Redis防护建议
1.Redis本身防护 (1)不要使用默认端口(6379) (2)增加Redis用户名和密码 (3)在Redis绑定指定IP访问(位置配置文件[redis.config]中的bind节点)2.L ...