unable to install/remove/do anything software

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

unable to install/remove/do anything software

Postby ethancello » Apr 11th, '12, 21:44

Hi,

I am a mageia/mandriva nube and have little idea what I am doing, but I decided to give mageia 2 beta 2 a try and I am running into some problems, like when I open the software manager getting the error message "A fatal error occurred: Couldn't open RPM DB )_ at /usr/lib/perl5/vendor_perl/5.12.2/Rpmdrake/open_db line 74 . ."

Please help!!!
Attachments
snapshot1.png
a screenshot of the error
snapshot1.png (72.04 KiB) Viewed 2687 times
ethancello
 
Posts: 22
Joined: Apr 11th, '12, 15:46
Location: West Lafayette, IN (USA)

Re: unable to install/remove/do anything software

Postby ethancello » Apr 11th, '12, 21:49

Also getting this message when trying to add online media for greater package selection.

"Unable to add medium, errors reported: unable to open rpmdb"
Attachments
snapshot2.png
2nd error
snapshot2.png (61.9 KiB) Viewed 2685 times
ethancello
 
Posts: 22
Joined: Apr 11th, '12, 15:46
Location: West Lafayette, IN (USA)

Re: unable to install/remove/do anything software

Postby obgr_seneca » Apr 11th, '12, 23:37

There was a bug in beta2...

So try the following:
Open a terminal (lxterminal, xterm gnome-terminal, konsole, whatever) and get root permissions
Code: Select all
su -

Now first remove the rpm database:
Code: Select all
rm -f /var/lib/rpm/__db*

then rebuild the db
Code: Select all
rpm --rebuilddb

then remove the dvd source and add online repos
Code: Select all
urpmi.removemedia -a
urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.cauldron.$ARCH.list'

You have to replace $ARCH by i586 or x86_64 depending on if you are using a 32bit or a 64bit system
Then update your system
Code: Select all
urpmi --auto-select


Or you wait another view days and install the beta3...

Oliver
Linux - free choice for free people
User avatar
obgr_seneca
 
Posts: 155
Joined: Mar 16th, '11, 17:35
Location: Southwest of Germany

Re: unable to install/remove/do anything software

Postby ethancello » Apr 12th, '12, 00:13

Didn't seem to work. I guess I'm waiting for beta3
ethancello
 
Posts: 22
Joined: Apr 11th, '12, 15:46
Location: West Lafayette, IN (USA)

Re: unable to install/remove/do anything software

Postby doktor5000 » Apr 12th, '12, 19:22

BTW, everything related to Cauldron, the development version of Mageia, belongs in this subforum:
viewforum.php?f=15
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15240
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: unable to install/remove/do anything software

Postby ethancello » Apr 12th, '12, 21:19

Terribly sorry, I've been using mageia for all of 2 days now.
ethancello
 
Posts: 22
Joined: Apr 11th, '12, 15:46
Location: West Lafayette, IN (USA)

Re: unable to install/remove/do anything software

Postby doktor5000 » Apr 12th, '12, 21:31

No need to be sorry ;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15240
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: unable to install/remove/do anything software

Postby iamoverrated » Apr 17th, '12, 04:37

obgr_seneca wrote:There was a bug in beta2...

So try the following:
Open a terminal (lxterminal, xterm gnome-terminal, konsole, whatever) and get root permissions
Code: Select all
su -

Now first remove the rpm database:
Code: Select all
rm -f /var/lib/rpm/__db*

then rebuild the db
Code: Select all
rpm --rebuilddb

then remove the dvd source and add online repos
Code: Select all
urpmi.removemedia -a
urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.cauldron.$ARCH.list'

You have to replace $ARCH by i586 or x86_64 depending on if you are using a 32bit or a 64bit system
Then update your system
Code: Select all
urpmi --auto-select


Or you wait another view days and install the beta3...

Oliver


After doing this in the terminal, could you then run:
Code: Select all
urpmi --auto-update
iamoverrated
 
Posts: 10
Joined: Jul 11th, '11, 01:40

Re: unable to install/remove/do anything software

Postby obgr_seneca » Apr 17th, '12, 08:47

Oups...
of course, "--auto-update", not "--auto-select", stupid me...
Linux - free choice for free people
User avatar
obgr_seneca
 
Posts: 155
Joined: Mar 16th, '11, 17:35
Location: Southwest of Germany

Re: unable to install/remove/do anything software

Postby jkerr82508 » Apr 17th, '12, 09:16

Wouldn't auto-select have done the job? Since sources have just been added, I would have thought that they would be up to date and so there would be no need to update them. (IIRC auto-update is the same as auto-select, except that auto-update updates the sources first.)

Jim
jkerr82508
 
Posts: 944
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: unable to install/remove/do anything software

Postby obgr_seneca » Apr 17th, '12, 09:32

Stupid me again...

I mixed up "urpmi --auto-select" and "urpmi.update -a"
Yes, the sources have been just added, so "--auto-update" actually does the same as "--auto-select".

Sorry, it's too early in the morning to think.

Oliver
Linux - free choice for free people
User avatar
obgr_seneca
 
Posts: 155
Joined: Mar 16th, '11, 17:35
Location: Southwest of Germany

Re: unable to install/remove/do anything software

Postby doktor5000 » Apr 17th, '12, 19:18

jkerr82508 wrote:Wouldn't auto-select have done the job? Since sources have just been added, I would have thought that they would be up to date and so there would be no need to update them. (IIRC auto-update is the same as auto-select, except that auto-update updates the sources first.)

Jim

Normally there's not much reasons to use --auto-select instead of --auto-update, as the check if the repos are already up-to-date is really fast.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15240
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: unable to install/remove/do anything software

Postby scpackerfan » Nov 27th, '12, 03:27

I just thought I would let the Forum know that I just experienced exactly the same problem with my installation of Mageia 2 - which was not a beta version. However, I was able to follow the steps set forth in this post and reinstalled the rpm database, working like a charm again. So, I guess this post still has some relevance after all.
scpackerfan
 
Posts: 7
Joined: Nov 7th, '12, 05:14

Re: unable to install/remove/do anything software

Postby Grabo » May 8th, '18, 15:31

And it works in Mageia 6 with this line;

]# urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia6.x86_64.list'

Thanks.
Grabo
 
Posts: 35
Joined: Oct 16th, '16, 19:57

Re: unable to install/remove/do anything software

Postby doktor5000 » May 9th, '18, 07:48

And why is there a need to post that to a thread that did not see any reply since 6 years ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15240
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest

cron