centos7安装 gcc编译环境 出现error:软件包:glibc-headers-2.17-222.el7.x86_64

  • Post author:
  • Post category:其他


centos7安装 gcc编译环境 出现error:软件包:glibc-headers-2.17-222.el7.x86_64

Centos 7 安装gcc或更新系统库出现如下错误:

--> Finished Dependency Resolution
Error: Package: glibc-headers-2.17-326.el7_9.x86_64 (updates)
           Requires: kernel-headers >= 2.2.1
Error: Package: glibc-headers-2.17-326.el7_9.x86_64 (updates)
           Requires: kernel-headers
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

解决方案

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



版权声明:本文为yunweigo原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。