Centos6.5 yum安装问题Cannot find a valid baseurl for repo: base

阅读 57

2022-02-10

问题描述:

CentOS6.5系统,使用yum安装文件时,出现以下错误:
在这里插入图片描述

解决方案:

#修改fastestmirror.conf的配置参数
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
#备份文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
#国内使用阿里云的文件
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
#香港或者海外服务器使用下面的文件
#curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Official.repo

精彩评论(0)

0 0 举报