Page 1 of 1

unable to install/remove/do anything software

PostPosted: Apr 11th, '12, 21:44
by ethancello
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!!!

Re: unable to install/remove/do anything software

PostPosted: Apr 11th, '12, 21:49
by ethancello
Also getting this message when trying to add online media for greater package selection.

"Unable to add medium, errors reported: unable to open rpmdb"

Re: unable to install/remove/do anything software

PostPosted: Apr 11th, '12, 23:37
by obgr_seneca
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

Re: unable to install/remove/do anything software

PostPosted: Apr 12th, '12, 00:13
by ethancello
Didn't seem to work. I guess I'm waiting for beta3

Re: unable to install/remove/do anything software

PostPosted: Apr 12th, '12, 19:22
by doktor5000
BTW, everything related to Cauldron, the development version of Mageia, belongs in this subforum:
viewforum.php?f=15

Re: unable to install/remove/do anything software

PostPosted: Apr 12th, '12, 21:19
by ethancello
Terribly sorry, I've been using mageia for all of 2 days now.

Re: unable to install/remove/do anything software

PostPosted: Apr 12th, '12, 21:31
by doktor5000
No need to be sorry ;)

Re: unable to install/remove/do anything software

PostPosted: Apr 17th, '12, 04:37
by iamoverrated
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

Re: unable to install/remove/do anything software

PostPosted: Apr 17th, '12, 08:47
by obgr_seneca
Oups...
of course, "--auto-update", not "--auto-select", stupid me...

Re: unable to install/remove/do anything software

PostPosted: Apr 17th, '12, 09:16
by jkerr82508
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

Re: unable to install/remove/do anything software

PostPosted: Apr 17th, '12, 09:32
by obgr_seneca
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

Re: unable to install/remove/do anything software

PostPosted: Apr 17th, '12, 19:18
by doktor5000
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.

Re: unable to install/remove/do anything software

PostPosted: Nov 27th, '12, 03:27
by scpackerfan
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.

Re: unable to install/remove/do anything software

PostPosted: May 8th, '18, 15:31
by Grabo
And it works in Mageia 6 with this line;

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

Thanks.

Re: unable to install/remove/do anything software

PostPosted: May 9th, '18, 07:48
by doktor5000
And why is there a need to post that to a thread that did not see any reply since 6 years ?