YUM错误conflicts with file from package的解决办法
  • YUM一堆错误,吓了一跳,仔细一看,是64位的包和32位的包冲突。天呐,这是什么情况,不知道以前的系统管理员怎么管理的。YUM错误conflicts with file from package的解决办法,先卸载有冲突的软件包,如下是 yum -y remove subversion 然后在重新YUM就OK了。


    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test

    Transaction Check Error:
      file /usr/share/emacs/site-lisp/psvn.el from install of subversion-1.4.6-jason.1.i386 conflicts with file from package subversion-1.4.2-4.el5_3.1.x86_64
      file /usr/share/locale/es/LC_MESSAGES/subversion.mo from install of subversion-1.4.6-jason.1.i386 conflicts with file from package subversion-1.4.2-4.el5_3.1.x86_64
      file /usr/share/locale/it/LC_MESSAGES/subversion.mo from install of subversion-1.4.6-jason.1.i386 conflicts with file from package subversion-1.4.2-4.el5_3.1.x86_64
      file /usr/share/locale/ja/LC_MESSAGES/subversion.mo from install of subversion-1.4.6-jason.1.i386 conflicts with file from package subversion-1.4.2-4.el5_3.1.x86_64
      file /usr/share/locale/ko/LC_MESSAGES/subversion.mo from install of subversion-1.4.6-jason.1.i386 conflicts with file from package subversion-1.4.2-4.el5_3.1.x86_64
      file /usr/share/locale/nb/LC_MESSAGES/subversion.mo from install of subversion-1.4.6-jason.1.i386 conflicts with file from package subversion-1.4.2-4.el5_3.1.x86_64
      file /usr/share/locale/zh_CN/LC_MESSAGES/subversion.mo from install of subversion-1.4.6-jason.1.i386 conflicts with file from package subversion-1.4.2-4.el5_3.1.x86_64
      file /usr/share/xemacs/site-packages/lisp/psvn.el from install of subversion-1.4.6-jason.1.i386 conflicts with file from package subversion-1.4.2-4.el5_3.1.x86_64

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

     

    正当高兴的时候,发现yum安装webmin的时候还是有错误:

    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    FATAL - 2010-11-28 15:51:02 - Fatal Error Occurred: Something went wrong during installation: 0
    FATAL - 2010-11-28 15:51:03 - Cannot continue installation.
    FATAL - 2010-11-28 15:51:03 - Attempting to remove virtualmin repository configuration, so the installation can be
    FATAL - 2010-11-28 15:51:03 - re-attempted after any problems have been resolved.
    FATAL - 2010-11-28 15:51:03 - Removing temporary directory and files.
    FATAL - 2010-11-28 15:51:03 - If you are unsure of what went wrong, you may wish to review the log
    FATAL - 2010-11-28 15:51:03 - in /root/virtualmin-install.log

    看日志发现,yum更新的时候有重复的32位和64位的包:

    Dependencies Resolved

    ================================================================================
     Package            Arch       Version                 Repository          Size
    ================================================================================
    Installing:
     dovecot            x86_64     1.0.7-7.el5             base               1.7 M
     httpd              i386       2.2.16-jason.1          utterramblings     3.0 M
     httpd              x86_64     1:2.2.3-43.3.vm         virtualmin         1.2 M
     mailman            x86_64     3:2.1.9-4.el5           base               9.8 M
     mod_dav_svn        x86_64     1.4.2-4.el5_3.1         base                70 k
     mod_dav_svn        i386       1.4.6-jason.1           utterramblings     201 k
     mod_perl           x86_64     2.0.4-6.el5             base               4.0 M
     mod_perl           i386       2.0.4-7.jason.2         utterramblings     5.4 M

     

    系统是64位的,所以很明显utterramblings  的yum源32位是有问题的。我们需要删除这个utterramblings源。

     

    [root@654z.com yum.repos.d]# cd /etc/yum.repos.d/
     
    [root@654z.com yum.repos.d]# mv utterrambling.repo utterrambling.repo.del

     

    然后我们yum重新安装virtualmin,终于一切正常了

     

  •  

  • 点这里复制本页地址发送给您QQ/MSN上的好友
  • 300*300广告