Page 1 of 1

[SOLVED] Mageia RPM update doesn't work -- fatal error

PostPosted: May 27th, '13, 22:23
by Fred01
After install of Maigeia release 3 - I've a fatal error:

when the applet appears that ther are updates - I do click and get the message:

"" a fatal error occured: Could not open RPM DB () at /usr/lib/perl5/vendor_perl/5.16.3/Rpmdrake/open_db.pm line 74.. ""

when clicking ok - the update applet keeps reapearing and when clicking, get same result.....

Have openen 'installed software'' - but does not show any installed software at all - but window opens with
same error message as above.....hence system does not update neither shows any installed software.

Please advise

Thanks
Kind RGDS
Fred

ps. when possible also reply any solution to mail = fredkreyen@gmail.com

Thanks in advance....

Re: Mageia RPM update doesn't work -- fatal error

PostPosted: May 27th, '13, 23:10
by doktor5000
Fred01 wrote:ps. when possible also reply any solution to mail = fredkreyen@gmail.com

Better change your forums settings to receive notifications on reply via mail.

Can you please check if the first two steps from Method#1 from http://www.cyberciti.biz/tips/rebuildin ... abase.html help?
As root do:
Code: Select all
cd /var/lib
rm ./__db*

Re: Mageia RPM update doesn't work -- fatal error

PostPosted: May 28th, '13, 00:25
by Fred01
Thanks with your advise and link got both update and software manager back to work,
but it seems Mageiga didn't know all the commands - as 2 of the lines from the link
gave errors // fortunately those I needed did wok // see below.

Gtrz
Fred

Code: Select all
[francien@bell1 ~]$ su
Password:
[root@bell1 francien]# cd /var/lib
[root@bell1 lib]# rm __db*
rm: cannot remove ‘__db*’: [b]No such file or directory[/b]
[root@bell1 lib]#[b] rm __db*[/b]
rm: cannot remove ‘__db*’: No such file or directory
[root@bell1 lib]# rpm --rebuilddb
[root@bell1 lib]# [b]rpmdb_verify Packages[/b]
bash: rpmdb_verify: [b]command not found[/b]
[root@bell1 lib]#

Re: Mageia RPM update doesn't work -- fatal error

PostPosted: May 28th, '13, 19:52
by doktor5000
doktor5000 wrote:Can you please check if the first two steps from Method#1 from http://www.cyberciti.biz/tips/rebuildin ... abase.html help?
As root do:
Code: Select all
cd /var/lib
rm ./__db*


Sorry, should have double-checked that, one directory level was missing :oops:
The following should be enough:

Code: Select all
cd /var/lib/rpm
rm ./__db*

If then it still doesn't work (normally in some cases Mageia package manager runs the same commands, e.g. during distro upgrades) then you can try
Code: Select all
rpm --rebuilddb


The rest is not needed. Also check http://www.oldrpm.org/hintskinks/repairdb/ which i'd have posted earlier, but it was unavailable for quite some time.

Anyways, please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks

Re: Mageia RPM update doesn't work -- fatal error

PostPosted: May 28th, '13, 22:44
by Fred01
Have redone All methode #1
and get message that there is no such command, when using the command line =
rpmdb_verify Packages

have also tried with;
/var/lib/rpm/rpmdb_verify Packages

and with:
/usr/lib/rpm/rpmdb_verify Packages

The software manager shows all installed packages.

However when checking if some updates yet to come, by using a command = mgaupdate --auto
the system comes back with a warning.....about 'a keep option' that apparantly is in use // see below....
Code: Select all
'[root@bell1 francien]# mgaupdate --auto
medium "Core Release" is up-to-date
medium "Core Updates" is up-to-date
WARNING: --keep option is in use. Some strange problems may happen
Packages are up to date
[root@bell1 francien]#


Perhaps still something that needs to be done.....?

Kind RGDS
Fred

Re: Mageia RPM update doesn't work -- fatal error

PostPosted: May 30th, '13, 21:25
by doktor5000
What is that mgaupdate command you're using, probably an alias?

Re: Mageia RPM update doesn't work -- fatal error

PostPosted: May 30th, '13, 23:01
by Fred01
mgaupdate --auto = actually an command from Mandriva (mdkupdate --auto)
and was told it also could be used for Mageia as mgaupdate --auto
and could be used to check if all auto updates were will being received...

have used it sinds the 1st initial release of Mageia and never seen this warning befor....
( WARNING: --keep option is in use. Some strange problems may happen )

Kind RGDS
Fred

Re: Mageia RPM update doesn't work -- fatal error

PostPosted: Jun 1st, '13, 19:47
by doktor5000
Well, never heard of this command until now, seems it belongs to the mageia update applet. If you want to go for the commandline, best use urpmi directly, that would be:
Code: Select all
urpmi --auto-update --auto


For the message about keep, have a look at the urpmi manpage:
--keep
When some dependencies cannot be satisfied, change the selection of packages to try to keep existing packages instead of removing them. This
behaviour generally rejects the upgrade of packages given on command line (or when using --auto-select) when a dependency error occurs.

This was normally used by cooker/cauldron users, if some packages/dependencies are not available or fulfilled, then update wouldn't stumble over them.

You shouldn't use that on a stable release.

[solved]: Mageia RPM update doesn't work -- fatal error

PostPosted: Jun 1st, '13, 21:31
by Fred01
Thanks,

Indeed once got that command from a friend / not used very often as the normal
applet updates did what they need to do....
Only now used it after the update issue to check and came across this warning msg.

Have made note about your provided command now...

Thanks,
Kind RGDS
Fred

Re: [SOLVED]Mageia RPM update doesn't work -- fatal error

PostPosted: Jun 1st, '13, 22:19
by doktor5000
You may want to have a look at https://wiki.mageia.org/en/URPMI