一个伪linux粉丝的blog

  1. 首页
  2. Uncategorized
  3. 正文

This system is not registered with an entitlement server

12月 23, 2020 416点热度 0人点赞 0条评论

之前安装某个包时遇到一个订阅报错,写了一大半,忘记发了,补一下。

yum Package Install on RHEL reports “This system is not registered with an entitlement server”

方法1,

yum install -y https://repo.ius.io/ius-release-el7.rpm

已加载插件:fastestmirror, product-id, search-disabled-repos, subscription-manager,

          : versionlock

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

ius-release-el7.rpm                                      | 8.2 kB     00:00     

正在检查 /var/tmp/yum-root-xtmc7A/ius-release-el7.rpm: ius-release-2-1.el7.ius.noarch

/var/tmp/yum-root-xtmc7A/ius-release-el7.rpm:不更新已安装的软件包。

错误:无须任何处理

https://unix.stackexchange.com/questions/468629/yum-package-install-on-rhel-reports-this-system-is-not-registered-with-an-entit

Use this command to register, using the credentials you use to access access.redhat.com.

subscription-manager register --username <username> --password <password> --auto-attach

方法2,

对于没有账号的,当然是下面的方法

https://blog.csdn.net/IndexMan/article/details/79570577

https://www.jianshu.com/p/7f22bb72a681

 

  • 查看redhat 7.0系统本身所安装的那些yum软件包
  • [[email protected] ~]# rpm -qa | grep yum

    yum-plugin-versionlock-1.1.31-54.el7_8.noarch

    yum-3.4.3-161.el7.centos.noarch

    yum-utils-1.1.31-54.el7_8.noarch

    yum-plugin-fastestmirror-1.1.31-50.el7.noarch

    yum-metadata-parser-1.1.4-10.el7.x86_64

rpm -qa | grep yum |xargs rpm -ev --allmatches --nodeps

 

方法3,

貌似还有一个大招,下次试。

  • 这个Red Hat Subscription Manager订阅管理器,它会让你一直register,解决办法:禁用就好
    脚本文件: /usr/lib/yum-plugins/subscription-manager.py
    配置文件: /etc/yum/pluginconf.d/subscription-manager.conf
    调用了脚本 /usr/share/rhsm/repolib.py
    去重写或者更新/etc/yum.repos.d/redhat.repo文件。
    每次yum调用(不禁掉plugins的情况下),都会更新此文件。
    因此,为了不冲突,可以如下操作:停止掉该插件的使用,在配置文件中把enable=0即可。
1
2
3
<span class="token punctuation">[</span>root@micocube <span class="token operator">~</span><span class="token punctuation">]</span> vim <span class="token operator">/</span>etc<span class="token operator">/</span>yum<span class="token operator">/</span>pluginconf<span class="token punctuation">.</span>d<span class="token operator">/</span>subscription<span class="token operator">-</span>manager<span class="token punctuation">.</span>conf
<span class="token punctuation">[</span>main<span class="token punctuation">]</span>
enabled<span class="token operator">=</span><span class="token number">0</span>           #将它禁用掉

相关文章:

  1. how-to-upgrade-kernel-centos
  2. 普通usb ZC0301 WebCam成功设置为Web Cam Server
  3. Solving Kubectl “Error from server (InternalError): an error on the server (“”) has prevented the request from succeeding” .
  4. Moving WordPress blog to a new server
标签: 暂无
最后更新:1月 5, 2021

wanjie

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

取消回复

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。

归档
分类
  • network / 324篇
  • Uncategorized / 116篇
  • unix/linux / 114篇
  • 业界资讯 / 38篇
  • 公司杂事 / 11篇
  • 数码影像 / 12篇
  • 美剧 / 3篇
  • 美图共赏 / 20篇
  • 英语学习 / 3篇
标签聚合
debian Google Voice k8s 泰国 Google ldap 刷机 Google Adwords 网站运营 虚拟主机 中国电信 Ubuntu dreamhost空间 邮件归档 iMac gitlab d90 Linux jira Android VPS brew docker nexus Nginx 网通 wget Opera Mini dreamhost kernel

COPYRIGHT © 2008-2022 wanjie.info. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang