LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-01-2012, 05:12 PM   #1
le555
LQ Newbie
 
Registered: Jan 2011
Location: Canada
Distribution: Ubuntu 12.04 LTS
Posts: 16

Rep: Reputation: 1
Question RPM DB Seems to be Missing


Hello Linux Gurus,

I recently Installed Mandriva 2011 and everything worked well until I tried to do some Updates.

I got the Message :
a fatal error occurred: Couldn't Open RPM DB () at/usr/lib/perl5/vendor_perl/5.12.3/rpmdrake/open_db.pm line 74..

I also tried typing : rpm -qip "package.rpm" and got a message than there was no such file as rpm.

Does this mean I lost my rpm file? If so, How can I re-install rpm in my system and what is the procedure and command line?

Thanks in advance for the help.
 
Old 04-02-2012, 06:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
rpm -qip "package.rpm"
this is not correct, you have not installed the RPM, you have installed the package that is INSIDE the RPM file. So you'd run "rpm -qip package" instead.
 
Old 04-02-2012, 12:35 PM   #3
le555
LQ Newbie
 
Registered: Jan 2011
Location: Canada
Distribution: Ubuntu 12.04 LTS
Posts: 16

Original Poster
Rep: Reputation: 1
Question [B]RPM DB Missing[/B]

Ok, So how do I install the RPM DB Package ? I Found on line rpm-5.1.9.tar.gz. Cant find 5.12.3 Does it matter the version I use ?


Thanks.

P.S. Still can not do any Updates as of yet.

Last edited by le555; 04-02-2012 at 12:39 PM.
 
Old 04-02-2012, 01:10 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
.. how do I install the RPM DB Package ?
No package for "rpm db". The rpm db is created by 'rpm'.


Quote:
I Found on line rpm-5.1.9.tar.gz. Cant find 5.12.3
Does it matter the version I use ?
RPM version 5.3.12 is already installed. ( 5.12.3 is the perl version.)
And please do not replace any system packages with a manually installed alien version.

Which are the commands you have used so far ?

.
 
Old 04-02-2012, 01:36 PM   #5
le555
LQ Newbie
 
Registered: Jan 2011
Location: Canada
Distribution: Ubuntu 12.04 LTS
Posts: 16

Original Poster
Rep: Reputation: 1
Talking RPM Missing

Commands used so far = None. Quick Reminder : I m a Super Newbie

Last edited by le555; 04-02-2012 at 01:57 PM.
 
Old 04-02-2012, 04:33 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Couldn't Open RPM DB () at/usr/lib/perl5/vendor_perl/5.12.3/rpmdrake/open_db.pm line 74..
Might be an error in the rpmdrake dependencies. ( 'rpmdrake' is the Package Manager.)

Please open a terminal window, and type : 1) su (Then enter your root password.)
2) urpmi rpmdrake
... And watch if any of the rpmdrake "helper packages" are updated.
And check if rpmdrake will work.
Besides all this : I don't know if the Mandriva 2011 updates are consistent.
Using the rpmdrake update functions may brake something ?

I found this http://www.linuxforums.org/forum/man...ke-system.html

Using the command line for package install etc. http://en.wikipedia.org/wiki/Urpmi

.

Last edited by knudfl; 04-02-2012 at 04:38 PM.
 
Old 04-03-2012, 02:40 PM   #7
le555
LQ Newbie
 
Registered: Jan 2011
Location: Canada
Distribution: Ubuntu 12.04 LTS
Posts: 16

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by knudfl View Post
Might be an error in the rpmdrake dependencies. ( 'rpmdrake' is the Package Manager.)

Please open a terminal window, and type : 1) su (Then enter your root password.)
2) urpmi rpmdrake
... And watch if any of the rpmdrake "helper packages" are updated.
And check if rpmdrake will work.
Besides all this : I don't know if the Mandriva 2011 updates are consistent.
Using the rpmdrake update functions may brake something ?
I found this http://www.linuxforums.org/forum/man...ke-system.html

Using the command line for package install etc. http://en.wikipedia.org/wiki/Urpmi

.
I tried the commands you suggested and this came up : No package named rpmdrake

What Next ???

Thanks for your quick reply
 
Old 04-03-2012, 08:57 PM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, if you use rpm on the cli, you will need to use the absolute address to the package,
unless you change (cd) to the rpm directory.

In my experience, If perl is broken, your stuffed, kinda like glibc, your system won't work if incomplete or dated versions.

drake rpm requires perl.

My advice is to reinstall from the dvd and don't update perl.

To help you keep perl for as long as possible during updates, put it in the skip list

/etc/urpmi/skip.list
Code:
# Here you can specify the packages that won't be upgraded automatically
# for example, to exclude all apache packages :
# /^apache/
/^kernel/
/^firefox/
/^amarok/
You might also need to check out the drak(e) gui packages,
if they require the new (updated) version of perl you may not install those either.

to update the rpm.db, type (or cut and paste)
Code:
rpm --rebuilddb
regards Glenn

Last edited by GlennsPref; 04-03-2012 at 09:17 PM. Reason: correction
 
1 members found this post helpful.
Old 04-04-2012, 05:17 PM   #9
le555
LQ Newbie
 
Registered: Jan 2011
Location: Canada
Distribution: Ubuntu 12.04 LTS
Posts: 16

Original Poster
Rep: Reputation: 1
[SOLVED] RPM Missing

[SOLVED]First, I want to Thank GlennsPref for his help and all the others who contributed to my problem. I was able to resolve this problem by 1) Reading the Installation Guide on the Mandriva website 2) Re-Installing Mandriva in a complete Clean Install. All works well Audio/Video so far all seems Good. I was able to get all the updates and rpm seems to work fine as well.

Thanks again ALL for your precious Help
Greatly Appreciated !

Le555
 
Old 05-01-2017, 08:58 AM   #10
brunojls
LQ Newbie
 
Registered: May 2017
Posts: 1

Rep: Reputation: Disabled
About the message "Couldn't Open RPM DB () at/usr/lib/perl5/vendor_perl/5.12.3/rpmdrake/open_db.pm line 74.. "
I do theses commands to build yet a new database and all works ok with :
su
rpm --rebuilddb
 
Old 08-12-2020, 01:37 AM   #11
rootlicense
LQ Newbie
 
Registered: Aug 2020
Location: cheap cpanel license rootlicense.com
Posts: 1

Rep: Reputation: Disabled
thanks for your post
 
  


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
[SOLVED] Missing Rpm programs FMA1965 Linux - Newbie 3 03-28-2011 03:16 PM
rpm database missing entries? dtashima Red Hat 0 10-29-2004 08:18 AM
Kernel RPM missing module podge_mcgee Red Hat 2 05-08-2004 05:16 AM
rpm says missing dependancies but I do have the files davoman Linux - Software 7 11-25-2003 06:16 AM
Files always missing when using RPM Wraith2288 Linux - Software 2 09-15-2003 08:14 PM

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

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