首页 > Web开发 > 详细

阿里源yum出错PYCURL ERROR 22

时间:2017-04-06 17:30:30      阅读:857      评论:0      收藏:0      [点我收藏+]

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

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.


临时解决办法

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

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


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

[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




本文出自 “甘木” 博客,请务必保留此出处http://ganmu.blog.51cto.com/9305511/1913297

阿里源yum出错PYCURL ERROR 22

原文:http://ganmu.blog.51cto.com/9305511/1913297

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!