I'm coming across this error below when I run: sudo yum update
Downloading packages:
No Presto metadata available for base
python-augeas-0.5.0-2.el7.noarch.rpm | 25 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : python-augeas-0.5.0-2.el7.noarch 1/2
Error unpacking rpm package python-augeas-0.5.0-2.el7.noarch
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/python_augeas-0.5.0-py2.7.egg-info: cpio: rename
Verifying : python-augeas-0.5.0-2.el7.noarch 1/2
python-augeas-0.4.1-5.el7.noarch was supposed to be removed but is not!
Verifying : python-augeas-0.4.1-5.el7.noarch 2/2
Failed:
python-augeas.noarch 0:0.4.1-5.el7 python-augeas.noarch 0:0.5.0-2.el7
Complete!
I see that the update is expecting a file to be removed. My plan was to find it and remove and then try the update again. However, find -iname "python-augeas-0.4.1-5.el7.noarch"
doesn't return anything for me, so I have my doubts that removing that file is the way to go.
Admittedly I'm not a sys admin or even very competent when it comes to stuff like this. Any help is appreciated. Thanks.
EDIT 1:
As suggested by Michael Hampton, here are the permissions and attributes:
$ ls -ld /usr/lib/python2.7/site-packages/python_augeas-0.5.0-py2.7.egg-info
drwxr-xr-x. 2 root root 4096 Jun 29 2015 /usr/lib/python2.7/site-packages/python_augeas-0.5.0-py2.7.egg-info
$ lsattr -d /usr/lib/python2.7/site-packages/python_augeas-0.5.0-py2.7.egg-info
---------------- /usr/lib/python2.7/site-packages/python_augeas-0.5.0-py2.7.egg-info
EDIT 2:
I uninstalled the package with sudo yum remove python-augeas
. I then reinstalled with the following error:
$ sudo yum install python-augeas
Loaded plugins: fastestmirror, langpacks, remove-with-leaves
Loading mirror speeds from cached hostfile
* base: mirrors.rit.edu
* epel: mirror.steadfast.net
* extras: centos.chi.host-engine.com
* nux-dextop: mirror.li.nux.ro
* updates: mirrors.rit.edu
Resolving Dependencies
--> Running transaction check
---> Package python-augeas.noarch 0:0.5.0-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================
Installing:
python-augeas noarch 0.5.0-2.el7 base 25 k
Transaction Summary
======================================================================================================================================================
Install 1 Package
Total download size: 25 k
Installed size: 71 k
Is this ok [y/d/N]: y
Downloading packages:
python-augeas-0.5.0-2.el7.noarch.rpm | 25 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python-augeas-0.5.0-2.el7.noarch 1/1
Error unpacking rpm package python-augeas-0.5.0-2.el7.noarch
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/python_augeas-0.5.0-py2.7.egg-info: cpio: rename
Verifying : python-augeas-0.5.0-2.el7.noarch 1/1
Failed:
python-augeas.noarch 0:0.5.0-2.el7
Complete!
EDIT 3:
Michael Hampton was correct about the permissions of my directory:
$ ls -ld /usr/lib/python2.7/site-packages/
drwxr-xr-x. 161 root root 12288 Jan 14 12:47 /usr/lib/python2.7/site-packages/
Solution:
sudo chmod 777 /usr/lib/python2.7/site-packages/
sudo yum install -y python-augeas