Bug 1307119 - dnf install error of python-dns
Summary: dnf install error of python-dns
Alias: None
Product: Fedora
Classification: Fedora
Component: python-dns
Version: 23
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Jeffrey C. Ollie
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2016-02-12 18:25 UTC by ingli
Modified: 2016-02-14 16:31 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2016-02-14 16:31:53 UTC

Attachments (Terms of Use)

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 

  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.

Note You need to log in before you can comment on or make changes to this bug.