我最近在一台x86_64机器上安装了RHEL 7,而且yum在一些具有类似(奇怪)输出的软件包上失败了。
这里有一个例子,当试图安装gcc时:
Error: Package: gcc-4.8.5-11.el7.x86_64 (rhel-7-desktop-rpms)
Requires: cpp = 4.8.5-11.el7
Installed: cpp-4.8.5-14.el7.x86_64 (@anaconda/7.4)
cpp = 4.8.2-16.el7
cpp = 4.8.5-14.el7
Available: cpp-4.8.2-16.el7.x86_64 (rhel-7-desktop-rpms)
cpp = 4.8.2-16.el7
Available: cpp-4.8.2-16.2.el7_0.x86_64 (rhel-7-desktop-rpms)
cpp = 4.8.2-16.2.el7_0
Available: cpp-4.8.3-9.el7.x86_64 (rhel-7-desktop-rpms)
cpp = 4.8.2-16.el7
cpp = 4.8.3-9.el7
Available: cpp-4.8.5-4.el7.x86_64 (rhel-7-desktop-rpms)
cpp = 4.8.2-16.el7
cpp = 4.8.5-4.el7
Available: cpp-4.8.5-11.el7.x86_64 (rhel-7-desktop-rpms)
cpp = 4.8.2-16.el7
cpp = 4.8.5-11.el7以下是以下内容的输出:
数独野人
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,777
rhel-7-desktop-optional-rpms/7Client/x86_64 Red Hat Enterprise Linux 7 Desktop - Optional (RPMs) 12,365
rhel-7-desktop-rpms/7Client/x86_64 Red Hat Enterprise Linux 7 Desktop (RPMs) 11,673
repolist: 35,815我试过了
数独百货 sudo yum更新
发布于 2017-06-08 21:24:59
cpp-4.8.5-11是RHEL 7.3附带的版本,但cpp-4.8.5-14是RHEL 7.4版(我认为这仍在测试阶段)。“已安装: cpp-4.8.5-14.el7.x86_64 (@anaconda/ 7.4 )”表示已安装的版本是RHEL 7.4软件包。
因此,我猜您在RHEL7.4中使用了安装媒体,但是您连接到的存储库有RHEL7.3包。如果这是问题所在,您需要在/etc/yum.pos.d中为RHEL7.4存储库配置一个repo文件。
一种可能的方法是为您以前使用的安装介质复制ISO,并将其配置为本地存储库,直到通过您的网络可以获得RHEL7.4存储库为止。
https://unix.stackexchange.com/questions/370046
复制相似问题