VMware Workstation的Ubuntu虚拟机中安装VMWare Tools

期间,重新安装VMWare Tools,结果又遇到之前就遇到的那个提示:

Enter the path to the kernel header files...?

1.参考:

Error while validating for Ubuntu 12.10 Kernel headers

去安装对应版本的linux source,结果是本身就已经安装好了:

1

2

3

4

5

6

7

8

9

10

crifan@ubuntu:~$ sudo apt-get install linux-headers-$(uname -r)

Reading package lists... Done

Building dependency tree      

Reading state information... Done

linux-headers-3.8.0-27-generic is already the newest version.

The following packages were automatically installed and are no longer required:

  dkms fakeroot g++-4.7 libdumbnet1 libstdc++6-4.7-dev zerofree

Use 'apt-get autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

crifan@ubuntu:~$

2. sudo apt-get update&&sudo apt-get dist-upgrade

3.可以先去看看自己此处是否对应目录已有头文件,结果是有的:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

crifan@ubuntu:~$ ls /usr/src/linux-

linux-headers-3.8.0-19/         linux-headers-3.8.0-27/         linux-source-3.2.0/

linux-headers-3.8.0-19-generic/ linux-headers-3.8.0-27-generic/ linux-source-3.2.0.tar.bz2

crifan@ubuntu:~$ ls</

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值