发布日期:2025-07-03 06:51 点击次数:84
报错如下:男同 按摩
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
巨乳Error: There are no enabled repos.
翻译一下等于:无法读取用户标识此系统未注册到“红帽订阅管制”。您不错使用订阅管制器进行注册。荒唐:莫得启用的回购。
措置有绸缪:干掉yum,再行装个centos的yum
# 1. 删除系统自带yum包 [root@localhost ~]# rpm -qa|grep yum yum-4.0.9.2-5.el8.noarch # 2. 不查验依赖径直删除悉数yum包 [root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps # 3. 查验是否删除到手 [root@localhost ~]# rpm -qa|grep yum
下一步,装置yum,使用阿里云镜像,找一下最新版的yum包,和 python3-urllib包
https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/
图片
wget https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/yum-4.7.0-4.el8.noarch.rpm wget https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/yum-utils-4.0.21-3.el8.noarch.rpm wget https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/python3-urllib3-1.24.2-5.el8.noarch.rpm wget https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/dnf-4.7.0-4.el8.noarch.rpm wget https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/python3-dnf-4.7.0-4.el8.noarch.rpm wget https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/python3-dnf-plugins-core-4.0.21-3.el8.noarch.rpm
装置
[root@localhost ~]# rpm -ivh --force --nodeps python3-dnf-4.7.0-4.el8.noarch.rpm warning: python3-dnf-4.7.0-4.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:python3-dnf-4.7.0-4.el8 ################################# [100%] [root@localhost ~]# rpm -ivh --force --nodeps python3-dnf-plugins-core-4.0.21-3.el8.noarch.rpm warning: python3-dnf-plugins-core-4.0.21-3.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:python3-dnf-plugins-core-4.0.21-3################################# [100%] [root@localhost ~]# rpm -ivh --force --nodeps dnf-4.7.0-4.el8.noarch.rpm warning: dnf-4.7.0-4.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:dnf-4.7.0-4.el8 ################################# [100%] [root@localhost ~]# rpm -ivh --force --nodeps yum-4.7.0-4.el8.noarch.rpm warning: yum-4.7.0-4.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:yum-4.7.0-4.el8 ################################# [100%] [root@localhost ~]# rpm -ivh --force --nodeps yum-utils-4.0.21-3.el8.noarch.rpm warning: yum-utils-4.0.21-3.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:yum-utils-4.0.21-3.el8 ################################# [100%] [root@localhost ~]# rpm -ivh --force --nodeps python3-urllib3-1.24.2-5.el8.noarch.rpm warning: python3-urllib3-1.24.2-5.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:python3-urllib3-1.24.2-5.el8 ################################# [100%] [root@localhost ~]#
本站仅提供存储管事,悉数实质均由用户发布,如发现存害或侵权实质,请点击举报。