1. 程式人生 > >錯誤:軟體包:glibc-headers-2.17-222.el7.x86_64 需要:kernel-headers

錯誤:軟體包:glibc-headers-2.17-222.el7.x86_64 需要:kernel-headers

centos7虛擬機器更新系統庫出現:

錯誤:軟體包:glibc-headers-2.17-222.el7.x86_64 (base)
          需要:kernel-headers
錯誤:軟體包:glibc-headers-2.17-222.el7.x86_64 (base)
          需要:kernel-headers >= 2.2.1

解決辦法:

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