rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

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源,

rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

 

cat  yum.repos.d,没有repo源

 

 rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

 

 

 通过配置外网yum源,更新repo,此步骤进入/etc/yum.repos.d/

wget http://mirrors.aliyun.com/repo/Centos-8.repo

rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

 

 检查是否开启服务包rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

 

 接着进行yum update更新yum源仓库,

rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

 

 根据执行结果,在执行命令是携带相应的参数即可yum update --allowerasing --skip-broken --nobest

rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

 

 rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

 

 yum源更新后,需要清除一些安装包packages,按照提示执行dnf clean packages即可

再次执行yum install python3,问题解决,此账号为root用户,可以不用sudo提权

rhel 8执行yum update和yum install python3报错Error: There are no enabled repos.

 

 

 

注:文档仅供参考,如有问题请大家指出纠正。

上一篇:8、Linux--rpm、yum、yum私有仓库、系统优化


下一篇:Linux 修改默认yum源为阿里云