centos7的yum源無法使用
錯誤提示
解決方案
- 進入【cd /etc/yum.repos.d】刪除【rm -f CentOS-Base.repo】CentOS-Base.repo文件
- 重新下載【wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo】
- 重新加載【yum clean all】
暴力方法
- rm -f /etc/yum.repos.d/*
- wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- yum clean all