首页 > 系统相关> > CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found
CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found
作者:互联网
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
yum clean all
yum repolist
[root@nginx_test yum.repos.d]# yum -y install net-tools
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
--2021-12-08 02:37:12-- http://file.kangle.odata.cc/repo/Centos-6.repo
Resolving file.kangle.odata.cc... 218.89.171.143
Connecting to file.kangle.odata.cc|218.89.171.143|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3331 (3.3K) [text/plain]
Saving to: “/etc/yum.repos.d/CentOS-Base.repo”
100%[==============================================================================================>] 3,331 --.-K/s in 0s
2021-12-08 02:37:12 (230 MB/s) - “/etc/yum.repos.d/CentOS-Base.repo” saved [3331/3331]
wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
--2021-12-08 02:37:28-- http://file.kangle.odata.cc/repo/epel-6.repo
Resolving file.kangle.odata.cc... 218.89.171.143
Connecting to file.kangle.odata.cc|218.89.171.143|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1474 (1.4K) [text/plain]
Saving to: “/etc/yum.repos.d/epel.repo”
100%[==============================================================================================>] 1,474 --.-K/s in 0s
2021-12-08 02:37:28 (187 MB/s) - “/etc/yum.repos.d/epel.repo” saved [1474/1474]
[root@nginx_test yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cloud.tencent.com
* epel: mirrors.cloud.tencent.com
* extras: mirrors.cloud.tencent.com
* updates: mirrors.cloud.tencent.com
base | 3.7 kB 00:00
base/group_gz | 242 kB 00:00
base/filelists_db | 6.4 MB 00:00
base/primary_db | 4.7 MB 00:00
base/other_db | 2.8 MB 00:00
epel | 4.7 kB 00:00
epel/group_gz | 74 kB 00:00
epel/filelists_db | 7.9 MB 00:00
epel/updateinfo | 788 kB 00:00
epel/prestodelta | 574 B 00:00
epel/primary_db | 6.1 MB 00:00
epel/other_db | 3.0 MB 00:00
extras | 3.4 kB 00:00
extras/filelists_db | 24 kB 00:00
extras/prestodelta | 2.2 kB 00:00
extras/primary_db | 29 kB 00:00
extras/other_db | 14 kB 00:00
updates | 3.4 kB 00:00
updates/filelists_db | 8.3 MB 00:00
updates/prestodelta | 356 kB 00:00
updates/primary_db | 12 MB 00:02
updates/other_db | 474 kB 00:00
Metadata Cache Created
标签:epel,requested,00,PYCURL,kB,db,repo,yum,error 来源: https://www.cnblogs.com/xjzyy/p/15660397.html