kilimanjaro Posted October 30, 2003 Report Share Posted October 30, 2003 I can't rebuild my urpmi database. I tried <rm -f/var/lib/rpm/ _db* && rebuilddb> the response I get is <rm: cannot lstat `/var/lib/rpm/_db*': no such file> Am I using the right command? I am also having a problem when I try <urpmi urpmi> The response I get them is <installation failed, some files are missing: /var/cache/urpmi/rpms/urpmi-4.2-34.1mdj.noarch.rpm You may want to update your database> I tried <urpmi urpmi-4.2-34.1mdj.noarch.rpm> and my response is <unable to access rpm file [urpmi-4.2-34.1mdj.noarch.rpm] error registering local packages> what command do I use to update my database? This is alot like the problems I had before, it wouldn't register local packages and then urpmi stopped working and them my computer stopped working. Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted October 30, 2003 Report Share Posted October 30, 2003 I believe it's: # rpm -rebuilddb Quote Link to comment Share on other sites More sharing options...
chris z Posted October 30, 2003 Report Share Posted October 30, 2003 in terminal, as root: rm -f /var/lib/rpm then: rpm --rebuilddb before you do that, are you sure that you don't have another urpmi process running already? if so, that would lock it & prevent you from running another urpmi process. did you look at what processes you have running? if you see urpmi, then kill it from terminal before trying to rebuild. Chris Quote Link to comment Share on other sites More sharing options...
kilimanjaro Posted October 30, 2003 Author Report Share Posted October 30, 2003 I tried rpm -rebuilddb and it doesn't do anything, it doesn't give me my user prompt. When I try rm -f /var/lib/rpm I get rm:cannot remove `/var/lib/rpm': Is a directory Quote Link to comment Share on other sites More sharing options...
kilimanjaro Posted October 30, 2003 Author Report Share Posted October 30, 2003 I think I have it fixed. I was missing urpmi-4.2-3.1mdk urpmi wouldnt install it so I did through mandrake control centre. I still can't rebuild my database. Quote Link to comment Share on other sites More sharing options...
chris z Posted October 30, 2003 Report Share Posted October 30, 2003 to get your data bases back, have you tried..... urpmi.removemedia -a then use easy urpmi to add your external rpm sources. then, manually add your cd sources back using MCC->software sources manager. Chris Quote Link to comment Share on other sites More sharing options...
kilimanjaro Posted October 31, 2003 Author Report Share Posted October 31, 2003 Chris I just did a fresh install of 9.1 and I just put all of my sources on. I did it from easy urpmi. I am using dial up and I have a very hard time finding sources that work. My guess is that it is the slow connection speed. It just won't rebuild my databases. Quote Link to comment Share on other sites More sharing options...
Vdubjunkie Posted October 31, 2003 Report Share Posted October 31, 2003 I don't know if you are up for it or specifically if it will work better on dial-up, but I understand Ximian's Red Carpet is absolutely amazing. I have used it a bit but I know of people who use it like crazy and find it bulletproof. It may be worth a try if you get desperate. Incidentally, I hadn't put much effor into Red Carpet yet because I have been having such good luck with urpmi since finding a really good source, but now my urpmi is broken and I am stuck. It simply hangs after downloading everything and beginning to attempt the install of the appropriate packages. Bummer. Anyway, if you want to give it a try, go to www.Ximian.com and check out Red Carpet. Oh yeah, you were told that it wouldn't remove a directory because of the lack of the -R switch. When removing an entire directory you want to use "rm -Rf <location>" Quote Link to comment Share on other sites More sharing options...
kilimanjaro Posted October 31, 2003 Author Report Share Posted October 31, 2003 The main problem for my sources is/are contrib and updates, all the other ones seem to be pretty reliable. Occasionally main has trouble. The main one is contribs. The only site I have had work for contribs is darenet. I haven't found any others that will work. I wonder why contribs has such a problem? I don't know what ximian is but I will check it out. 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.