如何在更新期间解决yum错误 – CentOS

前端之家收集整理的这篇文章主要介绍了如何在更新期间解决yum错误 – CentOS前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用Apache运行CentOS 6.4,并且无法通过WHM运行Easy Apache更新.它失败了与yum相关的错误,因此我决定手动更新yum.

这是运行yum update –skip-broken时输出的最后一个视图行

  1. Packages skipped because of dependency problems:
  2. compat-expat1-1.95.8-8.el6.x86_64 from base
  3. git-1.8.2.1-1.el5.x86_64 from epel
  4. glibc-2.12-1.107.el6_4.4.i686 from updates
  5. glibc-2.12-1.107.el6_4.4.x86_64 from updates
  6. glibc-devel-2.12-1.107.el6_4.4.i686 from updates
  7. glibc-devel-2.12-1.107.el6_4.4.x86_64 from updates
  8. glibc-headers-2.12-1.107.el6_4.4.x86_64 from updates
  9. glibc-static-2.12-1.107.el6_4.4.x86_64 from updates
  10. nscd-2.12-1.107.el6_4.4.x86_64 from updates
  11. Error: Multilib version problems found. This often means that the root
  12. cause is something else and multilib version checking is just
  13. pointing out that there is a problem. Eg.:
  14.  
  15. 1. You have an upgrade for nss-softokn-freebl which is missing some
  16. dependency that another package requires. Yum is trying to
  17. solve this by installing an older version of nss-softokn-freebl of the
  18. different architecture. If you exclude the bad architecture
  19. yum will tell you what the root cause is (which package
  20. requires what). You can try redoing the upgrade with
  21. --exclude nss-softokn-freebl.otherarch ... this should give you an error
  22. message showing the root cause of the problem.
  23.  
  24. 2. You have multiple architectures of nss-softokn-freebl installed,but
  25. yum can only see an upgrade for one of those arcitectures.
  26. If you don't want/need both architectures anymore then you
  27. can remove the one with the missing update and everything
  28. will work.
  29.  
  30. 3. You have duplicate versions of nss-softokn-freebl installed already.
  31. You can use "yum check" to get yum show these errors.
  32.  
  33. ...you can also use --setopt=protected_multilib=false to remove
  34. this checking,however this is almost never the correct thing to
  35. do as something else is very likely to go wrong (often causing
  36. much more problems).
  37.  
  38. Protected multilib versions: nss-softokn-freebl-3.14.3-3.el6_4.i686 != nss-softokn-freebl-3.12.9-11.el6.x86_64
  39. Error: Protected multilib versions: libgcc-4.4.7-3.el6.i686 != libgcc-4.4.6-4.el6.x86_64
  40. ** Found 12 pre-existing rpmdb problem(s),'yum check' output follows:
  41. bash-4.1.2-15.el6_4.x86_64 is a duplicate with bash-4.1.2-9.el6_2.x86_64
  42. centos-release-6-4.el6.centos.10.x86_64 is a duplicate with centos-release-6-3.el6.centos.9.x86_64
  43. 12:dhcp-common-4.1.1-34.P1.el6_4.1.x86_64 is a duplicate with 12:dhcp-common-4.1.1-31.0.1.P1.el6.centos.1.x86_64
  44. frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0
  45. glibc-common-2.12-1.107.el6_4.4.x86_64 is a duplicate with glibc-common-2.12-1.80.el6_3.4.x86_64
  46. glibc-common-2.12-1.107.el6_4.4.x86_64 has missing requires of glibc = ('0','2.12','1.107.el6_4.4')
  47. libgcc-4.4.7-3.el6.x86_64 is a duplicate with libgcc-4.4.6-4.el6.x86_64
  48. nss-softokn-freebl-3.14.3-3.el6_4.x86_64 is a duplicate with nss-softokn-freebl-3.12.9-11.el6.x86_64
  49. sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0','8.14.4','8.el6')
  50. setup-2.8.14-20.el6_4.1.noarch is a duplicate with setup-2.8.14-16.el6.noarch
  51. tzdata-2013c-2.el6.noarch is a duplicate with tzdata-2012c-3.el6.noarch
  52. xorg-x11-proto-devel-7.6-25.el6.noarch is a duplicate with xorg-x11-proto-devel-7.6-13.el6.noarch

我没有按照错误建议的步骤进行操作,因为我觉得这里存在更大的潜在问题.我应该采取什么措施来恢复完全正常工作的百胜?

这是为我解决这个问题的原因:

> yum清洁所有
> yum distro-sync
> yum更新

我找到了信息here

猜你在找的Bash相关文章