转自:http://addam.blog.51cto.com/5041993/1281050
|
1
2
3
|
http://mirror.centos.org/centos/%24releasever/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
|
|
1
2
|
[root@aaa ~]# echo $releasever
[root@aaa ~]#
|
|
1
2
3
4
5
6
7
8
|
[root@aaa yum.repos.d]# yum makecache
base | 3.7 kB 00:00
updates | 3.4 kB 00:00
updates/filelists_db | 3.2 MB 00:03
updates/prestodelta | 637 kB 00:00
updates/primary_db | 3.6 MB 00:01
updates/other_db | 423 kB 00:00
Metadata Cache Created
|
|
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
31
32
33
34
35
36
37
|
[root@aaa yum.repos.d]# yum install lrzsz -y
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
extras/primary_db | 19 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package lrzsz.i686 0:0.12.20-27.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================
Installing:
lrzsz i686 0.12.20-27.1.el6 base 66 k
Transaction Summary
=================================================================================================================================
Install 1 Package(s)
Total download size: 66 k
Installed size: 150 k
Downloading Packages:
lrzsz-0.12.20-27.1.el6.i686.rpm | 66 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Retrieving key from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid: "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>"
From : http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : lrzsz-0.12.20-27.1.el6.i686 1/1
Verifying : lrzsz-0.12.20-27.1.el6.i686 1/1
Installed:
lrzsz.i686 0:0.12.20-27.1.el6
Complete!
|
本文介绍了解决CentOS系统中使用163 yum源配置时遇到的404错误的方法,通过调整配置文件中的变量使源正确解析。
1698

被折叠的 条评论
为什么被折叠?



