使用内核标头安装VMware Player时出现多个问题
对不起,很长的问题
首先是一些背景:我在笔记本电脑上运行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捆绑软件
sudo sh VMware-Player-6.0.2-1744117.x86_64.bundle
之后,我尝试通过搜索底座并单击其图标来运行VMWare Player。 我得到这个窗口
我搜索了问题,发现许多人遇到了类似的问题,但有很多不同的解决方案。 不幸的是,没有人对我有用。
一种是通过此命令安装标头
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
再次没有运气。 Failed to setup build environment.
然后我尝试了这个解决方案我完全糊涂然后因为终端显示,路径/lib/modules/$(uname -r)/build/include/linux
ie
/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
我对我的系统出了什么问题感到困惑,现在该怎么办? 谢谢!
安装的内核是绝对的。 它的头文件不再存在于存储库中。 因此,最好的办法是将内核更新到存储库中的最新版本。
更新内核, linux-generic
是一个元数据包,用于保存内核及其头文件的当前版本:
sudo apt-get update sudo apt-get upgrade sudo apt-get install linux-generic
出于某种原因,升级时未安装此元数据。 如果它不起作用,那么使用Synaptic安装其头文件或升级/安装到最后一个内核版本(搜索“linux”)。