虚拟化容器,大数据,DBA,中间件,监控。

yum 时提示Transaction Check Error的问题

21 10月
作者:admin|分类:系统运维

yum 时提示Transaction Check Error的问题


在用yum install 时 出现 Transaction Check Error 是因为软件冲突导致的。以下红色部分就是冲突的软件,

如果是rpm安装的,可以直接rpm 卸载掉,重新yum install 安装。

安装包冲突了,卸载掉mysql-5.0.95-1.el5_7.1.i386 再试试看
rpm -e mysql-5.0.95-1.el5_7.1.i386 

或是
yum -y remove  mysql-5.0.95-1.el5_7.1.i386


[root@localhost ~]# yum install mysql

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.cuhk.edu.hk
 * extras: ftp.cuhk.edu.hk
 * updates: ftp.cuhk.edu.hk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.95-5.el5_9 set to be updated
--> Processing Dependency: perl(DBI) for package: mysql
--> Running transaction check
---> Package perl-DBI.i386 0:1.52-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                    Arch                   Version                            Repository              Size
===================================================================================================================
Installing:
 mysql                      i386                   5.0.95-5.el5_9                     base                   4.9 M
Installing for dependencies:
 perl-DBI                   i386                   1.52-2.el5                         base                   600 k

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

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


Transaction Check Error:
  file /usr/bin/mysql_config from install of mysql-5.0.95-5.el5_9.i386 conflicts with file from package MySQL-devel-standard-4.1.22-0.rhel4.i386
  file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.0.95-5.el5_9.i386 conflicts with file from package MySQL-devel-standard-4.1.22-0.rhel4.i386

Error Summary
-------------

[root@localhost ~]# rpm -qa|grep MySQL*
[root@localhost ~]# yum remove mysql
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: mysql
Loading mirror speeds from cached hostfile
 * base: ftp.cuhk.edu.hk
 * extras: ftp.cuhk.edu.hk
 * updates: ftp.cuhk.edu.hk
Package(s) mysql available, but not installed.
No Packages marked for removal
[root@localhost ~]# yum remove MySQL-devel-standard-4.1.22-0.rhel4.i386
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package MySQL-devel-standard.i386 0:4.1.22-0.rhel4 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                            Arch               Version                       Repository               Size
===================================================================================================================
Removing:
 MySQL-devel-standard               i386               4.1.22-0.rhel4                installed                12 M

Transaction Summary
===================================================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : MySQL-devel-standard                                                                        1/1

Removed:
  MySQL-devel-standard.i386 0:4.1.22-0.rhel4                                                                       

Complete!
[root@localhost ~]# yum remove MySQL-devel-standard-4.1.22-0.rhel4.i386
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: MySQL-devel-standard-4.1.22-0.rhel4.i386
Loading mirror speeds from cached hostfile
 * base: ftp.cuhk.edu.hk
 * extras: ftp.cuhk.edu.hk
 * updates: ftp.cuhk.edu.hk
No Packages marked for removal
[root@localhost ~]#
浏览2946 评论0
返回
目录
返回
首页
缓存服务varnish安装配置 RedFlag LinuxSP3 编译安装最新版cmake 2.8.12