Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-22-2010, 04:31 AM   #1
Registered: Apr 2010
Location: Assiut, Egypt
Posts: 166

Rep: Reputation: 15
Smile yum not working

hi all,
i try to make yum as i need to remove some of my packages, it was work but it stops work, here is the output:

[root@abakhiet tmp]# yum -y remove asterisk* freepbx
Loaded plugins: fastestmirror, kmod
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/", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/", line 157, in main
  File "/usr/share/yum-cli/", line 187, in getOptionsConfig
  File "/usr/lib/python2.4/site-packages/yum/", line 664, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.4/site-packages/yum/", line 239, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File "/usr/lib/python2.4/site-packages/yum/", line 804, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File "/usr/lib/python2.4/site-packages/yum/", line 877, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
So, what can i do ???
HELP please...
Old 11-22-2010, 04:37 AM   #2
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Look into these couple of links
1 members found this post helpful.
Old 11-22-2010, 04:38 AM   #3
Registered: Apr 2010
Location: Assiut, Egypt
Posts: 166

Original Poster
Rep: Reputation: 15
I'm sorry guys, this problem is solved, by:

[root@abakhiet tmp]# rm -f /var/lib/rpm/__db*
But, i still having a problem at entering these folders using my sftp protocol
Please help me.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
Yum Not Working dijeshkk Linux - Newbie 7 03-16-2011 01:10 PM
Yum not working at all due to /usr/bin/yum syntax error aheusdens Linux - General 1 04-09-2010 05:15 PM
why my yum is not working? criacuervo Linux - Newbie 1 07-11-2009 02:05 AM
Yum Not working ntesla Linux - Software 2 08-06-2004 10:51 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration