RHEL5.8使用yum安装应用时包冲突的处理办法记录,总体思路是如果发现包冲突的情形,那么就把冲突的包给删除掉,然后再重新使用yum安装即可。

冲突示例:

  1. Transaction Check Error:
  2. file /usr/share/locale/af/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  3. file /usr/share/locale/am/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  4. file /usr/share/locale/ar/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  5. file /usr/share/locale/as/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  6. file /usr/share/locale/be/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  7. file /usr/share/locale/bg/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  8. file /usr/share/locale/bn/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  9. file /usr/share/locale/bn_IN/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  10. file /usr/share/locale/ca/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  11. file /usr/share/locale/cs/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  12. file /usr/share/locale/cy/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  13. file /usr/share/locale/da/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  14. file /usr/share/locale/de/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  15. file /usr/share/locale/el/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  16. file /usr/share/locale/en_GB/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  17. file /usr/share/locale/es/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  18. file /usr/share/locale/et/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  19. file /usr/share/locale/fa/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  20. file /usr/share/locale/fi/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  21. file /usr/share/locale/fr/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  22. file /usr/share/locale/gu/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  23. file /usr/share/locale/he/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  24. file /usr/share/locale/hi/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  25. file /usr/share/locale/hr/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  26. file /usr/share/locale/hy/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  27. file /usr/share/locale/id/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  28. file /usr/share/locale/ilo/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  29. file /usr/share/locale/is/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  30. file /usr/share/locale/it/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  31. file /usr/share/locale/ja/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  32. file /usr/share/locale/kn/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  33. file /usr/share/locale/ko/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  34. file /usr/share/locale/lt/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  35. file /usr/share/locale/lv/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  36. file /usr/share/locale/mk/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  37. file /usr/share/locale/ml/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  38. file /usr/share/locale/mr/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  39. file /usr/share/locale/ms/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  40. file /usr/share/locale/nb/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  41. file /usr/share/locale/nl/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  42. file /usr/share/locale/no/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  43. file /usr/share/locale/nso/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  44. file /usr/share/locale/or/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  45. file /usr/share/locale/pa/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  46. file /usr/share/locale/pl/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  47. file /usr/share/locale/pt/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  48. file /usr/share/locale/pt_BR/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  49. file /usr/share/locale/ro/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  50. file /usr/share/locale/ru/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  51. file /usr/share/locale/si/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  52. file /usr/share/locale/sk/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  53. file /usr/share/locale/sl/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  54. file /usr/share/locale/sr/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  55. file /usr/share/locale/sr@Latn/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  56. file /usr/share/locale/sv/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  57. file /usr/share/locale/ta/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  58. file /usr/share/locale/te/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  59. file /usr/share/locale/th/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  60. file /usr/share/locale/tr/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  61. file /usr/share/locale/uk/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  62. file /usr/share/locale/ur/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  63. file /usr/share/locale/vi/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  64. file /usr/share/locale/zh_CN/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  65. file /usr/share/locale/zh_TW/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  66. file /usr/share/locale/zu/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.9-1.el5.centos.x86_64 conflicts with file from package firstboot-tui-1.4.27.9-1.el5.x86_64
  67. file /usr/share/backgrounds/images/default-5_4.jpg from install of desktop-backgrounds-basic-2.0-41.el5.centos.noarch conflicts with file from package redhat-logos-4.9.16-1.noarch
  68. file /usr/share/backgrounds/images/default-dual-wide.jpg from install of desktop-backgrounds-basic-2.0-41.el5.centos.noarch conflicts with file from package redhat-logos-4.9.16-1.noarch
  69. file /usr/share/backgrounds/images/default-dual.jpg from install of desktop-backgrounds-basic-2.0-41.el5.centos.noarch conflicts with file from package redhat-logos-4.9.16-1.noarch
  70. file /usr/share/backgrounds/images/default-wide.jpg from install of desktop-backgrounds-basic-2.0-41.el5.centos.noarch conflicts with file from package redhat-logos-4.9.16-1.noarch
  71. file /usr/share/backgrounds/images/default.jpg from install of desktop-backgrounds-basic-2.0-41.el5.centos.noarch conflicts with file from package redhat-logos-4.9.16-1.noarch
  72.  
  73. Error Summary
  74. -------------

从以上错误信息中可以看到,在安装应用时所需的firstboot-tui包和redhat-logos两个包与现有的包冲突了,因此执行删除命令清除两个冲突包。

yum -y remove firstboot-tui*
yum -y remove redhat-logos-*

  1. [root@localhost ~]# yum -y remove firstboot-tui*
  2. Loaded plugins: katello, product-id, security, subscription-manager
  3. Updating certificate-based repositories.
  4. Unable to read consumer identity
  5. Setting up Remove Process
  6. Resolving Dependencies
  7. --> Running transaction check
  8. ---> Package firstboot-tui.x86_64 0:1.4.27.9-1.el5 set to be erased
  9. --> Processing Dependency: firstboot-tui = 1.4.27.9 for package: firstboot
  10. --> Running transaction check
  11. ---> Package firstboot.x86_64 0:1.4.27.9-1.el5 set to be erased
  12. --> Processing Dependency: firstboot for package: system-config-keyboard
  13. --> Running transaction check
  14. ---> Package system-config-keyboard.noarch 0:1.2.11-1.el5 set to be erased
  15. --> Finished Dependency Resolution
  16.  
  17. Dependencies Resolved
  18.  
  19. ============================================================================================================
  20. Package Arch Version Repository Size
  21. ============================================================================================================
  22. Removing:
  23. firstboot-tui x86_64 1.4.27.9-1.el5 installed 665 k
  24. Removing for dependencies:
  25. firstboot x86_64 1.4.27.9-1.el5 installed 973 k
  26. system-config-keyboard noarch 1.2.11-1.el5 installed 193 k
  27.  
  28. Transaction Summary
  29. ============================================================================================================
  30. Remove 3 Package(s)
  31. Reinstall 0 Package(s)
  32. Downgrade 0 Package(s)
  33.  
  34. Downloading Packages:
  35. Running rpm_check_debug
  36. Running Transaction Test
  37. Finished Transaction Test
  38. Transaction Test Succeeded
  39. Running Transaction
  40. Erasing : firstboot-tui 1/3
  41. Erasing : firstboot 2/3
  42. Erasing : system-config-keyboard 3/3
  43. Installed products updated.
  44.  
  45. Removed:
  46. firstboot-tui.x86_64 0:1.4.27.9-1.el5
  47.  
  48. Dependency Removed:
  49. firstboot.x86_64 0:1.4.27.9-1.el5 system-config-keyboard.noarch 0:1.2.11-1.el5
  50.  
  51. Complete!
  52. [root@localhost ~]#

