Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

rpm install gave conflcts from another package

Posted on 2011-02-15
12
Medium Priority
?
1,530 Views
Last Modified: 2012-05-11
Hi,

Kindly advise how do I go about resolving the following problem:

# rpm -i mysqlclient14-4.1.22-1.el4s1.1.i386.rpm
warning: mysqlclient14-4.1.22-1.el4s1.1.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
        file /usr/lib/mysql/libmysqlclient.so.14.0.0 from install of mysqlclient14-4.1.22-1.el4s1.1 conflicts with file from package mysql-4.1.12-3.RHEL4.1
        file /usr/lib/mysql/libmysqlclient_r.so.14.0.0 from install of mysqlclient14-4.1.22-1.el4s1.1 conflicts with file from package mysql-4.1.12-3.RHEL4.1

I also tried the upgrade option but no joy :
# rpm -U mysqlclient14-4.1.22-1.el4s1.1.i386.rpm
warning: mysqlclient14-4.1.22-1.el4s1.1.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
        file /usr/lib/mysql/libmysqlclient.so.14.0.0 from install of mysqlclient14-4.1.22-1.el4s1.1 conflicts with file from package mysql-4.1.12-3.RHEL4.1
        file /usr/lib/mysql/libmysqlclient_r.so.14.0.0 from install of mysqlclient14-4.1.22-1.el4s1.1 conflicts with file from package mysql-4.1.12-3.RHEL4.1


# rpm -qa | grep -i sql
mysql-4.1.12-3.RHEL4.1
cyrus-sasl-sql-2.1.19-5.EL4
perl-DBD-MySQL-2.9004-3.1
postgresql-libs-7.4.8-1.RHEL4.1
php-mysql-4.3.9-3.8
sqlite2-2.8.17-2.el4.remi
mysql-server-4.1.12-3.RHEL4.1
#
0
Comment
Question by:sunhux
  • 7
  • 4
12 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 1600 total points
ID: 34903382
If you don't need the existing version of RPM, you may first erase it by

rpm -e mysql

Then you can install it
rpm -ivh mysqlclient14-4.1.22-1.el4s1.1.i386.rpm

If you think that the conflicts would not affect you, use --force

rpm -Uvh --force mysqlclient14-4.1.22-1.el4s1.1.i386.rpm
0
 
LVL 31

Expert Comment

by:farzanj
ID: 34903386
You can delete the older version after installing the new version also.  But try uninstalling old version first.
0
 

Author Comment

by:sunhux
ID: 34903440

I would rather not uninstall the old version but just "upgrade" it because
when trying to uninstall the old version it complains that it's currently
being used by several applications.

Strange thing is the required file libmysqlclient.so.14 is found in my
server & I've added the path /usr/lib/mysql to PATH variable as well
but still getting this issue

# cp -p /usr/lib/mysql/libmysqlclient.so.14 .
[root@tmp]# rpm -i ./dovecot-2.0.9-1_125.el4.i386.rpm
warning: only V3 signatures can be verified, skipping V4 signature
error: Failed dependencies:
        libmysqlclient.so.14(libmysqlclient_14) is needed by dovecot-2.0.9-1_125.el4.i386
[root@ tmp]# ls -ld /usr/lib/mysql/libmysqlclient.so.*
lrwxrwxrwx  1 root root      24 Aug 17  2005 /usr/lib/mysql/libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
-rwxr-xr-x  1 root root 1139172 Aug 23  2005 /usr/lib/mysql/libmysqlclient.so.14.0.0


[root@ tmp]# rpm -qa | grep -i mysql
mysql-4.1.12-3.RHEL4.1
perl-DBD-MySQL-2.9004-3.1
php-mysql-4.3.9-3.8
mysql-server-4.1.12-3.RHEL4.1
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 1600 total points
ID: 34903484
This was a terrible trouble with rpm and that is why yum was introduced in RHEL5.

You have to begin somewhere.  A is dependent on B, B is dependent on C and C is dependent on A and it is never resolved.  So you have to use your judgement and have to force it to uninstall by using.

rpm -e --nodeps mysql

For instance you could make the above command run by issuing the following command.

 rpm -ivh --nodeps ./dovecot-2.0.9-1_125.el4.i386.rpm
0
 
LVL 31

Expert Comment

by:farzanj
ID: 34903495
If you want to upgrade without any trouble:

Try

yum -y update mysql
0
 
LVL 31

Expert Comment

by:farzanj
ID: 34903499
For yum to run, you need at least RHEL5/CentOS5 etc.
0
 

Author Comment

by:sunhux
ID: 34903507

The --force option managed to get the libmysqlclient & dovecot rpms installed.

However, now my dovecot can't start (but I guess this is a different problem now) :


# init.d/dovecot start
Starting Dovecot Imap: Error: socket() failed: Address family not supported by protocol
Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol
Fatal: Failed to start listeners
                                                           [FAILED]
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 1600 total points
ID: 34903536
Try:

rpm -Fvh or rpm -Uvh
To take care of dovecot

If you have yum, use it
yum -y update dovecot

0
 

Author Comment

by:sunhux
ID: 34903566

I'm on RHES 4.2, not RHEL 5.  Unfortunately this box has no yum connectivity
permitted (by firewall) to Internet
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 1600 total points
ID: 34903580
Well, try reinstalling or freshen (-F) the dovecot RPM as I described above.  Forget about yum.
0
 
LVL 80

Assisted Solution

by:arnold
arnold earned 400 total points
ID: 34903994
RHEL 4 used the up2date feature and you would need to have your system registered with rhn.redhat.com.
0
 

Author Closing Comment

by:sunhux
ID: 34912882
excellent
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question