2017-08-09 74 views
1

當我執行命令yum repolist時出現以下錯誤;centos中yum版本庫的問題

[[email protected] yum.repos.d]# yum repolist 

Loaded plugins: fastestmirror, langpacks 

base                               | 2.8 kB 00:00:00  
http:// mirror.centos.org/centos/7/os/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file 
Trying other mirror. 
base/7/x86_64                             | 2.8 kB 00:00:00  

http:// mirror.centos.org/centos/7/os/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file 
Trying other mirror. 
extras/7/x86_64                            | 2.8 kB 00:00:00  

http:// mirror.centos.org/centos/7/extras/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for extras: Damaged repomd.xml file 
Trying other mirror. 
updates/7/x86_64                            | 2.8 kB 00:00:00  

http:// mirror.centos.org/centos/7/updates/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for updates: Damaged repomd.xml file 
Trying other mirror. 

repo id                repo name                status 
base/7/x86_64               CentOS-7 - Base               0 
extras/7/x86_64              CentOS-7 - Extras              0 
updates/7/x86_64              CentOS-7 - Updates              0 
repolist: 0 
+0

您是否嘗試過'yum clean all' - 如果不是,請嘗試一下並查看錯誤是否更改或去除。 – user3788685

回答

0

yum沒有配置,一旦配置就解決了。