解决yum安装时 Cannot retrieve repository metadata (repomd.xml) for repository

打开/etc/yum.repos.d/CentOS6-Base-163.repo

将下面的baseUrl的地址换成网上最新

# CentOS-Base.repo
#
# 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-6 - Base - 163.com
baseurl=http://mirrors.163.com/centos/6/os/x86_64/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/x86_64/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-6 - Extras - 163.com
baseurl=http://mirrors.163.com/centos/6/extras/x86_64/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/6/centosplus/x86_64/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib - 163.com
baseurl=http://mirrors.163.com/centos/6/contrib/x86_64/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

时间: 2024-10-13 09:09:43

解决yum安装时 Cannot retrieve repository metadata (repomd.xml) for repository的相关文章

CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.

服务器上的yum突然不好使用,使用yum的时候报错如下:[[email protected] src]# yum list......Could not retrieve mirrorlist http://mirrorlist.repoforge.org/el6/mirrors-rpmforge error was14: PYCURL ERROR 7 - "couldn't connect to host"http://apt.sw.be/redhat/el6/en/x86_64/r

YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository:

YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository: 今天配置redhat6.6网络源的时候就出现这个提示,网上找了好多方法,试过了很多,但是都没有效果,这时候心都已经累死了啊.果然啊!!之前配置源太顺利,以为没什么难度,但是一段时间之后再过来搞搞,就突然发现很多问题都随之而来啊!! 后来查的资料多了,看到baseurl这个yum的路径格式,突然灵光一闪,立刻去查看自己所写源的baseurl.没想

解决yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:xxxxxx.

这个错误其实很简单,错误信息已经提示你,就是xxxxxx.repo这个文件有问题. (1)打开/etc/yum.repos.d/xxxxxx.repo文件 (2)enabled=1改成enabled=0

yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:xxxxxx.

这个错误其实很简单,错误信息已经提示你,就是xxxxxx.repo这个文件有问题. (1)打开/etc/yum.repos.d/xxxxxx.repo文件 (2)enabled=1改成enabled=0 就可以解决

yum报错Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-source

思路: rm -fr /etc/yum.repo.d/*  #删除下面内容 wget http://mirrors.aliyun.com/repo/Centos-7.repo wget http://mirrors.aliyun.com/repo/Centos-6.repo   #从三个任一选择一个下载 wget http://mirrors.aliyun.com/repo/Centos-5.repo yum clean all  #清除 yum makecache  #重新加载缓存

yum 安装时错误 Errno 14 Couldn't resolve host 解决办法

是由于DNS解析错误引起的 修改/etc/resolv.conf 添加一个nameserver 8.8.8.8完成 yum 安装时错误 Errno 14 Couldn't resolve host 解决办法

yum 安装时错误 Couldn't resolve host 解决办法

修改/etc/resolv.conf 添加:nameserver 8.8.8.8 yum 安装时错误 Couldn't resolve host 解决办法

【转】解决yum安装软件报Couldn't resolve host 'mirrorlist.centos.org问题

转自:http://blog.51cto.com/oldcat1981/1719825 今天在linux环境通过yum安装软件报了以下错误: [[email protected] yum.repos.d]# yum install ncurses devel -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http

利用yum安装时,报错 [Errno 256] No more mirrors to try.

问题: [[email protected] ~]# yum install -y perl-DBD-MySQL  Loaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Set