Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I was trying to install Microsoft Office 2011 when the installer hanged (and it is not going anywhere, I waited about 12 hours before trying to reboot this macbook). Now I can't restart this macbook until the installer finishes.

Is there a easy way to locate what process is preventing my mac from restarting?

Error dialog

share|improve this question
    
When I asked the question I forgot that I could do a "sudo shutdown -h now" to really force my mac to shutdown (it is a better way to shutdown instead of power button), but that answers "how to force a shutdown/restart", not how to find the process that is preventing the shutdown. –  grprado Nov 20 '12 at 13:30
    
Same problem here, same software being installed. –  Chords Mar 3 '13 at 17:11

3 Answers 3

You could just force your computer to switch off and then restart it. Just push the "Power On/Off" button for a few seconds.

You could also open the Activity Monitor application and check if there is a corrupted process.

share|improve this answer
1  
Power on/off for a few seconds just do a very dirt shutdown and thats what I am trying to avoid. –  grprado Nov 20 '12 at 13:27
    
@grprado - I do it pretty regularly (ever week or so. My mac crashes more then my PC!), and have not had any problems yet. –  Fake Name Nov 26 '12 at 16:54

I had the same problem with Google Voice and Video:

Your computer can't be restarted now, because software is being installed.
Google Voice and Video is being installed. Interrupting the install may damage your computer. You can restart when the install is complete.

First of all, find the process PID in Activity Monitor or using ps wuax in Terminal e.g. by: ps wuax | grep install. If you can't find it, try to move the window as fast as possible and check which process takes CPU time.

In Activity Monitor you can actually take a Sample of the process what's doing. Or by debugging it from Terminal sudo dtruss -fp 1234

If this does nothing, try to send hang up signal first to the process what it would do by (replace 1234 with your Process ID number):

sudo kill -HUP 1234

then if nothing happens, try to kill it softly by:

sudo kill 1234

if it's still not killed, then try it hardly by:

sudo kill -9 1234

Other method is to use xkill if you've this tool installed:

  1. Run: xkill
  2. Click on the window which you want to kill.

Done.


Another easy method is to press Alt+CMD+Esc, then popup should appear, and you can select and kill the process.

share|improve this answer
    
xkill is not available by default. –  patrix Aug 2 '13 at 14:52
1  
Thanks, I didn't realised that. I had this installed with X11. –  kenorb Aug 2 '13 at 15:52

The Microsoft Office Installer should have an icon in the Dock, just right-click it and choose "Quit" for hold the option key and choose "Force Quit" then shutdown or run the installer again. I have had to do that a couple of times due to hangs during the Office 2013 install, although I did not do a shutdown, just force quit and run installer again has worked for me.

EDIT Since this does not work for you you can use the Activity Monitor or "ps -ef" to find the processes and kill them.

share|improve this answer
    
I alread did that, the problem is that MS Office installer starts other processes not linked to the installer. Force quit the installer doesn't kill these processes. By the time I took the screenshot the installer was killed a long time ago. –  grprado Nov 20 '12 at 13:55
    
Ah, that is an issue I have not seen. You can use the Activity Monitor or "ps -ef" to find the processes and kill them. –  Dave Nelson Nov 26 '12 at 15:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.