再次安装发现已经没有问题了。

RHEL5.8使用yum安装应用时包冲突的处理的更多相关文章

  1. 安装mysql时包冲突解决方法

    报错信息如下: 解决办法: 在卸载代码上加上不检查关联信息即可(rpm -ev mysql-libs-5.1.73-7.el6.x86_64 --nodeps) 检查服务器是否还有mysql安装包:r ...

  2. yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between

    yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between attempted installs of php-pecl-f ...

  3. CentOS yum安装软件时保留安装包及依赖包或者自动下载安装包及相关依赖包

    CentOS上安装某个软件一般都有很多相关的依赖包,当然,这也与我们安装时software selection步骤中选择的版本有关系,我们服务器在安装CentOS时一般选择Basic Web Serv ...

  4. 如何查看yum安装的程序包都放在哪些地方了?

    yum安装, 是先下载下来, 然后安装, 用dnf代替yum后, 配置文件跟yum类似, 也是放在 /etc/dnf/ 目录下的, 也有dnf.conf 配置文件等 dnf list后面还可以跟参数: ...

  5. RHEL5.8使用yum安装xclock

    使用xshell连接RHEL5.8服务器,敲入xclock命令想验证图形化安装条件,但是显示无此命令. [root@template ~]# xclock -bash: xclock: command ...

  6. Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)

    新安装了redhat6.5.安装后,登录系统,使用yum update 更新系统.提示: This system is not registered to Red Hat Subscription M ...

  7. centos 7 无网络情况下,解决yum 安装依赖rpm包

    方法一:在一台有网络的机器,用yum下载好所需程序,传到另外一台网络的机器上安装 yum install xtrabackup --downloadonly --downloaddir=/rpmpat ...

  8. yum install错误 系统环境:Oracle Linux5.4 在通过yum安装软件时出现以下错误:

    1.yum配置文件 1 [root@rh168 yum.repos.d]# cat yum.repo  2 [base] 3 name=Oracle linux  4 baseurl=file:/// ...

  9. Linux - yum 安装软件时被 PackageKit 锁定

    问题描述 yum 安装软件的时候报错 sudo yum install netease-cloud-music 已加载插件:fastestmirror, langpacks /var/run/yum. ...

随机推荐

  1. app的meta标签

    1.规定网页编码 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> ...

  2. sqlserver复制报”应用复制的命令时在订阅服务器上找不到该行“解决方法

    最近遇到“应用复制的命令时在订阅服务器上找不到该行”问题,报错如下: 官方给出的建议是重新同步和初始化订阅,当然,这是一种选择,但是对于动辄上百G的生产库,这种方法会消耗大量的资源和时间.可以通过定位 ...

  3. 自己练习读取写入txt

    读取文件中的内容生成一个list,然后修改list后再写会该文件文件中的格式是:AA,BB,CC,DDblist = []for line in open('a.txt'): blist.extend ...

  4. yum 介绍

    yum是一个用于管理rpm包的后台程序,用python写成,可以非常方便的解决rpm的依赖关系.在建立好yum服务器后,yum客户端可以通过 http.ftp方式获得软件包,并使用方便的命令直接管理. ...

  5. LIS检验系统,简介及主要特点

    简介 主要实现实验室设备的联机管理和信息传输以及发布,其联机共享范围小到单机版,大到医院之间或区域互联,都可以任意选择,按需升级.   主要特点 打报告不用输入姓名,报告处理轻松.高效.无差错 检查项 ...

  6. VMware使用中常见问题

    1.NAT模式下,主机与虚拟机可以相互ping通,但虚拟机无法上网 解决办法:a.设置主机网络属性如下图所示,允许网络共享.

  7. [Swift]基础

    [Swift]基础 一, 常用变量 var str = "Hello, playground" //变量 let str1="Hello xmj112288" ...

  8. c语言知识点

    1.在c语言中,函数,声明,调用的类型务必是一致的, 2.主机id:指ip地址最后一个字节,例如,203.86.61.106,---->106指主机id, 3,端口号:6789,换成16进制1A ...

  9. 《机器学习实战》学习笔记——第2章 KNN

    一. KNN原理: 1. 有监督的学习 根据已知事例及其类标,对新的实例按照离他最近的K的邻居中出现频率最高的类别进行分类.伪代码如下: 1)计算已知类别数据集中的点与当前点之间的距离 2)按照距离从 ...

  10. LeetCode OJ 274. H-Index

    Given an array of citations (each citation is a non-negative integer) of a researcher, write a funct ...