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

Notices


Reply
  Search this Thread
Old 11-04-2005, 02:31 AM   #1
lucky_luuk
LQ Newbie
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 19

Rep: Reputation: 0
RPM update failed?


I am a bit in trouble as I messed up RPM/Yum.

Origionally, I needed to have PHP and MySQL updated to the FC4 version (am running FC3). That didn't really work because of the mountans of dependecies, so I decided to put the FC4 resporsotiums in YUM and let YUM sort out the dependecies.

This worked partly for me as PHP/MySQL (and a lot more, more than I wanted) were updated, but I ran in the problem that YUM did not work anymore due to missing modules. (and I guess I didn't have a full opdate as I basically de- and reinstalled PHP to get it updated.)

After spending the last two days at it I managed to get RPM broken as well (after updating RPM to rpm-4.4.1-22.i386). RPM can not open the database anymore as can be seen in the output below (rpm -q rpm)

[root@stmichael download]# rpm -q rpm
rpmdb: unable to initialize mutex: Function not implemented
rpmdb: /var/lib/rpm/__db.001: unable to initialize environment lock: Function not implemented
error: db4 error(38) from dbenv->open: Function not implemented
error: cannot open Packages index using db3 - Function not implemented (38)
error: cannot open Packages database in /var/lib/rpm
package rpm is not installed



Please is there anybody who can help?

Thanks in advance!

Luuk
 
Old 11-04-2005, 06:11 AM   #2
pyrael
Member
 
Registered: Dec 2003
Posts: 87

Rep: Reputation: 15
I made the same mistake, from what I have read there ar sooooo many differences between the c libraries in FC4 vs FC3 thatthe only way I could fix it was to install FC4 as an upgrade. This way all non OS files were kept. installing FC4 would be the easiest was IMHO. Also for more info, look at the CCRMA homepage, They have listed some probs with FC3 apps using gcc in FC4 also they have listed some audio/video apps that won't work because of the new gcc. If I remember correctly, Synaptic can (If you want to manually revert you system) re-install the older versions. I like synaptic more, itseems faster to me.
 
Old 11-04-2005, 06:31 AM   #3
lucky_luuk
LQ Newbie
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 19

Original Poster
Rep: Reputation: 0
I got RPM kind of working with putting the following line in a file /etc/rpm/macros:

%__dbi_cdb create cdb private mpool mp_mmapsize=16Mb mp_size=1Mb

YUM however does not work as it rebuild the database but doesn't do anything everytime you start it (and does not work without that line).

I will now look into upgrading the whole system, but have some costum compiled applications (BIND, Postfix) and will have to do that again. I don't have a backup server at the moment, so have to do it in reasonable time...
 
  


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
how to update a package? Failed Dependency.... grasssu Linux - Newbie 7 03-08-2005 04:07 AM
Linux has stopped booting up after failed update thatbloke Linux - Software 5 10-12-2004 04:29 AM
Failed system update blindcyde Fedora 2 04-22-2004 03:50 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
failed update ties up wvdial HuFlungDung Linux - Newbie 3 08-12-2002 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:42 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