Hide Forgot
dnf install -y python-ptyprocess fails with Installing : python-ptyprocess-0.5-2.fc23.noarch 1/1 Error unpacking rpm package python-ptyprocess-0.5-2.fc23.noarch Error unpacking rpm package python-ptyprocess-0.5-2.fc23.noarch error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/ptyprocess-0.5-py2.7.egg-info: cpio: rename python-ptyprocess-0.5-2.fc23.noarch was supposed to be installed but is not!
Thanks for the bug report. Unfortunately, I cannot reproduce this. How reproducible is this for you? Could you paste the complete output of "dnf install python-ptyprocess" please?
Do you maybe have ptyprocess installed via pip? And now you try to install it also with dnf? What's the output of "ls -lrt /usr/lib/python2.7/site-packages/ptyprocess*"?
I saw the same error for some different package (I think it was python[23]-igor, but not 100% sure) a few days ago. I then started the install again and it went fine. Unfortunately I didn't investigate so I don't know if this was caused by some stray file or if there's some rpm/dnf issue.
Thanks Thomas It was indeed due to a leftover pip install.