[不花钱站长]:从免费域名开始[0元] Oracle永久免费VPS[0元] VPS环境搭建免费脚本[0元] 秒变大盘挂载免费网盘[0元] 小白免费采集器1天500W[0元] CF免费DNS+CDN服务[0元]
[零基础网赚]:撸本站免费源码[0元] 网站强引免费蜘蛛法[0元] 图片视频文件免费存储[0元] 外链轻松发布免费友链[0元] 入坑免费教程学习源代码[0元] 网上百种+赚钱联盟推荐[?元]

↑↑VPS推荐网 WWW.VPS.COM.IN 稳定 便宜 免备案↑↑


您现在的位置是:首页 > 全球[VPS测评] >  centos7报错,no enabled repos,There are no enabled repos,yum rep,国外永久免费VPS

CentOS7报错There are no enabled repos. Run "yum repolist all" to see the repos you have

全球[VPS测评]来源:VPS推荐网点击:844
【性价之王】【线路之王】【价格之王】【配置之王】
【免费之王】【香港首推】【梯子之王】【独服之王】
CentOS7报错There are no enabled repos. Run

在一台CentOS7的服务器上遇到标题标错:

[root@localhost ~]# yum install -y wgetLoaded plugins: fastestmirrorLoading 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 <repo> To enable custom repositories: yum-config-manager --enable <repo>

通过yum什么都不能安装,搜索了下解决方法,所以记录下来。

报错信息如图:

解决方法为:

下载对应版本repo文件, 放入/etc/yum.repos.d/里,下载地址:http://mirrors.163.com/.help/centos.html

***因为我这台机器wget也不能用,所以我是下载到本地sftp上去的***

完成后,查看/etc/yum.repos.d文件夹下是否有了CentOS-Base.repo文件,然后生成缓存。

yum clean all yum makecache

最后再次执行我们之前报错的命令,已经OK了。


[centos7报错]历史优惠活动内容
  • CentOS7报错There are no enabled repos. Run "yum
  • CentOS7报错There are no enabled repos. Run "yum
  • CentOS7报错There are no enabled repos. Run "yum

  • 猜你可能想看的VPS


    转载请注明原文地址:http://140.238.13.167:12355/read-35112.html

    下一篇       上一篇