Page 1 of 1

[SOLVED] software centre has completly died

PostPosted: Sep 6th, '12, 12:43
by Voodoo
as root

Code: Select all
root@localhost nas]# urpmi.addmedia --distrib --wget 'ftp://ftp.mandrivauser.de/mirrors/Mageia/distrib/$RELEASE/$ARCH'
adding medium "Core Release"
adding medium "Core Release Debug" (ignored by default)
adding medium "Core Updates"
adding medium "Core Updates Debug" (ignored by default)
adding medium "Core Updates Testing" (ignored by default)
adding medium "Core Updates Testing Debug" (ignored by default)
adding medium "Core Backports" (ignored by default)
adding medium "Core Backports Debug" (ignored by default)
adding medium "Core Backports Testing" (ignored by default)
adding medium "Core Backports Testing Debug" (ignored by default)
adding medium "Nonfree Release" (ignored by default)
adding medium "Nonfree Release Debug" (ignored by default)
adding medium "Nonfree Updates" (ignored by default)
adding medium "Nonfree Updates Debug" (ignored by default)
adding medium "Nonfree Updates Testing" (ignored by default)
adding medium "Nonfree Updates Testing Debug" (ignored by default)
adding medium "Nonfree Backports" (ignored by default)
adding medium "Nonfree Backports Debug" (ignored by default)
adding medium "Nonfree Backports Testing" (ignored by default)
adding medium "Nonfree Backports Testing Debug" (ignored by default)
adding medium "Tainted Release" (ignored by default)
adding medium "Tainted Release Debug" (ignored by default)
adding medium "Tainted Updates" (ignored by default)
adding medium "Tainted Updates Debug" (ignored by default)
adding medium "Tainted Updates Testing" (ignored by default)
adding medium "Tainted Updates Testing Debug" (ignored by default)
adding medium "Tainted Backports" (ignored by default)
adding medium "Tainted Backports Debug" (ignored by default)
adding medium "Tainted Backports Testing" (ignored by default)
adding medium "Tainted Backports Testing Debug" (ignored by default)
adding medium "Core 32bit Release"
adding medium "Core 32bit Release Debug" (ignored by default)
adding medium "Core 32bit Updates"
adding medium "Core 32bit Updates Debug" (ignored by default)
adding medium "Core 32bit Updates Testing" (ignored by default)
adding medium "Core 32bit Updates Testing Debug" (ignored by default)
adding medium "Core 32bit Backports" (ignored by default)
adding medium "Core 32bit Backports Debug" (ignored by default)
adding medium "Core 32bit Backports Testing" (ignored by default)
adding medium "Core 32bit Backports Testing Debug" (ignored by default)
    ftp://ftp.mandrivauser.de/mirrors/Mageia/distrib/2/x86_64/media/core/release/media_info/20120816-155755-synthesis.hdlist.cz
error: rpmdb: Thread/process 9892/139816958232320 failed: Thread died in Berkeley DB library
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db4 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
unable to open rpmdb


it was giving me that error at the bottom before i removed the media and tried readding it, how do i fix this without reinstall as it will suck, updating spits the same error

Re: software centre has completly died

PostPosted: Sep 6th, '12, 12:57
by Voodoo
Code: Select all
rpm --rebuilddb
error: rpmdb: Thread/process 9892/139816958232320 failed: Thread died in Berkeley DB library
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db4 -  (-30974)

Re: software centre has completly died

PostPosted: Sep 6th, '12, 13:15
by tom_
try this:

Code: Select all
rm -f /var/lib/rpm/__db*
rm -f /var/lib/rpm/.rpm.lock
rpm –rebuilddb

Re: software centre has completly died

PostPosted: Sep 6th, '12, 14:10
by jkerr82508
tom_ wrote:try this:

Code: Select all
rm -f /var/lib/rpm/__db*
rm -f /var/lib/rpm/.rpm.lock
rpm –rebuilddb


I think that the third command in that set should be
Code: Select all
rpm –-rebuilddb

Jim

Re: software centre has completly died

PostPosted: Sep 6th, '12, 14:24
by Voodoo
rm -f /var/lib/rpm/__db* then rpm --rebuilddb did the trick, thanks