CentOS Yum Installation lack of kernel-headers solutions

Source: Internet
Author: User
Tags centos

CentOS appears missing Dependency:kernel-header solution, note here

The error message is as follows:

The code is as follows:

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

Installing kernel-headers can solve the problem as follows

The code is as follows:

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

Similarly, often encounter Linux installation software when the hint less file, how to know the missing files belong to which package? What commands to view?

For example:/lib/ld-linux.so.2:bad ELF interpreter: No file or directory

How to determine which package to know ld-linux.so.2 file belongs to, before you can install with Yum, use the following command:

The code is as follows:

Yum provides "*/ld-linux.so.2"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.