studmuffin007 Posted November 6, 2006 Report Share Posted November 6, 2006 Is it possible to remove urpmi from my 2007 system as it seems to be locked i have tried restarting the pc ive gone to var/lib/urpmi and tried to remove the files called LOCK and RPMLOCK but all i get is access denied and also entert code into a terminal to try and remove them but to no avail thanks in advance Quote Link to comment Share on other sites More sharing options...
tyme Posted November 6, 2006 Report Share Posted November 6, 2006 you need to be root to remove those files, just su: su it will ask for your root password. then remove the files. removing/reinstalling urpmi will not fix your problem and is a very bad idea. Quote Link to comment Share on other sites More sharing options...
studmuffin007 Posted November 6, 2006 Author Report Share Posted November 6, 2006 thanks ive even tried the what is advised on this post https://mandrivausers.org/index.php?showtopic=32505 but its still locked what other options are there thanks in advance Quote Link to comment Share on other sites More sharing options...
ramfree17 Posted November 7, 2006 Report Share Posted November 7, 2006 as tyme said, you have to be root (or superuser) to kill all urpmi processes and remove those files. since you have rebooted then the processes should be non-existing so the second one is the only task that needs completing. if you cant remove those files as root then this might be a bigger problem (but i doubt it). one option would be to go into rescue mode, open a terminal, and then delete those lock files. but i doubt you would need to go that far. you could also try going into single user more (init 1 ?) before going to rescue mode (using the installer discs). ciao! Quote Link to comment Share on other sites More sharing options...
studmuffin007 Posted November 7, 2006 Author Report Share Posted November 7, 2006 Thanks for your help people but i am still quite a newbie to this a little more help or even a walk through would be appreciated. the .LOCK and .RPMLOCK files are still there and it keeps telling me that the urpmi is locked i have even gone to /ect/kde/kdm/kdmrc opened it up in a txt editor and tried to change allowrootlogin=false to true but even that wont let me change the false to true so i can delete those files. Thanks in advance Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted November 7, 2006 Report Share Posted November 7, 2006 Hmmm, it's very simple really. Open a konsole/terminal, you can do this in KDE or even Gnome. In KDE, System, Terminals, Konsole, Then type this: su (enter root password when prompted) rm -f "/var/lib/urpmi/.LOCK" rm -f "/var/lib/urpmi/.RPMLOCK" you cannot go wrong with that. Quote Link to comment Share on other sites More sharing options...
studmuffin007 Posted November 7, 2006 Author Report Share Posted November 7, 2006 thanks ianw1974 i think that did it i was able to get updates but i still get a message telling me that a fatal error occurred: its impossible to retrieve the list of new packagesfrom the media update_source ect ect i have run urpmi.update and i get this returned (one of Powerpack DVD i586, Powerpack DVD i586 (non-free), updates, main, contrib, plf-free, plf-nonfree, update_source, update_source2, beryl) whats that all mean? Thanks in advance Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted November 7, 2006 Report Share Posted November 7, 2006 You have all the sources, but it could be that the mirror you are trying to get to is uncontactable or something. You can update the media from the command line using: su (enter root password when prompted) urpmi.update -a to see if it works any better than the gui interface that might be causing you problems as it's a bit broken in 2007 at the minute. You also seem to have update_source and update_source2, which is the same as the updates you already have, so maybe: urpmi.removemedia update_source urpmi.removemedia update_source2 and leave updates, as this is fine. Quote Link to comment Share on other sites More sharing options...
studmuffin007 Posted November 7, 2006 Author Report Share Posted November 7, 2006 Thanks for that ianw1974 i think it worked i dont get that warning anymore so just incase the problem returns i will bookmark this page for future reference Thank you all 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.