内核已经更新,版本,kernel-devel 还是原来的,而且 kernels 目录没有该文件, 解决方法

内核源代码安装在/usr/src/kernels/下。内核-devel是要安装的包。

为了提供问题的解决方案,出现问题的原因是安装的内核很旧,而且内核-devel在存储库中有更新。因此,安装ker内尔-devel将安装新内核的源代码,因此vmware tools配置脚本无法找到源代码。有两种可能的解决方案。

  1. Update the kernel so that both kernel and kernel-devel are new.

    sudo yum upgrade

Reboot so that new kernel is loaded and then run vmware tools config script.

  1. Updating kernel is not always feasible. If that is the case install kernel-devel version that is same as the installed kernel version.

    sudo yum install "kernel-devel-uname-r == $(uname -r)"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章