linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

查找mysql包的时候,突然出现这个问题

检查镜像

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

镜像挂载没有问题

检查制作的本地repo文件

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

发现并没有

问题原因:缺少iso镜像的repo配置文件!

解决方法:

1.建立一个新的文件夹,将所有repo文件移入

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

2.将old/CentOS-Media.repo文件复制出来

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

3.修改CentOS-Media.repo文件

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

原文件内容:

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

改后:

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

再尝试查找mysql

linux 安装中出现的问题(2)---(Cannot find a valid baseurl for repo: base)

问题解决!