1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > Redhat7 yum安装有问题+yum无法使用+There are no enabled repos. Run “yum

Redhat7 yum安装有问题+yum无法使用+There are no enabled repos. Run “yum

时间:2023-04-29 17:26:31

相关推荐

Redhat7 yum安装有问题+yum无法使用+There are no enabled repos. Run “yum

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

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

There are no enabled repos.

Run “yum repolist all” to see the repos you have.

To enable Red Hat Subscription Management repositories:

subscription-manager repos --enable

To enable custom repositories:

yum-config-manager --enable

解决:

1.卸载:

rpm -e --nodeps java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64

rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.191.b12-0.el7_5.x86_64

rpm -e --nodeps yum-rhn-plugin-2.0.1-9.el7.noarch

1.1 安装以下包。

链接: /s/19yT8bbBhiSATovdx26Lteg 提取码: 3z4c 复制这段内容后打开百度网盘手机App,操作更方便哦

安装命令:

rpm -ivh python-*

rpm -ivh yum-*

在目录 /etc/yum.repos.d/ 导入文件

CentOS7-Base-163.repo

修改为:

# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead.##[base]name=CentOS-$releasever - Base - #mirrorlist=/?release=7&repo=osbaseurl=/centos/7/os/$basearch/gpgcheck=1gpgkey=/centos/RPM-GPG-KEY-CentOS-7#released updates[updates]name=CentOS-$releasever - Updates - #mirrorlist=/?release=7&repo=updatesbaseurl=/centos/7/updates/$basearch/gpgcheck=1gpgkey=/centos/RPM-GPG-KEY-CentOS-7#additional packages that may be useful[extras]name=CentOS-$releasever - Extras - #mirrorlist=/?release=7&repo=extrasbaseurl=/centos/7/extras/$basearch/gpgcheck=1gpgkey=/centos/RPM-GPG-KEY-CentOS-7#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plus - baseurl=/centos/7/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=/centos/RPM-GPG-KEY-CentOS-7

成功解决。

Redhat7 yum安装有问题+yum无法使用+There are no enabled repos. Run “yum repolist all“ to see the repos you ha

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。