MoonChild Posted December 29, 2002 Report Share Posted December 29, 2002 Yes, did the upgrade too! What do I get? After 2 hours of playing around to fix it, I managed to get urpmi to work again. But no... It won't install anything because of corrupted rpm database. It refuses to install anything because it can't add it on the database. So how about rebuilding the database? Nope... It seems it doesn't like that either. How about doing it manually? I tried to follow the link the others gave. But that is too complex for me. Any more clear ideas? Quote Link to comment Share on other sites More sharing options...
Guest smoketoomuch Posted December 29, 2002 Report Share Posted December 29, 2002 So, what version of urpmi do you have now? Quote Link to comment Share on other sites More sharing options...
bvc Posted December 30, 2002 Report Share Posted December 30, 2002 Oh Great Don't tell me urpmi-4.0-20.1mdk, because I did the update as well, but so far I haven't had any probs. What to do? what to do? :shock: Uninstall b4 something does get screwed up? Or wait and see? Does anyone know if there is a common issue that causes the probs, like a certain command or something. Or is this another wishy washy, works for some and not others? I will say that after doing some adding and removing of pkges that there're no _db.0x files left over. Quote Link to comment Share on other sites More sharing options...
MoonChild Posted December 30, 2002 Author Report Share Posted December 30, 2002 You got the version right. All the problems started when I restarted my computer. So you might want to uninstall it before restarting. It all depends on you Quote Link to comment Share on other sites More sharing options...
bvc Posted December 30, 2002 Report Share Posted December 30, 2002 I've restarted twice already. The first time I restarted X to a long time to come up. [sigh] :? I'm gonna uninstall it and reinstall the default. Quote Link to comment Share on other sites More sharing options...
kmack Posted December 30, 2002 Report Share Posted December 30, 2002 I had luck with using urpmi.removemedia -c individually for each source shown in source manager. Another guy on Mandrake Forum (comments) used a different approach and fixed his situation. Hope this will work for you Moonchild. I also had problems after upgrading the 9.0 urpmi packages (and I used urmpi for the upgrade). After a long and boring session of trials and errors, the following command did the job: urpmi.update -f -a That is, after rebuilding the hdlist files everything went back to normal. I hope this helps others ... I am still a real newbie with Linux, but 20+ yrs of computing with other OS's and this feels like the upgrade caused some file corruption in the rpm db that is causing these problems. Once I did the urpmi.removemedia -c thing, I noticed that it forced a rewrite of urpmi.cfg file which also was corrupted and had some ghost entries from sources/mirrors I had previously removed and no longer showed in Source Manager, but WERE still showing in urpmi For example, everytime I did urpmi.update, it would say it was ignoring ftp1u which was NOT a source any longer. So something about the interface between rpm and urpmi is not happy about this upgrade. :roll: Quote Link to comment Share on other sites More sharing options...
bvc Posted December 30, 2002 Report Share Posted December 30, 2002 Well, not only did I have to completely remove ALL sources, but I had to copy, hdlist, and the rest of the .cz's from /mnt/cdrom/Mandrake/base/. I couldn't add any thing removable, only remote. Anyway, I've got the default back and it seems to be working. whew :o Quote Link to comment Share on other sites More sharing options...
Guest Avatar Posted December 30, 2002 Report Share Posted December 30, 2002 Just my $.02 here but I have encountered the same problem several times. It appears the one of the sources in the list is incorrect. Maybe a back file header or something in one of the files. The easiest way to discouver what it is, open a terminal in SU, type urpmi-addmedia (name) Where ie(file://... or ftp://...) with hdlist.cz (last is optional). It will try and then indicate the problem source. You can then remove that souce and try again. When you finally get it to work, go back and try to reinstall the problem source it will tell you which file is the problem and what the problem with it is. Good Luck Quote Link to comment Share on other sites More sharing options...
MoonChild Posted December 30, 2002 Author Report Share Posted December 30, 2002 I fixed the problem guys. It seems it's not that bad. No bad packages installed at all. What I did was: rpm --initdb (begins new database) rpm --rebuilddb (rebuilds the database - takes a long time and you see no activity) All is fixed :) Man pages rule! Quote Link to comment Share on other sites More sharing options...
kmack Posted December 31, 2002 Report Share Posted December 31, 2002 Good to know these various fixes. In my googling it seems that there are LOTS of problems with rpm and urpmi and not all are result of operator error ! Guess all the interaction makes them sensitive to changes, eh? Thanks to all for sharing the fixes. I am sure that it will help many others. :D 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.