這篇文章主要介紹“如何解決CentOS下yum安裝缺少kernel-headers的問(wèn)題”,在日常操作中,相信很多人在如何解決CentOS下yum安裝缺少kernel-headers的問(wèn)題問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”如何解決CentOS下yum安裝缺少kernel-headers的問(wèn)題”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!
網(wǎng)站設(shè)計(jì)制作過(guò)程拒絕使用模板建站;使用PHP+MYSQL原生開(kāi)發(fā)可交付網(wǎng)站源代碼;符合網(wǎng)站優(yōu)化排名的后臺(tái)管理系統(tǒng);成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作收費(fèi)合理;免費(fèi)進(jìn)行網(wǎng)站備案等企業(yè)網(wǎng)站建設(shè)一條龍服務(wù).我們是一家持續(xù)穩(wěn)定運(yùn)營(yíng)了10余年的成都創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司。centos出現(xiàn)Missing Dependency :kernel-header 的解決方法,在此記下
錯(cuò)誤信息如下:
代碼如下:
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即可解決問(wèn)題,如下
代碼如下:
wget /tupian/20230522/kernel-headers-2.6.18-274.el5.x86_64.rpm
rpm -ivh kernel-headers-2.6.18-274.el5.x86_64.rpm
同理,經(jīng)常會(huì)遇到linux下安裝軟件時(shí)提示少文件,如何知道所缺少的文件屬于哪個(gè)包?用什么命令查看?
例如:/lib/ld-linux.so.2: bad ELF interpreter: 沒(méi)有那個(gè)文件或目錄
如何判斷知道ld-linux.so.2文件屬于哪個(gè)包,知道后才能用yum安裝,使用如下命令:
代碼如下:
yum provides "*/ld-linux.so.2"
到此,關(guān)于“如何解決CentOS下yum安裝缺少kernel-headers的問(wèn)題”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!