Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-01 08:20:04 10月04日 Update

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!

Tags: Questions files learning code commands methods more help practical next information regular meetings articles theories directories knowledge articles websites materials follow Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MySQL Docker OPPO Reno Shulou Information