AppStore continually trying to re-update Command Line Tools

How do I stop the AppStore Updater continually trying to update Command Line Tools (OS X 10.10) for Xcode-7.0


Firstly, the Update is actually installed.

XCode 7.0.1 and Command Line Tools (OSX 10.10) for XCode 7.0 are both installed and working ok.

However, every morning, there's "Command Line Tools (OS X 10.10) for Xcode-7.0", waiting in the Update queue again.


I've tried to install it any number of time, and it seems to from the app, but then, ion the morning, there it is again.

I've tried to install it with 'softwareupdate' - It throws an error


The screen log:

zeus:~ robert$ sudo softwareupdate -i "Command Line Tools (OS X 10.10) for Xcode-7.0"
Password:
Software Update Tool
Copyright 2002-2012 Apple Inc.
Finding available software
Downloading Command Line Tools (OS X 10.10) for Xcode
Downloaded Command Line Tools (OS X 10.10) for Xcode
Installing Command Line Tools (OS X 10.10) for Xcode
Done.
zeus:~ robert$


However - the /var/log/install.log tellsm me there is an error.


Sep 30 12:45:12 zeus.localhost softwareupdated[302]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Sep 30 12:45:12 zeus.localhost installd[2287]: PackageKit: ----- Begin install -----
Sep 30 12:45:12 zeus.localhost installd[2287]: PackageKit: request=PKInstallRequest <2 packages, destination=/>
Sep 30 12:45:12 zeus.localhost installd[2287]: PackageKit: packages=(
     "PKLeopardPackage <file:///Library/Updates/031-10481/CLTools_Executables.pkg>",
     "PKLeopardPackage <file:///Library/Updates/031-10481/DevSDK_OSX1010.pkg>"
  )
Sep 30 12:45:12 zeus.localhost installd[2287]: PackageKit: Will do receipt-based obsoleting for package identifier com.apple.pkg.CLTools_Executables (prefix path=/)
Sep 30 12:45:12 zeus.localhost installd[2287]: PackageKit: Will do receipt-based obsoleting for package identifier com.apple.pkg.DevSDK_OSX1010 (prefix path=/)
Sep 30 12:45:15 zeus.localhost installd[2287]: PackageKit: Extracting file:///Library/Updates/031-10481/CLTools_Executables.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/ADA29824-7B3C-40E1-A6C9-74CA74BB214D.activeSandbox/Root, uid=0)
Sep 30 12:45:21 zeus.localhost installd[2287]: PackageKit: Extracting file:///Library/Updates/031-10481/DevSDK_OSX1010.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/ADA29824-7B3C-40E1-A6C9-74CA74BB214D.activeSandbox/Root, uid=0)
Sep 30 12:45:36 zeus.localhost installd[2287]: PackageKit: update_dyld_shared_cache -overlay /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/ADA29824-7B3C-40E1-A6C9-74CA74BB214D.activeSandbox/Root
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: prevent user idle system sleep
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: suspending backupd
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: Executing script "preinstall" in /private/tmp/PKInstallSandbox.RALsV0/Scripts/com.apple.pkg.CLTools_Executables.5en1TF
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: *** Couldn't posix_spawn: error 2
Sep 30 12:45:55 zeus.localhost install_monitor[2388]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Sep 30 12:45:55 zeus.localhost install_monitor[2388]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: releasing backupd
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: allow user idle system sleep
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “CLTools_Executables.pkg”." UserInfo=0x7ff197a52480 {NSFilePath=preinstall, NSURL=file:///Library/Updates/031-10481/CLTools_Executables.pkg, PKInstallPackageIdentifier=com.apple.pkg.CLTools_Executables, NSLocalizedDescription=An error occurred while running scripts from the package “CLTools_Executables.pkg”.} {
     NSFilePath = preinstall;
     NSLocalizedDescription = "An error occurred while running scripts from the package \U201cCLTools_Executables.pkg\U201d.";
     NSURL = "file:///Library/Updates/031-10481/CLTools_Executables.pkg";
     PKInstallPackageIdentifier = "com.apple.pkg.CLTools_Executables";
  }
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: Running idle tasks
Sep 30 12:45:55 zeus.localhost installd[2287]: PackageKit: Removing client PKInstallDaemonClient pid=302, uid=200 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated)
Sep 30 12:45:56 --- last message repeated 1 time ---
Sep 30 12:45:56 zeus.localhost softwareupdated[302]: SoftwareUpdate: error on install of 031-10481: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “CLTools_Executables.pkg”." UserInfo=0x7fa830517a60 {SUErrorUpdateTitle=Command Line Tools (OS X 10.10) for Xcode, NSURL=file:///Library/Updates/031-10481/CLTools_Executables.pkg, PKInstallPackageIdentifier=com.apple.pkg.CLTools_Executables, NSLocalizedDescription=An error occurred while running scripts from the package “CLTools_Executables.pkg”., SUErrorRelatedCode=SUErrorCodeInstallFailure, NSFilePath=preinstall, SUErrorUpdateProductKey=031-10481}
Sep 30 12:45:56 zeus.localhost softwareupdated[302]: Removing 031-10481
Sep 30 12:45:56 zeus.localhost softwareupdated[302]: Removed local product for 031-10481 (1)
Sep 30 12:45:56 zeus.localhost softwareupdated[302]: Removing client SUUpdateServiceClient pid=2286, uid=0, installAuth=YES rights=(system.install.apple-software, system.install.apple-software.standard-user, system.install.software, com.apple.SoftwareUpdate.modify-settings), transactions=0 (/usr/sbin/softwareupdate)
Sep 30 12:45:57 zeus.localhost softwareupdated[302]: Stopping transaction with ID [0x1]
Sep 30 12:45:57 zeus.localhost softwareupdated[302]: SoftwareUpdate: Removed foreground transaction [0x1]
Sep 30 12:46:03 zeus.localhost installd[2287]: PackageKit: Done with sandbox removals


I've also tried installing it with Pacifist - and that throws two errors althought they seem different and unrelated to above....


1.


2.


Now don't let these two error logs throw anyone off. The package is actually installed !!!!

If I run

gcc -v -Wall hello.c -o hello


I get the correct output.

gcc -v -Wall hello.c -o hello
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.10.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name hello.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 253.2 -v -dwarf-column-info -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0 -Wall -fdebug-compilation-dir /Users/robert -ferror-limit 19 -fmessage-length 221 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/3h/hqtl82m17bvcf589cw140vgr0000gn/T/hello-2aa985.o -x c hello.c
clang -cc1 version 7.0.0 based upon LLVM 3.7.0svn default target x86_64-apple-darwin14.5.0
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.10.0 -o hello /var/folders/3h/hqtl82m17bvcf589cw140vgr0000gn/T/hello-2aa985.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/lib/darwin/libclang_rt.osx.a
zeus:~ robert$




So for some reason, the Mac AppStore updater is not seeing that it's actually updated.


Any ideas anyone? Apple? anybody?

Thanks Max108. This worked for me,

AppStore continually trying to re-update Command Line Tools
 
 
Q