0
点赞
收藏
分享

微信扫一扫

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

phpworkerman 2022-02-10 阅读 57

问题描述:

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
举报

相关推荐

centos6.5 jdk安装

0 条评论