Redhat 的 yum 错误和配置

Redhat 的 yum 错误和配置

我按照说明操作,但没有成功

[root@Ready4Use ~]# yum clean metadata
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Network error code: 400
Cleaning repos: rhel-7-server-rpms rhel-7-server-rt-beta-rpms rhel-7-server-rt-rpms
0 metadata files removed
0 sqlite files removed
0 metadata files removed
[root@Ready4Use ~]# yum install rsync
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Network error code: 400
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.

I am trying to install rsync on my redhat box
i tried  

    yum install rsync but i get 
    [root@Ready4Use yum.repos.d]# yum install rsync
    Loaded plugins: product-id, search-disabled-repos, subscription-manager
    Network error code: 400
    https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
    Trying other mirror


I checked in the redhat.repo file and there are tons of urls for different repositories 

example:

    [root@Ready4Use yum.repos.d]# grep baseurl redhat.repo
    baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/debug
    baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.2/os
    baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/debug
    baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/insights/3/debug
    baseurl = https://cdn.redhat.com/content/e4s/rhel/server/7/$releasever/$basearch/sap/source/SRPMS
    baseurl = https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/resilientstorage/debug
    baseurl = https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/resilientstorage/source/SRPMS
    baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/11/debug
    baseurl = https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/x86_64/cdk/2.3/os
    baseurl = https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/rhscl/1/source/SRPMS

我的重新整理:

[root@Ready4Use yum.repos.d]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Network error code: 400
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/solutions/69319

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rt/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/rt/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
repo id                                                                      repo name                                                                                                   status
rhel-7-server-rpms/7Server/x86_64                                            Red Hat Enterprise Linux 7 Server (RPMs)                                                                    0
rhel-7-server-rt-beta-rpms/x86_64                                            Red Hat Enterprise Linux for Real Time Beta (RHEL 7 Server) (RPMs)                                          0
rhel-7-server-rt-rpms/7Server/x86_64                                         Red Hat Enterprise Linux for Real Time (RHEL 7 Server) (RPMs)                                               0
repolist: 0
[root@Ready4Use yum.repos.d]#

我尝试手动访问该网址,但确实遇到了相同的错误。我需要在 yum 中配置一些项目吗?

谢谢。

答案1

yum clean metadata
yum install rsync

相关内容