Description of problem: installation of python-dns fails. I have attempted to install various versions; none works. Following http://unix.stackexchange.com/questions/261521/how-to-engage-with-fedora-23-error-message-in-dnf-install-error-of-dnspython/ I have also run "sudo dnf clean packages" and attempted install again. No success. rpm -K Downloads/python-dns-1.12.0GIT465785f-1.fc23.noarch.rpm resulted in "sha1 md5 OK". Version-Release number of selected component (if applicable): 1.12.0GIT465785f-1.fc23 I run Linux 4.3.4-300.fc23.x86_64 on arch x86_64. How reproducible: I have been reproducing this error consistently with several versions over a week. Steps to Reproduce: 1. sudo dnf install python-dns 2. accept download Actual results: dnf output is: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Installing : python-dns-1.12.0GIT465785f-1.fc23.noarch 1/1 Error unpacking rpm package python-dns-1.12.0GIT465785f-1.fc23.noarch Error unpacking rpm package python-dns-1.12.0GIT465785f-1.fc23.noarch error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/dnspython-1.12.0-py2.7.egg-info: cpio: rename python-dns-1.12.0GIT465785f-1.fc23.noarch was supposed to be installed but is not! Verifying : python-dns-1.12.0GIT465785f-1.fc23.noarch 1/1 Failed: python-dns.noarch 1.12.0GIT465785f-1.fc23
I usually get this when I've used pip to install/upgrade dnspython. This can happen inadvertently when using pip to install some other python package that has dnspython as a dependency. Try manually removing anything in /usr/lib/python2.7/site-packages/ related to dnspython and then try installing with dnf again.
Manually removing dnspython* in /usr/lib/python2.7/site-packages/ allowed successfully running dnf install python-dns.