CentOS 5.7 Missing Dependency :kernel-header解决方法

CentOS 5.7 Missing Dependency :kernel-header解决方法

错误信息如下:

glibc-headers-2.5-81.el5_8.2.x86_64 from updates has depsolving problems
--> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-81.el5_8.2.x86_64 (updates)
glibc-headers-2.5-81.el5_8.2.x86_64 from updates has depsolving problems
--> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-81.el5_8.2.x86_64 (updates)
Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-81.el5_8.2.x86_64 (updates)
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-81.el5_8.2.x86_64 (updates)
        You could try using --skip-broken to work around the problem
        You could try running: package-cleanup --problems
        package-cleanup --dupes
        rpm -Va --nofiles --nodigest

 

安装kernel-headers即可解决问题

wget http://vault.centos.org/5.7/os/x86_64/CentOS/kernel-headers-2.6.18-274.el5.x86_64.rpm

rpm -ivh kernel-headers-2.6.18-274.el5.x86_64.rpm

相关推荐