yum install error

Solution 1:

If you are unable to change the file to root:root; and you are root. Then the most likely situation is that the immutable parameter has been set on the file. Confirm and change the file's attributes.

# lsattr /etc/yum.conf
----i--------e-- /etc/yum.conf 

IF this is the output from the previous command, do the following.

# chattr -i /etc/yum.conf
# lsattr /etc/yum.conf
-------------e-- /etc/yum.conf