美文网首页
centos系统中yum安装应用出现doesn't have e

centos系统中yum安装应用出现doesn't have e

作者: 422ccfa02512 | 来源:发表于2020-03-10 22:58 被阅读0次

解决方法:修改默认yum源为阿里云yum源,步骤如下:

  1. 备份原有yum源:
mv /etc/yum.repos.d /etc/yum.repos.d.bak
  1. 创建yum源目录
mkdir /etc/yum.repos.d
  1. 下载阿里云yum源配置
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  1. 重建缓存
yum clean all
yum makecache

相关文章

网友评论

      本文标题:centos系统中yum安装应用出现doesn't have e

      本文链接:https://www.haomeiwen.com/subject/pzandhtx.html