Troubleshooting installing Xcode updates, stuck I am trying to install the upgrades to Xcode, Xcode version 7.2. Unfortunately, the App Store shows that this installation has been "Installing --- less than a minute" for over four hours. 

It appears to be stuck. How can I fix this? Why is this happening? 

I tried correcting the permissions for Xcode, running 

$sudo pkgutil --repair com.apple.pkg.Xcode


I get this in return:

Verifying files from package 'com.apple.pkg.Xcode' on '/'.
    ACL found but not expected on 'Applications'.
    Unable to set owner &amp; group on "Applications". Error 1: Operation not permitted
    Unable to set permissions on "Applications". Error 1: Operation not permitted


Can I try to install these upgrades via the Terminal? I am using OS X El Capitan 10.11.2
For command line you could try using:

sudo softwareupdate -l (to list all available updates)

sudo softwareupdate -ai (to install updates)

sudo softwareupdate --help (for other help options)