Fedora 21 PyYAML fails to update

Spotted some errors after upgrading to Fedora 21 with PyYAML failing when doing a yum update:

Error unpacking rpm package PyYAML-3.11-6.fc21.x86_64
error: unpacking of archive failed on file /usr/lib64/python2.7/site-packages/PyYAML-3.11-py2.7.egg-info: cpio: rename
error: PyYAML-3.11-6.fc21.x86_64: install failed
  PyYAML.x86_64 0:3.10-10.fc20                  PyYAML.x86_64 0:3.11-6.fc21

The fix for this is to remove the temporary installation files for version 3.11:

rm -rf /usr/lib64/python2.7/site-packages/PyYAML-3.11-py2.7.egg-info*

Then yum update will work correctly

  1 Comment

  1. Dan   •  

    Thanks for this! On my system, this required sudo, but otherwise it worked like a charm.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.