Jump to content

URPMI got crazy... [solved]


ilia_kr
 Share

Recommended Posts

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 by ilia_kr
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...