Yum 更新时“事务检查”失败

Yum 更新时“事务检查”失败

我正在尝试使用 更新我的 Cent OS 5.2 系统yum。但我收到了这个错误:

Transaction Check Error:
  file /usr/share/man/man1/pcregrep.1.gz from install of pcre-8.02-1.jason.1.x86_64 conflicts with file from package pcre-6.6-2.el5_1.7.i386
  file /usr/share/man/man1/pcretest.1.gz from install of pcre-8.02-1.jason.1.x86_64 conflicts with file from package pcre-6.6-2.el5_1.7.i386
  file /etc/my.cnf from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/my_print_defaults.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/mysql.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/mysql_find_rows.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/mysql_waitpid.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/mysqlaccess.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/mysqladmin.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/mysqldump.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/charsets/Index.xml from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/english/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/french/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/german/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386

我可以浏览并安装任何不需要更新 mysql 的包。

我试过了yum clean all

我必须承认,当谈到 Linux 时,我对它的了解只足以让我陷入麻烦,但在我看来,yum 正在尝试将 mysql 更新到 5.1.x,但却无法成功。

非常感谢您的帮助!

答案1

如果您查看错误,您会注意到现有软件包是 i386,其他软件包是 x86_64。这些 arch 通常可以并存,当他们有相同的版本和发布时。要么找到具有相同版本和发行版的 x86_64 或 i386 软件包,要么将 i386 软件包全部删除。

相关内容