Xcode command line tools won’t install
Some users may see the following “Can’t install the software” error when trying to install Xcode Command Line Tools in Terminal with the
xcode-select --install command:
The quickest way to resolve this issue is to visit the Apple Developer download page and download the version of Command Line Tools that you need directly. Be sure to select a version of Command Line Tools that is compatible with your version of macOS.
It’s also important to verify you’re running the latest version of macOS with all updates applied.
To determine which versions of Xcode are compatible with specific versions of macOS, see this FAQ article: Which versions of Xcode are supported on my Mac?