【问题标题】:Can't update Centos 6 kernel with yum, uname -r is still showing the old versionyum 无法更新 Centos 6 内核,uname -r 仍然显示旧版本
【发布时间】:2012-07-20 10:48:38
【问题描述】:

我发送了这些命令:

# yum install kernel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centosr3.centos.org
 * extras: centosg4.centos.org
 * updates: centosg4.centos.org
Setting up Install Process
Package kernel-2.6.32-279.2.1.el6.i686 already installed and latest version
Nothing to do

# yum install kernel-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centosr3.centos.org
 * extras: centosg4.centos.org
 * updates: centosg4.centos.org
Setting up Install Process
Package kernel-devel-2.6.32-279.2.1.el6.i686 already installed and latest version
Nothing to do

#uname -r
2.6.32-042stab057.1
#uname -a
Linux asteriskserver 2.6.32-042stab057.1 #1 SMP Fri Jun 22 02:17:07 MSD 2012 i686 i686 i386 GNU/Linux

如您所见,它仍在运行旧版本的 2.6.32 内核,而 yum 说我安装了另一个版本。 我重启了系统,是vps。

【问题讨论】:

    标签: kernel centos rpm yum centos6


    【解决方案1】:

    在服务器虚拟化中使用的大多数 VPS 环境中,例如 openvz,虚拟服务器可以直接访问主机内核以提高性能,因此您无法更新内核版本,因为您与所有其他虚拟机共享主机内核主人。

    如果您的情况不是这样,并且您的 Hoster 没有这样做,那么您的引导加载程序可能有问题。在大多数情况下,安装的引导加载程序是 GRUB。看看GRUB chapter in the CentOS-guide

    【讨论】:

    • 啊,好的,我目前正在编译 dahdi 源代码,它说您似乎没有安装 2.6.32-042stab057.1 内核的源代码 有一种方法可以安装自定义版本内核开发?
    猜你喜欢
    • 1970-01-01
    • 2013-12-28
    • 2018-10-10
    • 1970-01-01
    • 2013-12-08
    • 2017-07-24
    • 1970-01-01
    • 2020-10-23
    • 1970-01-01
    相关资源
    最近更新 更多