CentOS7下yum安装wget出错

  • Post author:
  • Post category:其他



出错命令:

yum -y install wget


错误信息

已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
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 <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>


解决方案


先执行命令:

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

再执行命令

yum -y install wget



版权声明:本文为qq_45305583原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。