Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and tr

来源:互联网 发布:淘宝出售假冒违规处罚 编辑:程序博客网 时间:2024/05/23 00:05

CentOS6.5 64位,能ping通外网,使用yum报错:

[root@node1 yum.repos.d]# yum search vim
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
[/color]

然后更换了163的yum源(http://mirrors.163.com/.help/CentOS6-Base-163.repo)后出现以下错误

[root@node1 yum.repos.d]# yum search vim
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
base                                                                                                                                                                    | 3.4 kB     00:00     
http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again


各位大侠给点指导




答案:可能是因为网络的问题

公司网络拦截了



转载:http://bbs.csdn.net/topics/390940070

http://bbs.chinaunix.net/thread-3758266-1-1.html

0 0
原创粉丝点击