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