Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of lack of kernel-headers in yum installation under CentOS

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to solve the problem of lack of kernel-headers in yum installation under CentOS". In daily operation, I believe many people have doubts about how to solve the problem of lack of kernel-headers in yum installation under CentOS. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the question of "how to solve the problem of lack of kernel-headers in yum installation under CentOS". Next, please follow the editor to study!

Centos appears the solution of Missing Dependency: kernel-header, write down 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

Install kernel-headers to 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

By the same token, we often encounter prompts for fewer files when installing software under linux. How do we know which package the missing files belong to? What command do you use to check?

For example: / lib/ld-linux.so.2: bad ELF interpreter: there is no such file or directory

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

The code is as follows:

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

At this point, the study on "how to solve the problem of lack of kernel-headers in yum installation under CentOS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report