This system is not registered with an entitlement server. You can use subscription-manager to register.

2022-04-28 15:46 来源:未知 作者:mas 责编:mas

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!

 

【版权声明】本站部分内容来源于互联网,本站不拥有所有权,如果发现本站有侵权的内容,欢迎发送邮件至 benumon@163.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

分享:

更多文章

相关文章

关键词:

一生受益-思韵闪耀-专业IT技术社区 - 爱编程,爱源码,爱技术,一生受益。

powerby 一生受益-思韵闪耀    豫ICP备13002912号-2