阿里源yum出错PYCURL ERROR 22

yum安装软件时出现如下错误

1
2
https: //mirrors.aliyun.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.


临时解决办法

1
2
3
4
5
vim /etc/yum.repos.d/CentOS-Base.repo
将其中的
baseurl=……
换为
baseurl=https: //mirrors.aliyun.com/centos/6.8/os/x86_64/

至于什么原因,暂时还不清楚


PS:不到一天的时间,再次使用阿里源,竟然又好了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[root@RS1 tools]# cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.ori
[root@RS1 tools]# wget -O /etc/yum.repos.d/CentOS-Base.repo http: //mirrors.aliyun.com/repo/Centos-6.repo 
[root@RS1 tools]# yum makecache
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
  * base: mirrors.aliyun.com
  * extras: mirrors.aliyun.com
  * updates: mirrors.aliyun.com
base                          | 3.7 kB     00:00     
base/group_gz                 | 226 kB     00:00     
base/filelists_db             | 6.4 MB     00:06     
base/primary_db               | 4.7 MB     00:04     
base/other_db                 | 2.8 MB     00:02     
extras                        | 3.4 kB     00:00     
updates                       | 3.4 kB     00:00     
updates/filelists_db          |  37 kB     00:00     
updates/prestodelta           | 5.6 kB     00:00     
updates/primary_db            |  24 kB     00:00     
updates/other_db              |  96 kB     00:00     
Metadata Cache Created
[root@RS1 tools]# yum list httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
  * base: mirrors.aliyun.com
  * extras: mirrors.aliyun.com
  * updates: mirrors.aliyun.com
Installed Packages
httpd.x86_64       2.2.15-56.el6.centos.3  @updates
Available Packages
httpd.x86_64       2.2.15-59.el6.centos    base




本文转自 f_066 51CTO博客,原文链接:http://blog.51cto.com/ganmu/1913297,如需转载请自行联系原作者

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值