安装mysql时出现yum transaction check error

时间:2015-06-29 10:47:21

标签: mysql linux yum centos5

我试图在我们的Centos 5服务器上安装mysql 5.6,但无论我遵循哪条指令,我都会遇到yum事务错误。

我已尝试将Mysql 5.1升级到5.6,并且我还尝试完全删除mysql并进行全新安装,但它只是无法正常工作。

例如,如果我运行yum remove mysql mysql-*

确认没有安装mysql软件包。

我从MySQL网站下载了rpm for Linux 5.

然后我做了一个yum localinstall mysql-community-release-el5-5.noarch.rpm,但是说"没有更新已安装的软件包"。

我已经尝试删除mysql-community-release-el5-5以及我意外安装的el6,但使用yum remove他们都说"参数不匹配:PACKAGENAMEHERE&#34 ;

所以我尝试rpm -Uvh mysql-community-release-el5-5.noarch.rpm并说它已经安装了。

所以我运行rpm -e mysql-community-release将其删除,然后再次执行上一步,并且它没有说已经安装了,所以现在可能已经安装了它。

然后我运行yum install mysql-community-server,这就是我得到事务检查错误的地方:

yum install mysql-community-server
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: centos.serverspace.co.uk
 * base: mirror.sov.uk.goscomb.net
 * contrib: centos.serverspace.co.uk

 * epel: mirrors.coreix.net
 * extras: mirrors.coreix.net
 * rpmforge: mirror.nl.leaseweb.net
 * rpmforge-extras: mirror.nl.leaseweb.net
 * updates: centos.serverspace.co.uk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.i386 0:5.6.25-2.el5 set to be updated
--> Processing Dependency: mysql-community-common = 5.6.25-2.el5 for package: mysql-community-server
--> Processing Dependency: mysql-community-client = 5.6.25-2.el5 for package: mysql-community-server
--> Running transaction check
---> Package mysql-community-client.i386 0:5.6.25-2.el5 set to be updated
--> Processing Dependency: mysql-community-libs = 5.6.25-2.el5 for package: mysql-community-client
---> Package mysql-community-common.i386 0:5.6.25-2.el5 set to be updated
--> Processing Dependency: mysql = 5.6.25-2.el5 for package: mysql-community-common
--> Running transaction check
---> Package mysql.i386 0:5.6.25-2.el5 set to be updated
--> Processing Dependency: mysql-community-libs-compat = 5.6.25-2.el5 for package: mysql
---> Package mysql-community-libs.i386 0:5.6.25-2.el5 set to be updated
--> Running transaction check
---> Package mysql-community-libs-compat.i386 0:5.6.25-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================
 Package                           Arch       Version             Repository               Size
================================================================================================
Installing:
 mysql-community-server            i386       5.6.25-2.el5        mysql56-community        83 M
Installing for dependencies:
 mysql                             i386       5.6.25-2.el5        mysql56-community        38 k
 mysql-community-client            i386       5.6.25-2.el5        mysql56-community        22 M
 mysql-community-common            i386       5.6.25-2.el5        mysql56-community       692 k
 mysql-community-libs              i386       5.6.25-2.el5        mysql56-community       2.3 M
 mysql-community-libs-compat       i386       5.6.25-2.el5        mysql56-community       2.0 M

Transaction Summary
================================================================================================
Install       6 Package(s)
Upgrade       0 Package(s)

Total size: 110 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /usr/lib/mysql/libmysqlclient.so.15.0.0 from install of mysql-community-libs-compat-5.6.25-2.el5.i386 conflicts with file from package mysqlclient15-5.0.91-1.jason.1.i386
  file /usr/lib/mysql/libmysqlclient_r.so.15.0.0 from install of mysql-community-libs-compat-5.6.25-2.el5.i386 conflicts with file from package mysqlclient15-5.0.91-1.jason.1.i386

Error Summary

我甚至尝试在执行此操作之前完全删除/ usr / lib / mysql目录,但它仍然会发生。

有人可以帮我解决这个问题吗?

感谢。

1 个答案:

答案 0 :(得分:1)

管理现在解决此问题,通常只要我提出问题。

正在运行rpm -qa mysql\*向我展示了这个mysqlclient.jason的东西,我可以使用rpm -e删除它然后让我安装