Bug 1307119

Summary: dnf install error of python-dns
Product: [Fedora] Fedora Reporter: ingli <tech>
Component: python-dnsAssignee: Jeffrey C. Ollie <jeff>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: aviso, jeff, louiz, pspacek, pwouters, tech
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-14 16:31:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ingli 2016-02-12 18:25:50 UTC
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

Comment 1 Jeffrey C. Ollie 2016-02-12 20:41:52 UTC
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.

Comment 2 ingli 2016-02-12 22:34:04 UTC
Manually removing dnspython* in /usr/lib/python2.7/site-packages/ allowed successfully running dnf install python-dns.