LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-11-2004, 03:30 AM   #1
Gramphos
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
rpm error after upgrading to kernel 2.6.1


Whenever I try to do a rpm command I get this message:

Quote:
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
Anyone know how to fix it?
 
Old 01-11-2004, 08:18 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try this as root:
1) kill any rpm proccesses:
killall rpm
2) Rebuild the rpm database
rpm --rebuilddb
 
Old 01-11-2004, 10:54 AM   #3
Gramphos
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Didn't work.

rpm: no process killed
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index
 
Old 01-12-2004, 03:15 AM   #4
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
Somebody needs to write a Kernel compile howto with instructions to solve this problem, which happens to almost everybody.

What I did was upgrade rpm to the newest version. But then when I went back to my working 2.4 kernel the new rpm didn't work and I was screwed.
 
Old 01-13-2004, 06:33 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
When running 2.6.x, try prefixing any rpm command with "LD_ASSUME_KERNEL=2.4.1" like "LD_ASSUME_KERNEL=2.4.1 rpm -ivH adore" or exporting the var like "export LD_ASSUME_KERNEL=2.4.1" before doing rpm ops.

If that works please post it works.
 
Old 01-13-2004, 09:32 AM   #6
rm303
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by unSpawn
When running 2.6.x, try prefixing any rpm command with "LD_ASSUME_KERNEL=2.4.1" like "LD_ASSUME_KERNEL=2.4.1 rpm -ivH adore" or exporting the var like "export LD_ASSUME_KERNEL=2.4.1" before doing rpm ops.

If that works please post it works.
try this as soon as i can ..
 
Old 12-31-2004, 04:02 AM   #7
bitfikler
LQ Newbie
 
Registered: Dec 2004
Location: Norway
Distribution: RH9, FC2, FC3
Posts: 1

Rep: Reputation: 0
Thought I'd let you know that the described solution worked for me:

problem:
[root@ root]# rpm --rebuilddb
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index

solution:
[root@ root]# export LD_ASSUME_KERNEL=2.4.1

verification:
[root@ root]# rpm --rebuilddb
[root@ root]#

My environment is a RH9.0 that I did an "yum upgrade kernel" on. After rebooting to the new kernel, rpm failed when I tried to complete the upgrade to Fedora Core 3:

[root@ root]# yum upgrade
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 60, in ?
yummain.main(sys.argv[1:])
File "yummain.py", line 123, in main
File "yummain.py", line 70, in parseCmdArgs
File "config.py", line 126, in __init__
File "config.py", line 249, in _getsysver
TypeError: rpmdb open failed
[root@ root]#
 
  


Reply



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
modules problem after upgrading redhat 8.0 kernel with rpm aircom Red Hat 4 09-22-2003 08:20 AM
modules problem after upgrading redhat 8.0 kernel with rpm aircom LinuxQuestions.org Member Success Stories 3 09-16-2003 05:23 PM
modules problem after upgrading redhat 8.0 kernel with rpm aircom Linux - Newbie 1 09-16-2003 04:58 PM
Upgrading Kernel from RPM billsabub Linux - Distributions 1 02-17-2001 11:21 AM
Upgrading Kernel via RPM billsabub Linux - General 2 02-17-2001 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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