This system is not registered with an entitlement server. You can use subscription-manager to register.
系统:redhat 7.6
说明:配置yum源,提示This system is not registered with an entitlement server. You can use subscription-manager to register.
配置文件:
[root@localhost yum.repos.d]# cat redhat7.repo
[rhel-source]
name=Source
baseurl=file:///mnt
enabled=1
gpgcheck=0
yum安装测试,能够进行安装,但是系统提示没有注册
[root@localhost yum.repos.d]# yum install -y tree
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.
Resolving Dependencies
--> Running transaction check
---> Package tree.x86_64 0:1.6.0-10.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
tree x86_64 1.6.0-10.el7 rhel-source 46 k
Transaction Summary
===============================================================================================================================================================================================
Install 1 Package
Total download size: 46 k
Installed size: 87 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : tree-1.6.0-10.el7.x86_64 1/1
Verifying : tree-1.6.0-10.el7.x86_64 1/1
Installed:
tree.x86_64 0:1.6.0-10.el7
Complete!
原因:redhat自带的插件subscription-manager。这个插件的作用就是Red Hat Subscription Manager订阅管理器,就是它让你一直register
解决办法:将配置文件subscription-manager.conf中的enable注释掉
[root@localhost yum.repos.d]# vi /etc/yum/pluginconf.d/subscription-manager.conf
[main]
#enabled=1
~
将安装的软件remove,再次进行安装实验
[root@tz-yycs-db01 ~]# yum install -y tree
Loaded plugins: product-id, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package tree.x86_64 0:1.6.0-10.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
tree x86_64 1.6.0-10.el7 rhel-source 46 k
Transaction Summary
===============================================================================================================================================================================================
Install 1 Package
Total download size: 46 k
Installed size: 87 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : tree-1.6.0-10.el7.x86_64 1/1
Verifying : tree-1.6.0-10.el7.x86_64 1/1
Installed:
tree.x86_64 0:1.6.0-10.el7
Complete!
上一篇:pkill命令
下一篇:linux服务器挂掉自动重启脚本