阿里源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月前
Yum工具详解(二)-----Yum配置阿里源
Yum工具详解(二)-----Yum配置阿里源
2281 1
|
7月前
|
缓存 Linux
CentOS7配置阿里yum源 超详细!!!
CentOS7配置阿里yum源 超详细!!!
8111 0
|
20天前
|
Linux
CentOS 7 配置yum阿里源 (三步即可)
CentOS 7 配置yum阿里源 (三步即可)
378 1
|
20天前
|
应用服务中间件 nginx
yum 安装报错 No package nginx available Error:Nothing to do
yum 安装报错 No package nginx available Error:Nothing to do
62 1
|
20天前
|
缓存 Linux
修改CentOS默认yum源为阿里镜像源
修改CentOS默认yum源为阿里镜像源
623 0
|
20天前
|
关系型数据库 MySQL Linux
服务器脚本推荐,yum更新阿里镜像源、安装Docker、使用Docker安装MySQL服务
服务器脚本推荐,yum更新阿里镜像源、安装Docker、使用Docker安装MySQL服务
182 1
|
Linux
Linux - Centos 8 执行 yum makecache fast 报错:yum makecache: error: argument timer: invalid choice: 'fast' (choose from 'timer')
Linux - Centos 8 执行 yum makecache fast 报错:yum makecache: error: argument timer: invalid choice: 'fast' (choose from 'timer')
718 0
|
10月前
|
Linux
Yum工具详解(三)----- Yum配置阿里源CentOS 6.x
Yum工具详解(三)----- Yum配置阿里源CentOS 6.x
2340 0
|
10月前
|
缓存 Linux 开发工具
centos 7 yum安装失败(HTTP Error 404 - Not Found)的解决方法
centos 7 yum安装失败(HTTP Error 404 - Not Found)的解决方法
679 0