Comment 2 for bug 803709

Revision history for this message
Bonzer (bonzer) wrote : Re: Hang on shutdown

Do you have any remote network shares mounted?

I also recently started getting this symptom on Ubuntu 11.04. where it hangs on shutdown at the line "Checking for running unattended-upgrades" for maybe 5 - 10 minutes, although it does eventually shutdown if you wait long enough. I found doing "shutdown -h now" on the terminal works immediately. It was only slow at shutting down when using the Ubuntu "Shutdown" menu option.

It started after I changed my network settings. I use wired Ethernet. I eventually discovered it seems to be something to do with having a remote network share and at what stage in the shutdown process Ubuntu decides to disconnect/disable the network.

I found two fixes:

1) If you dismount remote network shares prior to shutting down, it shuts down immediately. I have one CIFS share set to auto-mount at boot in my fstab.
2) In "Network Connections", I had the "Available to all users" check box unticked for my Ethernet card. As soon as I ticked this box, it started shutting down immediately without needing to manually dismount my CIFS share first.