本文主要是介绍Redhat使用yum install时提示This system is not registered with an entitlement server 的解决办法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
[root@localhost ~]# yum install vsftpd -y
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Nothing to do
这是因为使用redhat自带的yum源要付费,所以需要自己重新生成yum源。
1、查询并卸载已经安装的redhat的rpm包
[root@localhost ~]# rpm -qa |grep yum
yum-rhn-plugin-2.0.1-9.el7.noarch
yum-3.4.3-154.el7.noarch
yum-metadata-parser-1.1.4-10.el7.x86_64[root@localhost ~]# rpm -e yum-rhn-plugin-2.0.1-9.el7.noarch --nodeps
[root@localhost ~]# rpm -e yum-3.4.3-154.el7.noarch --nodeps
[root@localhost ~]# rpm -e yum-metadata-parser-1.1.4-10.el7.x86_64 --nodeps
2、去163镜像站下载centos的rpm包,并安装
Index of /centos/
wget http://mirrors.163.com/centos/7.6.1810/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
wget http://mirrors.163.com/centos/7.6.1810/os/x86_64/Packages/python-urlgrabber-3.10-9.el7.noarch.rpm
wget http://mirrors.163.com/centos/7.6.1810/os/x86_64/Packages/yum-3.4.3-161.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7.6.1810/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7.6.1810/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpmrpm -ivh python*.rpm
rpm -ivh yum*.rpm
3、下一步是重新编辑repo
curl http://mirrors.163.com/.help/CentOS7-Base-163.repo -o /etc/yum.repos.d/CentOS6-Base-163.repo
vim /etc/yum.repo/CentOS7-Base-163.repo如果网络允许,baseurl可以使用外网地址,并使用全文替换:
:1,$s/$releasever/7
否则,可以本地挂载iso系统光盘
4、重建缓存并使用yum install 来进行测试是否yum源重建成功
清除缓存
[root@localhost yum.repos.d]# yum clean all
重建缓存,以提高搜索安装软件的速度
[root@localhost yum.repos.d]# yum makecache
更新系统(可选)
[root@localhost yum.repos.d]# yum update
测试yum安装:
[root@localhost yum.repos.d]# yum install vsftp
参考文档:
解决:This system is not registered to Red Hat Subscription Management_不负韶华,只争朝夕!-CSDN博客
http://www.dongcoder.com/detail-924283.html
RHEL7.4 yum仓库不可以用问题解_qq_15165093的博客-CSDN博客
这篇关于Redhat使用yum install时提示This system is not registered with an entitlement server 的解决办法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!