解决方法:
输入下面的命令即可解决问题:
[root@localhost yum]# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Determining fastest mirrors
epel/metalink | 4.6 kB 00:00
* epel: mirrors.yun-idc.com
* rpmforge: mirrors.neusoft.edu.cn
http://mirrors.163.com/centos/$releasever/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@localhost yum]# vi /etc/yum.conf
[root@localhost yum]# yum update -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
epel/metalink | 4.6 kB 00:00
* epel: mirrors.yun-idc.com
* rpmforge: mirrors.neusoft.edu.cn
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
Not using downloaded repomd.xml because it is older than what we have:
Current : Wed Aug 28 03:09:59 2013
Downloaded: Wed Aug 21 16:16:03 2013
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package bind-libs.i686 32:9.8.2-0.17.rc1.el6_4.5 will be updated
---> Package bind-libs.i686 32:9.8.2-0.17.rc1.el6_4.6 will be an update
---> Package bind-utils.i686 32:9.8.2-0.17.rc1.el6_4.5 will be updated
---> Package bind-utils.i686 32:9.8.2-0.17.rc1.el6_4.6 will be an update
---> Package device-mapper-multipath.i686 0:0.4.9-64.el6_4.1 will be updated
---> Package device-mapper-multipath.i686 0:0.4.9-64.el6_4.2 will be an update
---> Package device-mapper-multipath-libs.i686 0:0.4.9-64.el6_4.1 will be updated
---> Package device-mapper-multipath-libs.i686 0:0.4.9-64.el6_4.2 will be an update
---> Package gnome-screensaver.i686 0:2.28.3-24.el6 will be updated
---> Package gnome-screensaver.i686 0:2.28.3-24.el6_4.1 will be an update
---> Package kpartx.i686 0:0.4.9-64.el6_4.1 will be updated
---> Package kpartx.i686 0:0.4.9-64.el6_4.2 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Updating:
bind-libs i686 32:9.8.2-0.17.rc1.el6_4.6 updates 889 k
bind-utils i686 32:9.8.2-0.17.rc1.el6_4.6 updates 181 k
device-mapper-multipath i686 0.4.9-64.el6_4.2 updates 112 k
device-mapper-multipath-libs i686 0.4.9-64.el6_4.2 updates 176 k
gnome-screensaver i686 2.28.3-24.el6_4.1 updates 4.3 M
kpartx i686 0.4.9-64.el6_4.2 updates 55 k
Transaction Summary
================================================================================
Upgrade 6 Package(s)
Total download size: 5.6 M
Downloading Packages:
http://mirrors.163.com/centos/6/updates/i386/Packages/bind-libs-9.8.2-0.17.rc1.el6_4.6.i686.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.163.com/centos/6/updates/i386/Packages/bind-utils-9.8.2-0.17.rc1.el6_4.6.i686.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.163.com/centos/6/updates/i386/Packages/device-mapper-multipath-0.4.9-64.el6_4.2.i686.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.163.com/centos/6/updates/i386/Packages/device-mapper-multipath-libs-0.4.9-64.el6_4.2.i686.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.163.com/centos/6/updates/i386/Packages/gnome-screensaver-2.28.3-24.el6_4.1.i686.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.163.com/centos/6/updates/i386/Packages/kpartx-0.4.9-64.el6_4.2.i686.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error Downloading Packages:
device-mapper-multipath-0.4.9-64.el6_4.2.i686: failure: Packages/device-mapper-multipath-0.4.9-64.el6_4.2.i686.rpm from updates: [Errno 256] No more mirrors to try.
kpartx-0.4.9-64.el6_4.2.i686: failure: Packages/kpartx-0.4.9-64.el6_4.2.i686.rpm from updates: [Errno 256] No more mirrors to try.
32:bind-utils-9.8.2-0.17.rc1.el6_4.6.i686: failure: Packages/bind-utils-9.8.2-0.17.rc1.el6_4.6.i686.rpm from updates: [Errno 256] No more mirrors to try.
gnome-screensaver-2.28.3-24.el6_4.1.i686: failure: Packages/gnome-screensaver-2.28.3-24.el6_4.1.i686.rpm from updates: [Errno 256] No more mirrors to try.
device-mapper-multipath-libs-0.4.9-64.el6_4.2.i686: failure: Packages/device-mapper-multipath-libs-0.4.9-64.el6_4.2.i686.rpm from updates: [Errno 256] No more mirrors to try.
32:bind-libs-9.8.2-0.17.rc1.el6_4.6.i686: failure: Packages/bind-libs-9.8.2-0.17.rc1.el6_4.6.i686.rpm from updates: [Errno 256] No more mirrors to try.
[root@localhost yum]# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Cleaning repos: base epel extras rpmforge updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@localhost yum]# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Determining fastest mirrors
epel/metalink | 4.6 kB 00:00
* epel: mirrors.yun-idc.com
* rpmforge: mirrors.neusoft.edu.cn
base | 3.7 kB 00:00
base/group_gz | 209 kB 00:00
base/filelists_db | 4.9 MB 00:03
base/primary_db | 3.4 MB 00:00
base/other_db | 2.0 MB 00:01
epel | 4.2 kB 00:00
epel/group_gz | 237 kB 00:00
epel/filelists_db | 6.6 MB 00:01
epel/primary_db | 4.6 MB 00:00
epel/other_db | 2.6 MB 00:00
epel/updateinfo | 865 kB 00:00
extras | 3.5 kB 00:00
extras/filelists_db | 10 kB 00:00
extras/prestodelta | 953 B 00:00
extras/primary_db | 19 kB 00:00
extras/other_db | 5.5 kB 00:00
rpmforge | 1.9 kB 00:00
rpmforge/filelists_db | 2.3 MB 00:00
rpmforge/primary_db | 2.7 MB 00:01
rpmforge/other_db | 562 kB 00:00
updates | 3.4 kB 00:00
updates/filelists_db | 3.2 MB 00:01
updates/prestodelta | 637 kB 00:00
updates/primary_db | 3.6 MB 00:01
updates/other_db | 423 kB 00:00
epel/pkgtags | 512 kB 00:00
Metadata Cache Created
[root@localhost yum]# yum -y update
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* epel: mirrors.yun-idc.com
* rpmforge: mirrors.neusoft.edu.cn
Setting up Update Process
No Packages marked for Update
[root@localhost yum]#
转自:http://blog.sina.com.cn/s/blog_6e0c0fdf01019onq.html