Yum update fails after CentOS 5 to Oracle Linux EL5 conversion

After converting an E-Business Suite virtual machine I have running at home from CentOS 5 to Oracle Linux EL5 using Oracle’s provided script, my yum update stopped working. Whenever running the command, I would get the following (truncated) output:

Running Transaction Test
Finished Transaction Test

Transaction Check Error:
file /usr/share/backgrounds/images/default-5_4.jpg from install of oracle-logos-4.9.17-10.noarch conflicts with file from package desktop-backgrounds-basic-2.0-41.el5.centos.noarch
file /usr/share/backgrounds/images/default-dual-wide.jpg from install of oracle-logos-4.9.17-10.noarch conflicts with file from package desktop-backgrounds-basic-2.0-41.el5.centos.noarch
file /usr/share/backgrounds/images/default-dual.jpg from install of oracle-logos-4.9.17-10.noarch conflicts with file from package desktop-backgrounds-basic-2.0-41.el5.centos.noarch
file /usr/share/backgrounds/images/default-wide.jpg from install of oracle-logos-4.9.17-10.noarch conflicts with file from package desktop-backgrounds-basic-2.0-41.el5.centos.noarch
file /usr/share/backgrounds/images/default.jpg from install of oracle-logos-4.9.17-10.noarch conflicts with file from package desktop-backgrounds-basic-2.0-41.el5.centos.noarch

 

Some quick googling only yielded a forum post in another language, so I had to improvise. To fix the problem, I removed the offending package and reinstalled it before running yum update:

yum erase desktop-backgrounds-basic-2.0-41.el5.centos.noarch

This uninstalled Nautilus, which is GNOME’s file manager. Simply issuing this command reinstalled Nautilus and the offending package:

yum install nautilus

Now I am able to again use yum update. Hope this helps someone else!