首页 / CENTOS / Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have
Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1111字,纯文字阅读大概需要2分钟。
内容图文
![Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have](/upload/InfoBanner/zyjiaocheng/938/7556e7acaa104c9981d324ab37cb7b61.jpg)
原因是缺少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全部内容,希望文章能够帮你解决Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。