LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-27-2003, 11:39 PM   #1
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
Unhappy Broke my RPM program


Hi everyone,

I tried to upgrade my RPM program by using the Fedora Project's RPM packages. I downloaded and installed rpm-4.2.2-0.7.i386.rpm, rpm-build-4.2.2-0.7.i386.rpm, rpm-devel-4.2.2-0.7.i386.rpm, and rpm-python-4.2.2-0.7.i386.rpm

Now whenever I try to run rpm, I get these error messages:

Code:
rpmdb: Program version 4.2 doesn't match environment version
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
I can't uninstall rpm-4.2.2 because it's an RPM package that needs rpm itself to uninstall!
I can't install rpmdb-fedora-1.90-0.20031227.i386.rpm because it's an RPM-package.

Anyone know how I can fix rpm? Help! I don't want to be stuck installing everything from source tarballs!

Thanks,
Vince
 
Old 12-28-2003, 02:14 AM   #2
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
how about removing the rpm package manually and then reinstalling it from source ie; the source cd's for RH9
 
Old 12-28-2003, 10:31 AM   #3
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Original Poster
Rep: Reputation: 30
How do I remove rpm? Damn, so do I have to download and burn the RH9 sources?
 
Old 12-28-2003, 01:51 PM   #4
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
I'm just guessing, but yes. Once you have the Source, you can look for the installation files and directories (i doubt they changed much in fedora) and then remove them manually. Then compile RPM from source. Or, you can take this opportunity to move to Fedora in whole.
 
Old 12-29-2003, 01:46 AM   #5
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Original Poster
Rep: Reputation: 30
Hmm, that's odd, my rpm program works when I boot into kernel 2.6.0 but not in my stable 2.4.18 environment. I guess rpm 4.2.2 was only designed to work on 2.6.0 kernels.
 
  


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
HELP! broke rpm and gcc theetderks Linux - Software 5 10-29-2004 08:41 PM
Glibc2.3.2 broke RPM isel Linux - Software 0 04-08-2004 01:26 PM
2.6 kernel broke rpm tektone Linux - Software 2 02-20-2004 01:10 PM
I think I broke RPM kiteless Linux - Software 1 08-30-2003 11:18 PM
Recompiled kernel and broke RPM db? How? Pcghost Linux - General 6 07-11-2003 11:57 AM

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

All times are GMT -5. The time now is 11:30 PM.

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