安装时 yum 事务检查错误 mysql

yum transaction check error when installing mysql

我正在尝试在我们的 Centos 5 服务器上安装 mysql 5.6,但无论我遵循哪个说明,我总是以 yum t运行saction 错误结束。

我试过将 Mysql 5.1 升级到 5.6,我也试过完全删除 mysql 并进行全新安装,但它就是行不通。

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

确认没有安装 mysql 软件包。

我从 MySQL 网站下载了 Linux 5 的 rpm。

然后我做了一个 yum localinstall mysql-community-release-el5-5.noarch.rpm 但上面写着 "does not update installed packages".

我试过删除 mysql-community-release-el5-5 以及我不小心安装的 el6,但是使用 yum remove 他们都说 "no match for argument: PACKAGENAMEHERE"

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

所以我运行rpm -e mysql-community-release把它删了,然后又做了前面的步骤,没有说已经安装了,估计现在又安装了。

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

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 目录,但它仍然发生。

谁能帮我解决这个问题?

谢谢。

现在设法解决了这个问题,通常是在我提出问题后立即解决。

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