Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have
Posted wangpingcong
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have相关的知识,希望对你有一定的参考价值。
原因是缺少CentOS-Base.repo文件,因为我这台机器wget也不能用,所以我是下载到本地sftp上去的,传输的时候一定要在root用户下,否则会无法启动传输
这是报错的完整信息:Loading mirror speeds from cached hostfile
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 <repo>
To enable custom repositories:
yum-config-manager --enable <repo>
1、yum –help 显然yum是正常的,也许是网络问题。
2、一定要将身份切换到root账户,进入vim /etc/sysconfig/network-scripts/ifcfg-ens33修改文件,将ONBOOT=no改为yes,如果没有做网络配置的,也要配置网络;
3、解决方法为:
下载对应版本repo文件, 放入/etc/yum.repos.d/里,下载地址:http://mirrors.163.com/.help/centos.html
因为我这台机器wget也不能用,所以我是下载到本地sftp上去的,传输的时候一定要在root用户下,否则会无法启动传输(用一般的传输工具就可以了)
完成后,查看/etc/yum.repos.d文件夹下是否有了CentOS-Base.repo文件,然后生成缓存,分别执行下面两个命令:
yum clean all
yum makecache
最后执行yum -y install wget至此就成功了;
以上是关于Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have的主要内容,如果未能解决你的问题,请参考以下文章
Sublime Text3使用Package Control 报错There Are No Packages Available For Installation
Sublime Text3的Package Control安装教程,及报错解决There Are No Packages Available For Installation
HDFS 报错: There are 0 datanode(s) running and 0 node(s) are excluded in this operation.
永久解决Sublime包管理package control 打开install package报错 There are no packages available for installation(示
Spirng 循环依赖报错:Is there an unresolvable circular reference?
Sublime Text3无法安装插件 — 提示There are no packages available for installation