RedJini Blog

뒤로 검색

[shell] yum 장애 조치

2009/04/21 15:39

오류 메세지

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 104, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 339, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 591, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 434, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 251, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 181, in populate
    dobj = repo_cache_function(xml, csum)
  File "/usr/lib/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary
    self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found

조치 방법

# ldd /usr/lib/python2.4/site-packages/libxml2mod.so
        linux-gate.so.1 =>  (0x00c78000)
        libxml2.so.2 => /opt/lampp/lib/libxml2.so.2 (0x00110000)
        libc.so.6 => /lib/libc.so.6 (0x00211000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00e09000)
        libm.so.6 => /lib/libm.so.6 (0x00b40000)
        /lib/ld-linux.so.2 (0x00883000)

/usr/lib/libxml2.so.2를 참조 할 수 있도록
/etc/ld.so.conf 파일의 lib 경로 조절

Tags

libxml, Python, xml, yum, 업데이트 오류
이 페이지는 Textcube 1.9.3 : poco a poco 로 구동됩니다 데스크탑 화면