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

百般思念 提交于 2020-02-18 21:52:21

内核源代码安装在/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)"
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!