ilia_kr Posted August 11, 2007 Report Share Posted August 11, 2007 (edited) While updating the freshly installed Mandriva 2007.1 One Gnome version urpmi breaks with this massage, that repeats itself in an endless loop: That never happened on One KDE version. Tried to switch mirrors and the error persisted. Need your advice on this. Thanks. Edited August 13, 2007 by ilia_kr Quote Link to comment Share on other sites More sharing options...
arctic Posted August 11, 2007 Report Share Posted August 11, 2007 Have you cleaned your cache before adding the new mirrors? Quote Link to comment Share on other sites More sharing options...
scarecrow Posted August 11, 2007 Report Share Posted August 11, 2007 Uhhh. sounds like a broken rpm database. The way to rebuild it in Mandriva is described here: http://wiki.mandriva.com/en/Tools/urpmi#Using_urpmi Does it work if you use some "rpm --nosignature" installation switch? Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted August 13, 2007 Author Report Share Posted August 13, 2007 I've tried what you said and here is the response: [root@mdk Desktop]# man urpmi [root@mdk Desktop]# urpmi --clean [root@mdk Desktop]# rm -rf /var/lib/rpm/__db* [root@mdk Desktop]# rpm --rebuilddb error: rpmdbNextIterator: skipping h# 1081 Header V3 DSA signature: BAD, key ID 70771ff3 Quote Link to comment Share on other sites More sharing options...
arctic Posted August 13, 2007 Report Share Posted August 13, 2007 First of all, it would be safest to clear the lock while in single user mode (in case you didn't). As the system is booting up, it is in single user mode before init can fire off any 'child' daemon processes. When rebuilding the database, make a backup first of /var/lib/rpm!!! A quick and dirty way to take a temporary on-disk backup is: cd /var/lib mkdir rpm-backup rsync -av ./rpm/. ./rpm-backup/. Now try rebuilding again. If it still gives you errors, then try repairing by doing mv Packages Packages-ORIG /usr/lib/rpm/db_dump Packages-ORIG | \ /usr/lib/rpm/db_load Packages Then read all the headers in Packages by doing rpm -qa And if that still fails, I suggest that you try to contact e.g. the official mandriva channel on irc and/or submit a bugreport. Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted August 13, 2007 Author Report Share Posted August 13, 2007 It seems like i solved the problem. After a fail at firs try, i removed all repos, cleaned the chash and then i tried to rebuild the db. This time the rebuild went smoothly. At this point i backed up the RPM folder as arctic suggested. After all that was done i added some repos and successfully updated the system. Thank you all for a help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.