°Ô½Ã¹° 260°Ç
   
[redhat 5] RPM DB ¼Õ»óµÇ¾úÀ» 떄 º¹±¸ ¹æ¹ý
±Û¾´ÀÌ : ÃÖÀå¼· ³¯Â¥ : 2015-02-12 (¸ñ) 20:37 Á¶È¸ : 4305

1. YUM ¹× RPM ¸í·É¾î »ç¿ë½Ã ¾Æ·¡ ó·³ rpmdb °¡ ¼Õ»óµÇ¾úÀ» 떄 º¹±¸ ¹æ¹ý

[root@22-VM rpm]# yum update
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
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 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 157, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 240, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File "/usr/lib/python2.4/site-packages/yum/config.py", line 805, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File "/usr/lib/python2.4/site-packages/yum/config.py", line 878, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

[root@22-VM rpm]# rpm -qa
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm

2. ¾Æ·¡ÀÇ 3°¡Áö ÆÄÀÏÀ» »èÁ¦ ÇÏ°í rpmdb ¸¦ ´Ù½Ã rebuild Çؼ­ º¹±¸ÇØÁØ´Ù.

/var/lib/rpm/__db.001
/var/lib/rpm/__db.002
/var/lib/rpm/__db.003

[root@22-VM rpm]# rm -f /var/lib/rpm/__db.00*
[root@22-VM rpm]# rpm --rebuilddb
[root@22-VM rpm]# yum list
Unable to read consumer identity
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Installed Packages
Deployment_Guide-en-US.noarch               5.8-1.el5                  installed
Deployment_Guide-ko-KR.noarch               5.8-1.el5                  installed
......
zsh-html.x86_64                                                         4.2.6-6.el5                                      rhel-DVD

[root@22-VM ~]# rpm -qa | more
automake-1.9.6-2.3.el5
.....
libXext-1.0.1-2.1
lrzsz-0.12.20-22.1


±èÅÂÈ£ 2015-02-26 (¸ñ) 15:18
±×·¸±º¿ä~~~~±Â
À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com