Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ
  yum update½Ã ¿¡·¯¸Þ½ÃÁöµé ÀÛ¼ºÀÏ : 2005/10/09 01:42
 
  • ±Û¾´ÀÌ : ÁÁÀºÁøÈ£ ( http://coffeenix.net/ )
  • Á¶È¸¼ö : 10537
     
    Á¦  ¸ñ : yum update½Ã ¿¡·¯¸Þ½ÃÁöµé
    ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ )
    ÀÛ¼ºÀÏ : 2005.10.7(±Ý)

    1. cannot open Packages database in /var/lib/rpm ¿¡·¯

     
    # yum update
    rpmdb: Program version 4.2 doesn't match environment version
    error: db4 error(22) from dbenv->open: ºÎÀûÀýÇÑ Àμö
    error: cannot open Packages index using db3 - ºÎÀûÀýÇÑ Àμö (22)
    error: cannot open Packages database in /var/lib/rpm
    Traceback (most recent call last):
      File "/usr/bin/yum", line 30, in ?
        yummain.main(sys.argv[1:])
      File "/usr/share/yum/yummain.py", line 163, in main
        (log, errorlog, filelog, conf, cmds) = parseCmdArgs(args)
      File "/usr/share/yum/yummain.py", line 75, in parseCmdArgs
        conf=yumconf(configfile=yumconffile)
      File "/usr/share/yum/config.py", line 155, in __init__
        self.yumvar['releasever'] = self._getsysver()
      File "/usr/share/yum/config.py", line 285, in _getsysver
        idx = ts.dbMatch('provides', self.distroverpkg)
    TypeError: rpmdb open failed
     


    * ÇØ°á : rpm DB ÆÄÀÏÀÌ Àß ¸øµÇ¾úÀ¸´Ï À缺¼ºÇÑ ÈÄ ½ÇÇàÇÑ´Ù.

     
    # rm -f /var/lib/rpm/__db*
    # rpm --rebuilddb
     


    * Âü°í : http://www.webhostingtalk.com/archive/thread/417391-1.html

    2. You may also check that you have the correct GPG keys installed ¿¡·¯

     
    ... »ý·« ...
    Getting cups-1.1.17-13.3.31.i386.rpm
    cups-1.1.17-13.3.31.i386. 100% |=========================| 2.3 MB    00:14
    warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 025e513b
    Error: Could not find the GPG Key necessary to validate pkg
    /var/cache/yum/update/packages/cups-1.1.17-13.3.31.i386.rpm
    Error: You may want to run yum clean or remove the file:
    /var/cache/yum/update/packages/cups-1.1.17-13.3.31.i386.rpm
    Error: You may also check that you have the correct GPG keys installed
     


    * ÇØ°á : GPG °ø°³Å°°¡ ¼³Ä¡µÇÁö ¾Ê¾Æ¼­´Ù. ¾Æ·¡ »çÀÌÆ®À» Âü°íÇÏ¿© ¹èÆ÷ÆÇ¿¡ µû¶ó ¼³Ä¡ÇÑ´Ù.

    1) CentOS 3.x : rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3
    2) Fedora Core : rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
    3) Redhat 7.x¿¡¼­ Fedora Legacy's yum »ç¿ë½Ã
       gpg --import /usr/share/doc/yum-1.0.3/*GPG-KEY
    4) Redhat 9¿¡¼­ Fedora Legacy's yum »ç¿ë½Ã
       rpm --import http://www.fedoralegacy.org/FEDORA-LEGACY-GPG-KEY
       rpm --import http://www.redhat.com/security/db42a60e.txt

    * Âü°í :
      http://www.centos.org/modules/smartfaq/faq.php?faqid=17 (CentOS)
      http://www.centos.org/modules/smartfaq/faq.php?faqid=29 (CentOS)
      http://fedora.redhat.com/docs/yum/sn-using-repositories.html (Fedora Core)
      http://www.fedoralegacy.org/docs/yum-rh7x.php (Redhat 7.x¿¡¼­ Fedora Legacy's yum)
      http://www.fedoralegacy.org/docs/yum-rh9.php (Redhat 9¿¡¼­ Fedora Legacy's yum)


    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ / URL : http://coffeenix.net/board_view.php?bd_code=1204