Symptoms
A task fails with:
Transaction Check Error:
file <FILE> from install of <RPM1> conflicts with file from package <RPM2>
For example, a task to install packages on the Linux Shared Hosting NG cluster created during OA update installation fails due to MySQL RPM packages conflict like this:
Transaction Check Error:
file /etc/my.cnf from install of mysql-libs-5.1.70-1.el5.x86_64 conflicts with file from package mysql-5.0.95-5.el5_9.i386
> file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.70-1.el5.x86_64 conflicts with file from package mysql-5.0.95-5.el5_9.i386
file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.70-1.el5.x86_64 conflicts with file from package mysql-5.0.95-5.el5_9.i386
...
Cause
Some files from to be installed The RPM packages conflict with ones from already installed package. If intention is to install same version of the package but for another architecture (multilib system) that usually means that files in already installed package have mismatched attributes or size.
Resolution
At first - reinstall existing package via yum
- that will eliminate any possible issues with inconsistencies in already installed files:
# yum reinstall <RPM2>
Update conflicting packages manually on the hosts:
In this example:
Download the needed RPM packages listed in the failed task e.g. using the 'yumdownloader' utility:
~# yumdownloader mysql mysql-libs
Install the conflicting packages:
~# rpm -Uvh mysql-5.1.70-1.el5.x86_64.rpm mysql-libs-5.1.70-1.el5.x86_64.rpm --force Preparing... ########################################### [100%] 1:mysql-libs ########################################### [ 50%] 2:mysql ########################################### [100%]
- Restart the failed task in OA Task Manager.