返回顶部
首页 > 资讯 > 服务器 >RedHat7安装网络yum源出现:Loaded plugins: product-id, refresh-packagekit, security ……的解决方法
  • 297
分享到

RedHat7安装网络yum源出现:Loaded plugins: product-id, refresh-packagekit, security ……的解决方法

linux服务器yum源 2023-09-30 08:09:12 297人浏览 八月长安
摘要

        最近给虚拟机安装阿里的yum源的时候在执行yum makecache命令是报错:Loaded plugins: langpacks, product-id, search-disabled-repos, subscripti

        最近给虚拟机安装阿里的yum源的时候在执行yum makecache命令是报错:Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not reGIStered with an entitlement server. You can use subscription-manager to register. Http://mirrors.aliyun.com/Centos/7Server/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. To address this issue please refer to the below knowledge base article https://access.redhat.com/articles/1320623 If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.。

        后来在网友的帮助下得以解决,在这里给大家复盘一下,顺便分享解决方案。

一、安装阿里yum源(问题复盘)

        1、备份原有yum源

mv /etc/yum.repos.d/redhat.repo   /etc/yum.repos.d/redhat.repo.backup

        2、下载新的阿里yum源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

        3、检查

         4、清缓存

 

        5、yum makecache(此处开始报错)

[root@192 yum.repos.d]# yum makecache
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
http://mirrors.aliyun.com/centos/7Server/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

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

 

二、问题解决

编辑CentOS-Base.repo文件,把文件里面的$releasever全部替换为版本号:7最后保存!

%s/$releasever/7/g 

如下图所示:

 接下来再次执行yum makecache即可

来源地址:https://blog.csdn.net/Gao068465/article/details/128328275

--结束END--

本文标题: RedHat7安装网络yum源出现:Loaded plugins: product-id, refresh-packagekit, security ……的解决方法

本文链接: https://lsjlt.com/news/421755.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作