Linux下VMware虚拟机启动时报Kernel headers for version 4.x-xxxx were not found. If you installed them[…]的错误的解决方法

Table of Contents

问题表现

在Linux下安装完VMware虚拟机后启动虚拟机报:Kernel headers for version 4.x-xxxx were not found. If you installed them[…],具体报错如下图所示。
2018-02-20 08-50-33屏幕截图.png

解决方法

安装系统内核对应版本的linux-headers
例如,我的系统的内核版本是4.14.19,操作系统是Archlinux,就执行如下命令来安装。

$ sudo pacman -S linux-headers

之后再根据命令提示选择与内核版本对应的linux-headers
Ubuntu和Fedora用户则使用各自的包管理工具安装正确的linux-headers版本

安装后再次启动VMware会看到如下提示。
2018-02-20 16-50-27屏幕截图.png
点击install并按要求输入管理员密码即可。

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Code