虚拟机装ubuntu遇到的错误

vmware安装ubuntu13版本的vm tools时 遇到:

 

 

Searching for a valid kernel header path...
The path "" is not a valid path to the 3.5.0-23-generic kernel headers.
Would you like to change it? [yes]

 

 

 

解决方法:

 

一、安装build-essential和linux-headers

$ sudo apt-get install build-essential linux-headers-`uname -r`
或者
$ sudo apt-get install build-essential 

$ sudo apt-get install linux-headers-`uname -r`

 

二、
$ sudo -i
# cd /lib/modules/3.7.0-7-generic/build/include

注:3.7.0-7-generic替换为 uname -r 命令显示的内容
# cp ./generated/uapi/linux/version.h linux/version.h

三、

$ sudo ./vmware-install.pl

你可能感兴趣的:(ubuntu)