百胜损坏的repomd.xml文件


10

我在Fedora 16上使用yum做任何事情都遇到麻烦。这是我得到的输出:

[user@mycomputer yum-3.4.3]$ sudo yum update
[sudo] password for user: 
Loaded plugins: langpacks, presto, priorities, refresh-packagekit
adobe-linux-x86_64                                                                                                                                                                                                                                                                                    |   39 B     00:00 ... 
http://linuxdownload.adobe.com/linux/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for adobe-linux-x86_64: Damaged repomd.xml file
Trying other mirror.
fedora                                                                                                                                                                                                                                                                                                |   39 B     00:00 ... 
http://download.fedoraproject.org/pub/fedora/linux/releases/16/Everything/x86_64/os/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for fedora: Damaged repomd.xml file
Trying other mirror.
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Protocol mismatch./
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/16/rpmfusion-free/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Protocol mismatch./
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/16/rpmfusion-free-updates/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Protocol mismatch./
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/16/rpmfusion-nonfree/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Protocol mismatch./
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/16/rpmfusion-nonfree-updates/mirrorlist.txt
updates                                                                                                                                                                                                                                                                                               |   39 B     00:00 ... 
http://download.fedoraproject.org/pub/fedora/linux/updates/16/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for updates: Damaged repomd.xml file
Trying other mirror.
adobe-linux-x86_64                                                                                                                                                                                                                                                                                    |   39 B     00:00 ... 
http://linuxdownload.adobe.com/linux/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for adobe-linux-x86_64: Damaged repomd.xml file
Trying other mirror.
Error: failure: repodata/repomd.xml from adobe-linux-x86_64: [Errno 256] No more mirrors to try

这是我的/etc/yum.conf的内容:

[user@mycomputer yum-3.4.3]$ cat /etc/yum.conf                                                                                                                                                                                                                                                                               
[main]                                                                                                                                                                                                                                                                                                                       
cachedir=/var/cache/yum/$basearch/$releasever                                                                                                                                                                                                                                                                                
keepcache=0                                                                                                                                                                                                                                                                                                                  
debuglevel=2                                                                                                                                                                                                                                                                                                                 
logfile=/var/log/yum.log                                                                                                                                                                                                                                                                                                     
exactarch=1                                                                                                                                                                                                                                                                                                                  
obsoletes=1                                                                                                                                                                                                                                                                                                                  
gpgcheck=1                                                                                                                                                                                                                                                                                                                   
plugins=1                                                                                                                                                                                                                                                                                                                    
installonly_limit=3                                                                                                                                             
proxy=http://xx.xx.xx.xx:xxxx
PROXY_USERNAME=user
PROXY_PASSWORD=password

这是/etc/yum.repos.d/fedora.repo的内容:

[user@mycomputer yum-3.4.3]$ cat /etc/yum.repos.d/fedora.repo 
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

有人对如何解决这个问题有任何想法吗?

Answers:


6

这不是对您repomd.xml(存储库元数据)的损害。我在这里看到两个可能的问题:

  • 您的代理服务器有一个过时的部分检索副本,或者只是拒绝提供一个好的副本。
  • 不良副本被放到存储库主服务器上,然后所有镜像将其拉出(我曾经看到过)。无论如何,在我编写响应时,第一个选择的镜像返回了一个有效文件。

您的fedora.repo档案很好。


喔好吧。我只是更改了代理-可能与它有关吗?IP,用户名和密码都正确,我可以使用它。有没有办法让yum使用SOCKS连接?
2012年

等等。抱歉。我仍在查看输出
Serge 2012年

1
请你,在这个系统中尝试这个命令的shell提示符:wget http://download.fedoraproject.org/pub/fedora/linux/releases/16/Everything/x86_64/os/repodata/repomd.xml
塞尔

好了,得到了文件repomd.xml。以下是内容:
伊恩

[user @ mycomputer yum-3.4.3] $ cat repomd.xml SSH-2.0-OpenSSH_5.0协议不匹配。
伊恩

3

我通过在yum.conf最初缺少的文件中添加代理标签来使其工作。


1
  1. 打开yum.conf

    vi /etc/yum.conf
    
  2. 在最后添加“代理”标签

    proxy=http://XXXX.XXX.XXXX.XXX:XXXX
    

保存并关闭。这应该工作。


0

VLC不是Fedora 20-23上的预安装存储库。

如果您在计算机上安装了他们的发布存储库,请尝试将其删除并再次测试下载。安装vlc应用程序后,只需删除未完成的存储库。

cd /etc/yum.repos.d
ls -lrt
rm -f rpmfusion-free*

删除该非官方融合存储库后,一切都会正常。


-1

用这个:

# sudo yum clean all
# sudo yum update
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.