上一篇 下一篇 分享链接 返回 返回顶部

centos7运行yum无法使用

发布人:小李 发布时间:2022-06-05 09:25 阅读量:4473

entos7运行yum报如下提示:

 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 -y install yum-utils 如果不能运行先试着更换yum源:

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
目录结构
全文
 

 

官方QQ群  980082857


用户服務條款

https://www.hosuyun.cn/newscontent/171.html

网站测试IP 

  https://www.hosuyun.cn/newscontent/223.html

Linux系统换yum源教程地址

https://www.baota.me/post-450.html

Centos系统开放防火墙端口

  https://www.hosuyun.cn/helpcontent/211.html

debian/utubun开放防火墙端口

  https://www.hosuyun.cn/helpcontent/212.html

 


查看详情 关闭
网站通知