Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm having trouble doing anything with yum on Fedora 16. Here is the output I'm getting:

[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

And here are the contents of my /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

And here are the contents of /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

Does anyone have any ideas for how to fix this?

share|improve this question
add comment

3 Answers

up vote 3 down vote accepted

It is not a damage of your repomd.xml (repository meta data). I see here two possible problems:

  • your proxy server has a stale partially retrieved copy or just refuses to give a good one.
  • The bad copy was put onto the repository master server and then all mirrors pull it (I used to see it). Anyway at time I write the response the first picked mirror returned a valid file.

Your fedora.repo file is fine.

share|improve this answer
    
Ah, ok. I did just change the proxy - could that have something to do with it? The IP, username, and password are all correct, and I can ssh into it. Is there a way I could get yum to use a SOCKS connection? –  Ian Oct 1 '12 at 22:00
    
wait, wait. sorry. I am still looking at the output –  Serge Oct 1 '12 at 22:02
1  
could you please, try this command at this system's shell prompt: wget http://download.fedoraproject.org/pub/fedora/linux/releases/16/Everything/x86_64‌​/os/repodata/repomd.xml –  Serge Oct 1 '12 at 22:05
    
Alright, got the file repomd.xml. Here are the contents: –  Ian Oct 1 '12 at 22:15
    
[user@mycomputer yum-3.4.3]$ cat repomd.xml SSH-2.0-OpenSSH_5.0 Protocol mismatch. –  Ian Oct 1 '12 at 22:16
show 5 more comments

I got it working by adding a proxy tag in my yum.conf file which was initially missing.

share|improve this answer
add comment

This is for sure a proxy problem. Yum is not getting out.

share|improve this answer
3  
Hi Ben! Welcome to U&L. We like our answers here to have a good amount of detail. This answer is likely to get deleted or converted to a comment. If you have more to add, that would be great. –  Kazark Feb 5 '13 at 16:43
add comment

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.