抱歉,问题有点长。
首先是一些背景:我之前在我的笔记本上运行的是Ubuntu 13.10 x64。几周前我刚升级到了14.04版本。目前我系统上的
我在网上搜索了这个问题,并发现很多人遇到了类似的问题,但是有很多不同的解决方案。不幸的是,对我来说都没有起作用。
一种方法是通过以下命令来安装头文件:
这很吓人。
我对我的系统出了什么问题以及现在该怎么办完全感到困惑。 谢谢!
首先是一些背景:我之前在我的笔记本上运行的是Ubuntu 13.10 x64。几周前我刚升级到了14.04版本。目前我系统上的
uname -a
命令的输出结果是:
Linux ubuntu 3.11.0-19-generic #33-Ubuntu SMP Tue Mar 11 18:48:34 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
现在,我下载了VMware-Player-6.0.2-1744117.x86_64.bundle
并尝试在运行Ubuntu 14.04 x64的笔记本上安装它。
我按照通常的方式安装了VMWare-Player bundle,使用以下命令:
sudo sh VMware-Player-6.0.2-1744117.x86_64.bundle
之后,我尝试通过搜索栏找到VMWare Player并点击其图标来运行它。但是我得到了这个窗口:
![Kernel Headers not found](https://istack.dev59.com/RBAJV.webp)
一种方法是通过以下命令来安装头文件:
sudo apt-get install build-essential linux-headers-$(uname -r)
我尝试了一下,得到了以下输出。Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-3.11.0-19-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-3.11.0-19-generic' has no installation candidate
这很吓人。
然后我尝试了另一种解决方案。
sudo vmware-modconfig --console --install-all
再次没运气。设置构建环境失败。
然后我尝试了这个解决方案
那时我完全困惑了,因为终端显示了路径/lib/modules/$(uname -r)/build/include/linux
即
/lib/modules/3.11.0-19-generic/build/include/linux
不存在!
然后我执行了以下命令来消除我的疑虑:
$ cd /lib/modules
$:/lib/modules$ ls
3.11.0-19-generic 3.13.0-24-generic
$:/lib/modules$ ls 3.11.0-19-generic 3.13.0-24-generic
3.11.0-19-generic:
initrd modules.alias modules.builtin modules.dep modules.devname modules.softdep modules.symbols.bin
kernel modules.alias.bin modules.builtin.bin modules.dep.bin modules.order modules.symbols updates
3.13.0-24-generic:
build
我对我的系统出了什么问题以及现在该怎么办完全感到困惑。 谢谢!