yum安装提示inferior-architecture异常
yum是一个用于centos操作系统的包管理器,它允许用户安装、更新、删除和管理软件包
env
- centos8.4
异常
[root@centos8-51 ~]# yum install -y gcc gcc-c++ make autoconf zlib-devel openssl-devel libffi-devel readline-devel
Last metadata expiration check: 5:41:04 ago on Tue 20 Aug 2024 09:28:33 AM UTC.
Error:
Problem 1: libverto-devel-0.3.0-5.el8.i686 has inferior architecture
- package krb5-devel-1.18.2-14.el8.x86_64 requires libverto-devel, but none of the providers can be installed
- package libverto-devel-0.3.0-5.el8.x86_64 requires libverto(x86-64) = 0.3.0-5.el8, but none of the providers can be installed
- cannot install both libverto-0.3.0-5.el8.x86_64 and libverto-0.3.2-2.el8.x86_64
- package openssl-devel-1:1.1.1k-5.el8_5.x86_64 requires krb5-devel(x86-64), but none of the providers can be installed
- package libverto-libev-0.3.2-2.el8.x86_64 requires libverto(x86-64) = 0.3.2-2.el8, but none of the providers can be installed
- cannot install the best candidate for the job
- problem with installed package libverto-libev-0.3.2-2.el8.x86_64
Problem 2: 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-211.el8.x86_64
- package glibc-gconv-extra-2.28-211.el8.x86_64 requires glibc(x86-64) = 2.28-211.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-211.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@centos8-51 ~]#
关键信息:
- cannot install the best candidate for the job
- problem with installed package libverto-libev-0.3.2-2.el8.x86_64
- glibc-2.28-164.el8.i686 has inferior architecture //包和架构不对等
- cannot install both glibc-2.28-164.el8.x86_64 and glibc-2.28-211.el8.x86_64
- package glibc-gconv-extra-2.28-211.el8.x86_64 requires glibc(x86-64) = 2.28-211.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-211.el8.x86_64
分析问题:
存在异常包或者冲突的包,导致新的软件包安装依赖检查不通过,只需要卸载掉异常、冲突的包即可
解决
1.erase packge
yum remove -y libverto-libev glibc-gconv-extra
2.reinstall again
yum install -y gcc gcc-c++ make autoconf zlib-devel openssl-devel libffi-devel readline-devel