https://cdn.redhat.com/content/dist/rhel/server/7/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

Latest response

当我添加完订阅进行repolist时提示以下错误。。

[root@Nerc ~]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
https://cdn.redhat.com/content/dist/rhel/server/7/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

https://cdn.redhat.com/content/dist/rhel/server/7/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
repo id repo name status
cdrom cdrom 4,305
rhel-7-server-rpms/$releasever/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 0
repolist: 4,305

需要怎么解决?

我尝试着去修改redhat.repo文件,将文件中的$releaserver替换成7Server时,当我保存并退出后,再次进入查看时,又回到了未修改前的状态。
1122

Responses

Hello WinJay,

The posting is very confusing, I summarize why: * you post it under Red Hat Enterprise Linux for ARM64

  • you seem to get a Red Hat Enterprise Linux 7 for x86_64 repository error, are you trying to mix ARM64 and x86_64 repositories?

  • you seem to use a CentOS wiki to find a solution. The later do no always apply to RHEL.

Regards,

Jan Gerrit Kootstra

=================================================================================

你好WinJay,

这个帖子很混乱,我总结了原因: *您将它发布在Red Hat Enterprise Linux for ARM64下

*您似乎获得了用于x86_64存储库错误的Red Hat Enterprise Linux 7,您是否尝试混合使用ARM64和x86_64存储库?

*您似乎使用CentOS wiki来寻找解决方案。 后者并不总是适用于RHEL。

问候,

Jan Gerrit Kootstra

我已经 将贴子重新编辑了,并附上了报错图片。。

我这个系统初始安装的时候是7.0的,昨天添加完订阅后,当时是可以更新的,可以看到目前是7.5的版本了。。

但是升级完成后再次运行yum update时就报了上面的错误了。。。

Hi WinJay,

Unfortunately I can't read your post ... most members (including myself) speak English here. :)

Regards,
Christian

Hi WinJay,

Do you try this on a CentOS system ? That won't work (of course), you can't enable and access Red Hat repositories on CentOS. :)

Regards,
Christian

The system is not CentOS, This is RedHat's system, which was upgraded from 7.0 to 7.5.Look at the picture of the error...thank you。

Hi WinJay,

It was an assumption ... why do you get the following message then - I've never seen this on a RHEL system ? :)

"https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/."

Regards,
Christian

Hi WinJay,

To avoid confusion, let us continue in English.

Regards,

Jan Gerrit Kootstra

Good idea, Jan Gerrit - Thanks ! :)

Can you show us the output of the below command?

rpm -q yum

[root@Nerc tmp]# rpm -q yum

yum-3.4.3-158.el7.centos.noarch

Hi WinJay,

We're getting closer ... seems you added the CentOS repo, so it's the other way around - remove it. :)

Regards,
Christian

Also the output of

yum repolist

[root@Nerc tmp]# yum repolist

Loaded plugins: product-id, search-disabled-repos, subscription-manager

https://cdn.redhat.com/content/dist/rhel/server/7/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS

Trying other mirror. To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

https://cdn.redhat.com/content/dist/rhel/server/7/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Trying other mirror. repo id repo name
cdrom cdrom
rhel-7-server-rpms/$releasever/x86_64 Red Hat Enterprise Linux 7 Ser repolist: 4,305 [root@Nerc tmp]#

Hi WinJay,

Start over from scratch : remove all repositories and then enable the RHEL repositories. :)
Clear the cache : sudo rm -r /var/cache/yum and then execute sudo yum update.

Regards,
Christian

Hi WinJay,

Someone must have installed yum from a centos repository, so Christian's observation was not wrong.

Possible CentOS version of yum: yum-3.4.3-158.el7.centos.noarch

Native RHEL 7.5 version of yum: yum-3.4.3-158.el7.noarch

Regards,

Jan Gerrit

What does this show?

ls -l /etc/yum.repos.d

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.