Reboot Mac from command line
Open terminal and type "sudo shutdown -r now" (Without quotes), you should be prompted for a password.
Open terminal and type "sudo shutdown -r now" (Without quotes), you should be prompted for a password.
Open terminal type "sudo softwareupdate -i -a" (Without quotes) Hit enter Supply the password when it asks Reboot if prompted.