未找到 Redhat 存储库

未找到 Redhat 存储库

我从客户那里借了一个 Redhat 7 系统来安装 32 位应用程序。为了使应用程序正常工作,我需要安装 gtk2.i686 工具包。

通过执行此命令:

yum list --showduplicates gtk2

我可以看到安装的64位包是:

gtk2.x86_64                               2.24.31-1.el7                                     @rhel-7-server-rpms

于是我尝试安装匹配的32位版本,如下:

yum install gtk2-2.24.31-1.el7.i686

这会导致依赖项列表,并给出批准提示:

Install  1 Package  (+79 Dependent packages)
Upgrade             (  5 Dependent packages)
Total size: 30 M
Total download size: 24 M
Is this ok [y/d/N]: 

但是,当我同意时,它会因一系列“无法解决主机错误”而失败,例如

zlib-1.2.7-18.el7.i686.rpm     FAILED                                          
https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/os/Packages/z/zlib-1.2.7-18.el7.i686.rpm: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.

当我执行“yum repolist”时,我遇到类似的错误。

# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.
https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/extras/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.
https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/optional/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.
https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.
https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/sat-maintenance/6/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.
https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.3/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.
https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.4/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.
https://rhs6.loc/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/rhscl/1/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: rhs6.loc; Unknown error"
Trying other mirror.
repo id                                            repo name                                              status
epel/x86_64                                        Extra Packages for Enterprise Linux 7 - x86_64         12,908
google-chrome                                      google-chrome                                               3
!rhel-7-server-ansible-2.6-rpms/x86_64             Red Hat Ansible Engine 2.6 RPMs for Red Hat Enterprise     18
!rhel-7-server-extras-rpms/x86_64                  Red Hat Enterprise Linux 7 Server - Extras (RPMs)       1,063
!rhel-7-server-optional-rpms/x86_64                Red Hat Enterprise Linux 7 Server - Optional (RPMs)    17,348
!rhel-7-server-rpms/x86_64                         Red Hat Enterprise Linux 7 Server (RPMs)               23,690
!rhel-7-server-satellite-maintenance-6-rpms/x86_64 Red Hat Satellite Maintenance 6 (for RHEL 7 Server) (R     26
!rhel-7-server-satellite-tools-6.3-rpms/x86_64     Red Hat Satellite Tools 6.3 (for RHEL 7 Server) (RPMs)     94
!rhel-7-server-satellite-tools-6.4-rpms/x86_64     Red Hat Satellite Tools 6.4 (for RHEL 7 Server) (RPMs)     73
!rhel-server-rhscl-7-rpms/x86_64                   Red Hat Software Collections RPMs for Red Hat Enterpri 10,935
repolist: 66,158

这个命令:

subscription-manager status

显示当前状态。

命令

nslookup google.com

解决正确,我可以正常浏览。

这是/etc/resolv.conf的内容

# Generated by NetworkManager
search othecompany.dom
nameserver 1.1.1.1

如果我在 yum repolist 生成的任何存储库 URL 上尝试使用curl 命令,则 dns 服务器找不到它们。

因此,由于某种原因,RedHat 7 存储库中的名称似乎在公共 DNS 上不可用。也许它们在其他公司的 DNS 服务器上?

答案1

这不是“也许”,这些名称是私有 DNS 空间的一部分,并且它们显然指向内部卫星设置。

更改公共 DNS 名称的 DNS 是因为 Google 无法解析只有组织的 DNS 服务器知道的私有 DNS 名称。

如果他们遇到内部 DNS 设置问题和/或卫星问题,请向您的客户服务台提交票证。

否则,您通常无法根据其合同升级/安装 RH 软件包。

参见参考红帽卫星 - 管理红帽基础设施的最佳方式

了解红帽内容交付网络存储库及其在 Satellite 6 中的使用

相关内容