centos7修改源遇到的问题
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00
http://10.9.2.42/elrepo-kernel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.9.2.42:80; Connection timed out"
Trying other mirror.
http://10.9.2.42/elrepo-kernel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.9.2.42:80; Connection timed out"
Trying other mirror.
^Chttp://10.9.2.42/elrepo-kernel/repodata/repomd.xml: [Errno 14] curl#56 - "Callback aborted"
Trying other mirror.
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
rm -rf /etc/yum.repos.d/Centos7.repo
yum clean all
yum makecache
# 解决 https://developer.aliyun.com/article/691851
/etc/yum.repos.d 文件下面只能有一个repo 删除Centos7.repo
# Centos7.repo CentOS-Base.repo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
上次更新: 2023-11-15 09:35:36