Ask Your Question

Revision history [back]

I had the same issue. I managed to fix it by reinstalling dnf using yum-deprecated.

First I had to workaround an issue (" Error: Invalid version flag: if") when running yum-deprecated I did this by:

$ diff /usr/lib/python2.7/site-packages/yum/ /usr/lib/python2.7/site-packages/yum/
<                 raise Errors.MiscError, 'Invalid version flag: %s' % f
>                 #raise Errors.MiscError, 'Invalid version flag: %s' % f
>                 pass

Then I removed libsolv, and all it's dependencies (including dnf)

yum-deprecated remove libsolv

Then I installed dnf again:

yum-deprecated install dnf

Hope this helps...