Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2354502
  • 博文数量: 276
  • 博客积分: 5998
  • 博客等级: 大校
  • 技术积分: 5175
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-24 14:43
文章分类

全部博文(276)

文章存档

2014年(25)

2013年(11)

2012年(69)

2011年(167)

2010年(4)

分类: LINUX

2013-11-12 15:34:09

安装oracle以后yum 安装报错


点击(此处)折叠或打开

  1. Plugin "refresh-packagekit" can't be imported
  2. Loaded plugins: fastestmirror, security
  3. Loading mirror speeds from cached hostfile
  4. Traceback (most recent call last):
  5. File "/usr/bin/yum", line 29, in
  6. yummain.user_main(sys.argv[1:], exit_code=True)
  7. File "/usr/share/yum-cli/yummain.py", line 285, in user_main
  8. errcode = main(args)
  9. File "/usr/share/yum-cli/yummain.py", line 136, in main
  10. result, resultmsgs = base.doCommands()
  11. File "/usr/share/yum-cli/cli.py", line 434, in doCommands
  12. self._getTs(needTsRemove)
  13. File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
  14. self._getTsInfo(remove_only)
  15. File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
  16. pkgSack = self.pkgSack
  17. File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 897, in
  18. pkgSack = property(fget=lambda self: self._getSacks(),
  19. File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 682, in _getSacks
  20. self.repos.populateSack(which=repos)
  21. File "/usr/lib/python2.6/site-packages/yum/repos.py", line 294, in populateSack
  22. sack.populate(repo, mdtype, callback, cacheonly)
  23. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 165, in populate
  24. if self._check_db_version(repo, mydbtype):
  25. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 223, in _check_db_version
  26. return repo._check_db_version(mdtype)
  27. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1256, in _check_db_version
  28. repoXML = self.repoXML
  29. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1455, in
  30. repoXML = property(fget=lambda self: self._getRepoXML(),
  31. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1447, in _getRepoXML
  32. self._loadRepoXML(text=self)
  33. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1437, in _loadRepoXML
  34. return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
  35. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1412, in _groupLoadRepoXML
  36. if self._commonLoadRepoXML(text):
  37. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1240, in _commonLoadRepoXML
  38. self._repoXML = self._parseRepoXML(result)
  39. File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1036, in _parseRepoXML
  40. return repoMDObject.RepoMD(self.id, local)
  41. File "/usr/lib/python2.6/site-packages/yum/repoMDObject.py", line 124, in __init__
  42. self.parse(srcfile)
  43. File "/usr/lib/python2.6/site-packages/yum/repoMDObject.py", line 140, in parse
  44. parser = iterparse(infile)
  45. File "/usr/lib/python2.6/site-packages/yum/misc.py", line 1169, in cElementTree_iterparse
  46. _cElementTree_import()
  47. File "/usr/lib/python2.6/site-packages/yum/misc.py", line 1164, in _cElementTree_import
  48. import cElementTree
  49. ImportError: No module named cElementTree

报以上错误时因为在环境变量中设置了 LD_LIBRARY_PATH 。
我是在/etc/profile 中设置的,去掉变量重新打开一个session,echo $LD_LIBRARY_PATH 查看变量为空。再次运行yum 成功。



阅读(6537) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~