Kieth Posted May 31, 2004 Report Share Posted May 31, 2004 I know that I need to kill a certain PID when the urpmi is locked. The only problem is that I do not know how to tell which PID is using the urpmi. Below is what I have. Which one is being used by urpmi? Thanks Kieth # ps -ax Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html PID TTY STAT TIME COMMAND 1 ? S 0:03 init [5] 2 ? SWN 0:00 [ksoftirqd/0] 3 ? SW< 0:00 [events/0] 4 ? SW< 0:00 [kblockd/0] 5 ? SW 0:00 [kapmd] 6 ? SW 0:00 [pdflush] 7 ? SW 0:00 [pdflush] 8 ? SW 0:00 [kswapd0] 9 ? SW< 0:00 [aio/0] 11 ? SW 0:00 [kseriod] 15 ? SW 0:00 [kjournald] 153 ? S 0:01 devfsd /dev 244 ? SW 0:00 [khubd] 495 ? SW 0:00 [kjournald] 504 ? SW 0:00 [kjournald] 505 ? SW 0:00 [kjournald] 891 ? S 0:00 portmap 905 ? S 0:00 syslogd -m 0 913 ? S 0:00 klogd -2 1059 ? S 0:00 xfs -port -1 -daemon -droppriv -user xfs 1111 ? S 0:00 /usr/bin/mdkkdm -nodaemon 1127 ? S 0:00 /usr/sbin/atd 1133 ? S 2:22 /etc/X11/X -deferglyphs 16 -auth /var/run/xauth/A:0-U 1146 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid 1157 ? S 0:00 -:0 1207 ? S 0:00 cupsd 1374 ? S 0:00 crond 1516 tty1 S 0:00 /sbin/mingetty tty1 1517 tty2 S 0:00 /sbin/mingetty tty2 1518 tty3 S 0:00 /sbin/mingetty tty3 1519 tty4 S 0:00 /sbin/mingetty tty4 1520 tty5 S 0:00 /sbin/mingetty tty5 1521 tty6 S 0:00 /sbin/mingetty tty6 1742 ? S 0:00 /bin/sh /usr/bin/startkde 1824 ? S 0:11 magicdev 1838 ? S 0:00 /usr/lib/gconfd-2 13 1841 ? S 0:00 kdeinit: Running... 1844 ? S 0:00 kdeinit: dcopserver --nosid 1846 ? S 0:00 kdeinit: klauncher 1849 ? S 0:01 kdeinit: kded 1850 ? S 0:00 fam 1858 ? S 0:02 /usr/bin/artsd -F 10 -S 4096 -s 1 -m artsmessage -c d 1924 ? S 0:03 kdeinit: knotify 1925 ? S 0:00 kwrapper ksmserver 1927 ? S 0:00 kdeinit: ksmserver 1928 ? S 0:18 kdeinit: kwin 1930 ? S 0:08 kdeinit: kdesktop 1934 ? S 0:22 kdeinit: kicker 1935 ? S 0:00 kdeinit: kio_file file /tmp/ksocket-kieth/klauncherrd 1941 ? S 0:07 kdeinit: klipper 1942 ? S 0:02 /usr/bin/perl /usr/bin/mdkapplet 1951 ? D 0:02 kdeinit: konsole 1952 pts0 S 0:00 /bin/bash 2462 ? S 0:04 kdesu --ignorebutton -c /usr/sbin/drakconf.real 2466 ? S 0:00 /usr/bin/kdesud 2505 pts2 S 0:00 /bin/su root -l -c /usr/bin/kdesu_stub 2508 pts2 S 0:00 /usr/bin/kdesu_stub 2541 ? S 0:22 /usr/bin/perl /usr/sbin/drakconf.real 2962 ? S 0:08 wish /usr/bin/tkpppoe 2966 ? S 0:00 /bin/sh /usr/sbin/adsl-connect /etc/ppp/rp-pppoe-gui/ 2980 ? S 0:00 /usr/sbin/pppd pty /usr/sbin/pppoe -p /var/run/adsl-A 2981 ? S 0:00 /usr/sbin/pppoe -p /var/run/adsl-Alice.pid.pppoe -I e 3190 ? S 0:37 /usr/bin/perl /usr/sbin/rpmdrake --embedded 35659826 3224 pts0 S 0:00 su 3227 pts0 S 0:00 bash 3263 pts0 R 0:00 ps -ax Quote Link to comment Share on other sites More sharing options...
chris z Posted May 31, 2004 Report Share Posted May 31, 2004 (edited) next time run.......... ps -aux it will give you more info. urpmi processes will say urpmi in the process line. there will also be a process or 2 pertaining to "curl" that you will need to kill. the ps -ax command isn't sufficient enough to show urpmi running, so it isn't in the list you posted. if it should still remain locked after killing the processes, then a reboot will unlock it. Chris Edited May 31, 2004 by chris z Quote Link to comment Share on other sites More sharing options...
spinynorman Posted May 31, 2004 Report Share Posted May 31, 2004 If you're using MCC, the answer is presumably rpmdrake as that is the frontend for urpmi. :unsure: Quote Link to comment Share on other sites More sharing options...
Kieth Posted May 31, 2004 Author Report Share Posted May 31, 2004 Thanks Kieth Quote Link to comment Share on other sites More sharing options...
ramfree17 Posted June 1, 2004 Report Share Posted June 1, 2004 lock as in hanged or as in you are getting an error message that it is locked? if its the latter then you would have been supplied the name of the lock (i think it was in /var) which you can safely rename/remove. i am just guessing here because that behavior usually crops up when rpmdrake/urpmi was not given enough time to release those lock in previous mandrake versions. ciao! 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.