
在用yum安装gcc的时候,报了错误:
[root@001 ~]#yum -y install gcc gcc-c++ kernel-develLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfileThere 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 To enable custom repositories: yum-config-manager --enable
1、检查是否断网
ping www.baidu.com
2、如果没断网,则说明是yum镜像没有了,需要下载一个:
小爱开放平台
小米旗下小爱开放平台
281 查看详情
cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.backup wget http://mirrors.163.com/.help/CentOS6-Base-163.repo mv CentOS6-Base-163.repo CentOS-Base.repo yum clean all
相关视频教程推荐:linux视频教程
以上就是centos yum无法使用怎么解决的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/864402.html
微信扫一扫
支付宝扫一扫