Unable to install Command Line Tools for Xcode-14.2 using softwareupdate on MacOS 12.6.1
Dear community members,
From the documentation, Command line tools for xcode 14.2 should work on MacOS 12.5+. However as of today 14 Dec 2022 i am unable to install command line tools for xcode 14.2 using softwareupdate. Older version works just fine including 14.0. Any idea what could be wrong here? I don't get much help from the errors in logs.
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
softwareupdate -i "$(softwareupdate -l | grep "\*.*Command Line" | tail -n 1 | sed 's/^[^C]* //')"
Software Update Tool
Finding available software
Downloading Command Line Tools for Xcode
Done.
Error installing updates.
logs from /var/log/install.log
```
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: Adding client SUUpdateServiceClient pid=642, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_22C65_patch_13.1
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: SUOSUServiceDaemon: Adding client: (null) (pid = 642, uid = 501, path = /System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager, connection remote object interface = <NSXPCInterface: 0x7fc0f3910f10>, exported interface = <NSXPCInterface: 0x7fc1043bd3c0>, remote object proxy = <__NSXPCInterfaceProxy_SUOSUServiceClientProtocol: 0x7fc0f39be300>)
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: SULocalProduct: 012-92431 is not completely downloaded (1 remaining). Package(s) <PKDistributionPackageReference com.apple.pkg.CLTools_macOS_SDK> not found:
2022-12-14 07:36:27-08 server-C07DM1AYPJJ9 softwareupdated[275]: Changing status (local product not fully downloaded)) for key 012-92431 from "waiting to install" to "waiting to download"
```
Thanks for the help in advance.
Mac mini 2018 or later