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

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

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

Postby Fred01 » May 27th, '13, 22:23

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....
Last edited by Fred01 on Jun 1st, '13, 21:32, edited 1 time in total.
Fred01
 
Posts: 77
Joined: Nov 18th, '11, 21:35

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

Postby doktor5000 » May 27th, '13, 23:10

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*
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby Fred01 » May 28th, '13, 00:25

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]#
Last edited by isadora on May 28th, '13, 07:12, edited 1 time in total.
Reason: Command-output placed between [CODE]-tags, for readability. ;)
Fred01
 
Posts: 77
Joined: Nov 18th, '11, 21:35

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

Postby doktor5000 » May 28th, '13, 19:52

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
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby Fred01 » May 28th, '13, 22:44

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
Last edited by isadora on May 29th, '13, 06:58, edited 1 time in total.
Reason: Placed command-output between [CODE]-tags, for readability. ;)
Fred01
 
Posts: 77
Joined: Nov 18th, '11, 21:35

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

Postby doktor5000 » May 30th, '13, 21:25

What is that mgaupdate command you're using, probably an alias?
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby Fred01 » May 30th, '13, 23:01

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
Fred01
 
Posts: 77
Joined: Nov 18th, '11, 21:35

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

Postby doktor5000 » Jun 1st, '13, 19:47

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.
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby Fred01 » Jun 1st, '13, 21:31

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
Fred01
 
Posts: 77
Joined: Nov 18th, '11, 21:35

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

Postby doktor5000 » Jun 1st, '13, 22:19

You may want to have a look at https://wiki.mageia.org/en/URPMI
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest