OS X 10.11 (15A178W): The softwareupdate command line tool for OS X 10.11 (15A178W) is unable to access updates for OS X 10.11 (15A204H) without first opening the App Store application

Originator:rtrouton
Number:rdar://21671178 Date Originated:03-Jul-2015 02:26 PM
Status:Open Resolved:
Product:OS X Product Version:Mac OS X 10.11 (15A178W)
Classification:Serious Bug Reproducible:Always
 
Summary:

The softwareupdate command line tool for OS X 10.11 (15A178W) is unable to access the following updates without first opening the App Store application:

OS X El Capitan Developer Beta 2
El Capitan Recovery Update


Steps to Reproduce:

1. Perform a new install (not upgrade) of OS X 10.11 (15A178W) into a VM or on a Mac.
2. Without going through Setup Assistant, install a script or other means to run the following command with root privileges:

softwareupdate -i -a

Expected Results:

3. The softwareupdate tool contacts Apple's software update service and installs the following updates:

OS X El Capitan Developer Beta 2
El Capitan Recovery Update

4. Following a restart, the VM or Mac should now be running OS X 10.11 (15A204H)


Actual Results:

The referenced updates are not detected by softwareupdate and are not installed. The updates are available after the following process:

1. Go through Setup Assistant and set up an account
2. Log into the account
3. Open the App Store application
4. Check for updates via the App Store and verify that the following updates are now available:

OS X El Capitan Developer Beta 2
El Capitan Recovery Update

5. run the following command with root privileges:

softwareupdate -i -a

A restart is recommended after installing these updates.

6. Following a restart, the VM or Mac is now running OS X 10.11 (15A204H)


Regression:

This process addresses the issue without the need to open the App Store:

1. Perform a new install (not upgrade) of OS X 10.11 (15A178W) into a VM or on a Mac.
2. Without going through Setup Assistant, install a script or other means to run the following command with root privileges:

/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "https://swscan.apple.com/content/catalogs/others/index-10.11seed-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz"

3. Once the defaults command has completed execution, run the following command with root privileges:

softwareupdate -i -a

4. The softwareupdate tool contacts Apple's software update service and installs the following updates:

OS X El Capitan Developer Beta 2
El Capitan Recovery Update

A restart is recommended after installing these updates.

5. Following a restart, the VM or Mac is now running OS X 10.11 (15A204H)


Notes:

For my testing, I used DeployStudio (http://www.deploystudio.com), which has the ability to install and run script-driven tasks on otherwise-unconfigured installs of OS X.

All testing was done in VMware Fusion 7.x running OS X VMs.

Comments

Rich Trouton - 19-Jul-2015 02:10 AM

I verified that I am not behind a proxy and re-ran the test inside a VMware VM. Uploading the requested sysdiagnose file. 'sysdiagnose_2015.07.19_02-03-03-0400.tar.gz' was successfully uploaded.

Apple Developer Relations - 07-Jul-2015 01:46 PM

Apple Developer Relations07-Jul-2015 01:46 PM

We need more information to investigate this issue.

Are you behind a proxy perhaps?

Please attach a sysdiagnose if you're not using a proxy for further investigation.

More on running sysdiagnose:

  1. Launch Terminal.app
  2. Enter this command: sudo sysdiagnose
  3. Enter your admin password
  4. When sysdiagnose has completed (may take several minutes), locate the new sysdiagnose file in /var/tmp or /private/var/tmp. Upload that file.

An alternative approach uses a key command:

  1. Press Shift-Control-Option-Command-Period when the issue reproduces
  2. Wait for a few minutes (you can release the keys).
  3. When sysdiagnose has completed (may take several minutes), locate the new sysdiagnose file in /var/tmp or /private/var/tmp. Upload that file.

Please provide your response or results by updating your bug report.

Please compress any bundled files (e.g. nested folders) prior to uploading.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!