【问题标题】:yum transaction check error when installing mysql安装mysql时yum事务检查错误
【发布时间】:2015-09-15 19:14:01
【问题描述】:

我正在尝试在我们的 Centos 5 服务器上安装 mysql 5.6,但无论我遵循哪个说明,我总是以 yum 事务错误告终。

我已经尝试将 Mysql 5.1 升级到 5.6,我也尝试过简单地完全删除 mysql 并进行全新安装,但它不起作用。

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

确认没有安装mysql包。

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

然后我做了一个yum localinstall mysql-community-release-el5-5.noarch.rpm,但上面写着“不更新已安装的软件包”。

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

所以我尝试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 目录,但它仍然会发生。

谁能帮我解决这个问题?

谢谢。

【问题讨论】:

    标签: mysql linux yum centos5


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2016-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-21
      • 2021-04-12
      • 2011-07-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多