html tool

2020年11月11日星期三

转: yum报错:There are no enabled repos

 https://blog.csdn.net/GX_1_11_real/article/details/90638598

原因二


/etc/yum.repos.d下的repo文件存放位置处,有非正规的(非repo结尾的文件、非通常格式的repo文件)或CentOS-Base.repo等源不存在导致。[popexizhi: 自己到这步骤就ok了,目录下存放还是目录,拷贝出来就ok了]
(常见问题)



解决方法:
移除该目录下的不规格文件,添加正规的yum源文件(可从网络查找,也可自行配置)

<1>要先将旧的yum源的缓存清理
yum clean all

<2>加载yum源
yum makecache

<3>将所有yum源的信息列出
yum repolist



yum源基本格式,可参考下列链接:
https://blog.csdn.net/GX_1_11_real/article/details/80720144

没有评论:

发表评论