在 CentOS 上安装 kernel-devel 的问题

Ric*_*nop 5 virtualbox centos

所以我试图在运行 CentOS 的 VirtualBox Vm 中安装 Guest Additions。

虽然我收到此错误:

The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.32-279.5.2.el6.x86_64
Run Code Online (Sandbox Code Playgroud)

当我尝试运行错误中提到的 yum install 命令时,我得到:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ox.ac.uk
 * epel: mirror.nl.leaseweb.net
 * extras: centos.serverspace.co.uk
 * updates: centos.serverspace.co.uk
Setting up Install Process
No package kernel-devel-2.6.32-279.5.2.el6.x86_64 available.
Error: Nothing to do
Run Code Online (Sandbox Code Playgroud)

知道如何解决这个问题吗?

Den*_*ker 3

centos 发布内核更新并非不可能。运行yum install kernel-develyum update kernel. 然后重新启动到较新的内核。