当前位置: 技术问答>linux和unix
yum update 过程中出错
来源: 互联网 发布时间:2016-05-19
本文导语: 我在配置yum的过程中出错,错误信息如下: Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again 我的yum配置文件如下(CentOS-5.2版linux): # CentOS-Base.repo # # This file u...
我在配置yum的过程中出错,错误信息如下:
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again
我的yum配置文件如下(CentOS-5.2版linux):
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-5.2 - Base
mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=i386&repo=os
#baseurl=http://centos.ustc.edu.cn/centos/5.2/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
#released updates
[updates]
name=CentOS-5.2 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=$basearch&repo=updates
#baseurl=http://centos.ustc.edu.cn/centos/5.2/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
#packages used/produced in the build but not released
[addons]
name=CentOS-5.2 - Addons
mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=i386&repo=addons
#baseurl=http://centos.ustc.edu.cn/centos/5.2/addons/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
#additional packages that may be useful
[extras]
name=CentOS-5.2 - Extras
mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=i386&repo=extras
#baseurl=http://centos.ustc.edu.cn/centos/5.2/extras/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.2 - Plus
mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=i386&repo=centosplus
#baseurl=http://centos.ustc.edu.cn/centos/5.2/centosplus/i386/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
希望各位帮忙看一下!谢谢!
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again
我的yum配置文件如下(CentOS-5.2版linux):
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-5.2 - Base
mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=i386&repo=os
#baseurl=http://centos.ustc.edu.cn/centos/5.2/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
#released updates
[updates]
name=CentOS-5.2 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=$basearch&repo=updates
#baseurl=http://centos.ustc.edu.cn/centos/5.2/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
#packages used/produced in the build but not released
[addons]
name=CentOS-5.2 - Addons
mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=i386&repo=addons
#baseurl=http://centos.ustc.edu.cn/centos/5.2/addons/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
#additional packages that may be useful
[extras]
name=CentOS-5.2 - Extras
mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=i386&repo=extras
#baseurl=http://centos.ustc.edu.cn/centos/5.2/extras/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.2 - Plus
mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=i386&repo=centosplus
#baseurl=http://centos.ustc.edu.cn/centos/5.2/centosplus/i386/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.2
希望各位帮忙看一下!谢谢!
|
Cannot retrieve repository metadata (repomd.xml)
repomd.xml这个什么文件,你自己找找啊.
repomd.xml这个什么文件,你自己找找啊.
|
yum clean all 再试试