由于依赖关系,无法在 RHEL 上安装任何软件包

由于依赖关系,无法在 RHEL 上安装任何软件包

我正在尝试安装软件包,但不断收到依赖错误。

我已经安装了 EPEL、IUS、REMI 存储库。

例子:

yum install gcc

我得到

Error: Package: devtoolset-2-gcc-4.8.2-15.1.el6.x86_64 (slc6-devtoolset) 
requires: glibc-devel >= 2.2.90-12   (and other dependencies)

当我尝试安装 glibc (或其他依赖项)时

yum install glibc-devel*

我明白了

no package glibc-devel* available.  Nothing to do.


yum list installed |grep glibc* 

不显示安装任何 glibc-devel。

RHEL 版本 = 2.6.32-358.el6.x86_64

[root@localhost yum.repos.d]# yum repolist all
Loaded plugins: product-id, refresh-packagekit, replace, security, subscription-
              : manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                        repo name                          status
InstallMedia                   Red Hat Enterprise Linux 6.4       disabled
epel                           Extra Packages for Enterprise Linu enabled: 11,141
epel-debuginfo                 Extra Packages for Enterprise Linu disabled
epel-source                    Extra Packages for Enterprise Linu disabled
epel-testing                   Extra Packages for Enterprise Linu disabled
epel-testing-debuginfo         Extra Packages for Enterprise Linu disabled
epel-testing-source            Extra Packages for Enterprise Linu disabled
ius                            IUS Community Packages for Enterpr enabled:    232
ius-archive                    IUS Community Packages for Enterpr disabled
ius-archive-debuginfo          IUS Community Packages for Enterpr disabled
ius-archive-source             IUS Community Packages for Enterpr disabled
ius-debuginfo                  IUS Community Packages for Enterpr disabled
ius-dev                        IUS Community Packages for Enterpr enabled:     25
ius-dev-debuginfo              IUS Community Packages for Enterpr disabled
ius-dev-source                 IUS Community Packages for Enterpr disabled
ius-source                     IUS Community Packages for Enterpr disabled
ius-testing                    IUS Community Packages for Enterpr disabled
ius-testing-debuginfo          IUS Community Packages for Enterpr disabled
ius-testing-source             IUS Community Packages for Enterpr disabled
pgdg93                         PostgreSQL 9.3 6Server - x86_64    enabled:    256
pgdg93-source                  PostgreSQL 9.3 6Server - x86_64 -  disabled
remi                           Les RPM de remi pour Enterprise Li disabled
remi-debuginfo                 Les RPM de remi pour Enterprise Li disabled
remi-php55                     Les RPM de remi de PHP 5.5 pour En disabled
remi-php55-debuginfo           Les RPM de remi de PHP 5.5 pour En disabled
remi-php56                     Les RPM de remi de PHP 5.6 pour En disabled
remi-php56-debuginfo           Les RPM de remi de PHP 5.6 pour En disabled
remi-test                      Les RPM de remi en test pour Enter disabled
remi-test-debuginfo            Les RPM de remi en test pour Enter disabled
rhel-source                    Red Hat Enterprise Linux 6Server - disabled
rhel-source-beta               Red Hat Enterprise Linux 6Server B disabled
rpmforge                       RHEL 6Server - RPMforge.net - dag  enabled:  4,718
rpmforge-extras                RHEL 6Server - RPMforge.net - extr disabled
rpmforge-testing               RHEL 6Server - RPMforge.net - test disabled
slc6-devtoolset                Scientific Linux CERN 6 (SLC6) - D enabled:    458
slc6-devtoolset-debug          Scientific Linux CERN 6 (SLC6) - D disabled
slc6-devtoolset-source         Scientific Linux CERN 6 (SLC6) - D disabled
slc6-devtoolset-testing        Scientific Linux CERN 6 (SLC6) - D disabled
slc6-devtoolset-testing-debug  Scientific Linux CERN 6 (SLC6) - D disabled
slc6-devtoolset-testing-source Scientific Linux CERN 6 (SLC6) - D disabled
slc6-os                        Scientific Linux CERN 6 (SLC6) bas disabled
webtatic                       Webtatic Repository 6Server - x86_ enabled:    383
webtatic-debuginfo             Webtatic Repository 6Server - x86_ disabled
webtatic-source                Webtatic Repository 6Server - x86_ disabled
repolist: 17,213

答案1

您应该gcc从以下位置安装该软件包

slc6-os.repo或者slc6-updates.repo

然后依赖项也将从那里提供,而不是使用版本devtoolset

Yum 存储库条目

/etc/yum.repos.d/slc6-os.repo
/etc/yum.repos.d/slc6-updates.repo
/etc/yum.repos.d/slc6-extras.repo

安装说明

地点:

slc6-os.repo
slc6-updates.repo
slc6-extras.repo

导入 GPG 密钥:

rpm --import http://linuxsoft.cern.ch/cern/slc6X/x86_64/RPM-GPG-KEY-cern

答案2

glibc-devel 应该是基础存储库的一部分,您可能与您的存储库有一些冲突。

尝试禁用您添加的所有额外存储库,然后重试。

你还应该检查一下优先事项插件,可以防止第 3 方存储库替换基础软件包,或防止基础/更新替换第 3 方软件包。

相关内容