centos7运行yum报如下提示:
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
To enable custom repositories:
yum-config-manager --enable
运行
yum repolist all
0
尝试:
yum -y install yum-utils
如果不能运行先试着更换yum源:
先备份源:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
然后
wget -O /etc/yum/repos.d/CentOS-Base.repo http://www.landui.com/repo/Centos-7.repo
或者
curl -o /etc/yum/repos.d/CentOS-Base.repo http://www.landui.com/repo/Centos-7.repo
文件目录看好:
/etc/yum/repos.d/
很快下载完成。
运行命令生成缓存
yum clean all
yum makecache
测试
yum -y install yum-utils
成功。
Copyright ? 2013-2024 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号 粤公网安备 44200002445359号
增值电信业务经营许可证编号:B1-20222012
代理域名注册服务机构:西部数码