Early in the morning a problem occurred on my MacBook pro, my Mac app store didn’t see to load correctly. After investigating the problem online I came across with similar situations and decided to write a post with the steps performed.
Before you perform the steps below make sure that you do not have proxy server on your mac.
Open System Preferences->Network->Advanced->Proxies
Check that you do not have a protocol selected, as the screenshot below.
Software updates using the command line
Some options require the
softwareupdate command to be run as root, so you might start by using the sudo command to enter a root shell:
You then need to enter an administrator’s password when prompted.
You can use the -l or –list argument to see which updates are available.
This returns a list like the following.
Updates that require a restart are marked with [restart].
You can use the -i or –install argument to install one or more of the available updates.
For example, to install the Remote Desktop and iTunes updates listed above, use this command:
softwareupdate --install 'Brother Printer Software Update (3.0)'
Or you can use the -a or –all argument to install all available updates:
softwareupdate --install --all
The Software Update tool will report progress as it downloads and installs the updates.
To see more options and usage instructions, type: