关于Centos 老旧版本无法yum的 报错解决
这篇文章最后更新于1067天前,您需要注意相关的内容是否还可用,如有疑问请联系作者!
报错如图
There are no enabled repos. Run "yum repolist all" to see the repos you have. You can enable repos with yum-config-manager --enable
修复方案是
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或者 curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
文章版权声明:除非注明,否则均为海湾博客原创文章,转载或复制请以超链接形式并注明出处。
发表评论