码迷,mamicode.com
首页 > 其他好文 > 详细

You can use subscription-manager to register解决方法

时间:2018-11-27 16:58:03      阅读:1604      评论:0      收藏:0      [点我收藏+]

标签:tle   trying   解决方法   https   error   lease   errors   isa   iss   

yum repolist
“Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
http://mirrors.163.com/centos/%24releasever/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 wiki article

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

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

http://mirrors.163.com/centos/%24releasever/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirrors.163.com/centos/%24releasever/extras/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirrors.163.com/centos/%24releasever/updates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
repo id repo name status
base/$releasever/x86_64 CentOS-$releasever - Base - 163.com 0
extras/$releasever/x86_64 CentOS-$releasever - Extras - 163.com 0
updates/$releasever/x86_64 CentOS-$releasever - Updates - 163.com 0
repolist: 0”

解决方法,首先下载镜像源的配置文件
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

然后编辑CentOS6-Base-163.repo
把里面的所有的$releasever 更改为centos的系统版本号,比如centos7版本 用:%s/\$releasever/7/g进行全部替换,然后保存 再yum clean all 继续yum makecache 最后yum repolist 就可以了!

You can use subscription-manager to register解决方法

标签:tle   trying   解决方法   https   error   lease   errors   isa   iss   

原文地址:http://blog.51cto.com/jxlwc/2322442

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!