关于解决RedHat6.0以上版本:Loaded plugins: product-id, refresh-packagekit, security, subscription-manager

使用红帽过程中出现如下错误:
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Nothing to do

网上查找多篇文章介绍的都是需要卸载redhat自带的yum然后安装网易的yum。不过不想这么麻烦,后来看到一篇文章,只需要修改一下源的配置文件即可:

原文地址:https://blog.csdn.net/qq_37791764/article/details/78966277

原文下载的是网易的源,我下载的是阿里云64位的的源,不过都一样

下载源地址:http://mirrors.aliyun.com/repo/Centos-6.repo

一下命令直接把源文件下载到/etc/yum.repos.d/目录

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

编辑新下载的源文件,修改其中的版本号

# vim CentOS-Base.repo

编辑文件,把文件里面的$releasever全部替换为版本号:6最后保存

:%s/$releasever/6/g

保存文件即可

:wq

然后就可以正常使用yum了

猜你喜欢

转载自blog.csdn.net/asdf1873310/article/details/92072420
今日推荐