rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.
2021/12/28 7:08:34
本文主要是介绍rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
通过报错Error: There are no enabled repos. 初步判断是yum源仓库问题,进入/etc/yum.repos.d/目录查看repo源,
cat yum.repos.d,没有repo源
通过配置外网yum源,更新repo,此步骤进入/etc/yum.repos.d/
wget http://mirrors.aliyun.com/repo/Centos-8.repo
检查是否开启服务包
接着进行yum update更新yum源仓库,
根据执行结果,在执行命令是携带相应的参数即可yum update --allowerasing --skip-broken --nobest
yum源更新后,需要清除一些安装包packages,按照提示执行dnf clean packages即可
再次执行yum install python3,问题解决,此账号为root用户,可以不用sudo提权
注:文档仅供参考,如有问题请大家指出纠正。
这篇关于rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-10-04Python外包有哪些常见的主要库-icode9专业技术文章分享
- 2024-10-02基于深度学习的钢铁缺陷检测系统(yolov8、注意力机制、PyQt5界面、Python)
- 2024-10-01怎么用python搭建一个系统-icode9专业技术文章分享
- 2024-09-30Python基础入门教程
- 2024-09-30获取参数学习:Python中的基础教程
- 2024-09-30Python编程基础详解
- 2024-09-29点击加载学习:Python编程基础教程
- 2024-09-29数据科学五大Python前端库:第二部分
- 2024-09-27使用python 将ETH账户的资产打散
- 2024-09-26Python编程基础