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,如需转载请自行联系原作者