全力输出

全力输出

我正在尝试在 CentOS 7.6.1810 上安装gcc-c++。这是错误输出:

Error: Package: glibc-2.17-260.el7.i686 (centos_7_x64_32)
   Requires: glibc-common = 2.17-260.el7
   Installed: glibc-common-2.17-260.el7_6.3.x86_64 (@updates)
       glibc-common = 2.17-260.el7_6.3
   (cut)
   Available: glibc-common-2.17-260.el7.x86_64 (centos_7_x64_32)
       glibc-common = 2.17-260.el7

似乎yum无法识别glibc-common-2.17-260.el7_6.3.x86_64为与 相同(或等效)glibc-common-2.17-260.el7_6.3.x86_64。我该怎么做才能告诉它遵守此已安装的版本,或者我该如何重新安装它centos_7_x64_32(显然我不能先删除 glibc-common)。

全力输出

Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.8.5-36.el7 will be installed
--> Processing Dependency: gcc = 4.8.5-36.el7 for package: gcc-c++-4.8.5-36.el7.x86_64
--> Processing Dependency: libstdc++-devel = 4.8.5-36.el7 for package: gcc-c++-4.8.5-36.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-c++-4.8.5-36.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-c++-4.8.5-36.el7.x86_64
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-36.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-36.el7 for package: gcc-4.8.5-36.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-36.el7.x86_64
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package libstdc++-devel.x86_64 0:4.8.5-36.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-36.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-260.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-260.el7 for package: glibc-devel-2.17-260.el7.x86_64
--> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-devel-2.17-260.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-260.el7.x86_64
--> Running transaction check
---> Package glibc.i686 0:2.17-260.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-260.el7 for package: glibc-2.17-260.el7.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-260.el7.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-260.el7.i686
---> Package glibc-headers.x86_64 0:2.17-260.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-260.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-260.el7.x86_64
--> Running transaction check
---> Package glibc.i686 0:2.17-260.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-260.el7 for package: glibc-2.17-260.el7.i686
---> Package kernel-headers.x86_64 0:3.10.0-957.1.3.el7 will be installed
---> Package nss-softokn-freebl.i686 0:3.36.0-5.el7_5 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.17-260.el7.i686 (centos_7_x64_32)
           Requires: glibc-common = 2.17-260.el7
           Installed: glibc-common-2.17-260.el7_6.3.x86_64 (@updates)
               glibc-common = 2.17-260.el7_6.3
           Available: glibc-common-2.17-78.el7.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-78.el7
           Available: glibc-common-2.17-105.el7.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-105.el7
           Available: glibc-common-2.17-106.el7_2.1.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-106.el7_2.1
           Available: glibc-common-2.17-106.el7_2.4.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-106.el7_2.4
           Available: glibc-common-2.17-106.el7_2.6.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-106.el7_2.6
           Available: glibc-common-2.17-106.el7_2.8.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-106.el7_2.8
           Available: glibc-common-2.17-157.el7.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-157.el7
           Available: glibc-common-2.17-157.el7_3.1.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-157.el7_3.1
           Available: glibc-common-2.17-157.el7_3.2.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-157.el7_3.2
           Available: glibc-common-2.17-157.el7_3.4.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-157.el7_3.4
           Available: glibc-common-2.17-157.el7_3.5.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-157.el7_3.5
           Available: glibc-common-2.17-196.el7.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-196.el7
           Available: glibc-common-2.17-196.el7_4.2.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-196.el7_4.2
           Available: glibc-common-2.17-222.el7.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-222.el7
           Available: glibc-common-2.17-260.el7.x86_64 (centos_7_x64_32)
               glibc-common = 2.17-260.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

答案1

错误:软件包:glibc-2.17-260.el7。i686 (我强调)

您正在尝试安装 i686 变体,而不是 x86_64 变体。您需要满足 i686 要求或安装 x86_64 软件包。

答案2

不知何故,您没有可用的“更新”存储库。您要么禁用了它,要么您正在使用没有它的私有存储库/镜像。

相关内容