Error importing repomd.xml for base: Damaged repomd.xml file

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/LGHunter/article/details/83574978

linux下使用yum,如:yum -y intsall wget;yum makecache等命令时,报如下错:

http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
尝试其他镜像。
base | 3.7 kB 00:00 
http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
尝试其他镜像。
错误:Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

即使换了yum 的镜像源,比如换上阿里,163的,但是均是报相应的该错。

原因:可能网络不通。
解决:试下ping外网是否通。本次遇到的就是ping不通外网导致了该错误。

猜你喜欢

转载自blog.csdn.net/LGHunter/article/details/83574978
今日推荐