Ask Your Question

fedora 17 yum error

asked 2012-04-19 21:02:35 -0600

Salil gravatar image

updated 2012-04-20 00:05:21 -0600

When I try to do 'yum update' or 'yum install', I get this error:

        self._metalink = metalink.MetaLinkRepoMD(result)
      File "/usr/lib/python2.7/site-packages/yum/", line 186, in __init__
        root = xmlparse(filename)
      File "/usr/lib/python2.7/site-packages/yum/", line 1195, in cElementTree_xmlparse
        return __cached_cElementTree.parse(filename)
      File "<string>", line 62, in parse
      File "<string>", line 37, in parse
    RuntimeError: cannot load dispatch table from pyexpat

I printed the file for which xml parsing is failing. It is /var/cache/yum/i386/17/fedora/metalink.xml.tmp So, I did:

yum clean headers  
yum clean metadata  
yum clean packages

But to no avail. I still get the error.

Any ideas?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-04-20 00:17:13 -0600

mpelletier gravatar image

I downloaded PyXML-0.8.4-27.fc17.x8664.rpm, expat-2.1.0-1.fc17.x8664.rpm, and expat-devel-2.0.1-12.fc17.x86_64 from rpmfind and installed them manually using rpm -ivh with the --force option. This seems to have fixed my problem. Let me know if it works for you too.

edit flag offensive delete link more

answered 2012-04-19 23:28:05 -0600

mpelletier gravatar image

I have the same problem after running an update on F17 Beta. I tried sudo yum clean meta, which did not work, and then I tried sudo yum clean all and that didn't work either. I am sure there is a fairly simple fix, but I am not to sure what.

edit flag offensive delete link more

Question Tools


Asked: 2012-04-19 21:02:35 -0600

Seen: 2,072 times

Last updated: Apr 20 '12