我下载的镜像是最近的,疑似我下载的镜像太新了,比源里面的还新
# yum install gcc
上次元数据过期检查:0:00:05 前,执行于 2022年07月20日 星期三 04时47分06秒。
错误:
问题: package gcc-8.5.0-4.el8_5.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires libpthread.so.0, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires libdl.so.2, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires libm.so.6, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires libresolv.so.2, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires librt.so.1, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires libutil.so.1, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires libBrokenLocale.so.1, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires libanl.so.1, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.i686 requires libthread_db.so.1, but none of the providers can be installed
- package glibc-devel-2.28-164.el8.x86_64 requires glibc = 2.28-164.el8, but none of the providers can be installed
- glibc-2.28-164.el8.i686 has inferior architecture
- cannot install both glibc-2.28-164.el8.x86_64 and glibc-2.28-206.el8.x86_64
- package glibc-gconv-extra-2.28-206.el8.x86_64 requires glibc(x86-64) = 2.28-206.el8, but none of the providers can be installed
- cannot install the best candidate for the job
- problem with installed package glibc-gconv-extra-2.28-206.el8.x86_64
(尝试在命令行中添加 '--allowerasing' 来替换冲突的软件包 或 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)
然后按照提示加上 --allowerasing,降级就能解决了 (小心风险)
yum install gcc --allowerasing