Hello @sunil,
Some colleagues had a similar problem. Unfortunately, we don’t know the reason for this problem, and I was not able to reproduce it.
For them, the solution was to update to Sequoia and follow the instructions in this post.
Giving a second look at your initial post, I notice that there is an error in the output of the command
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
.
Not sure if this is linked to the problem, but you can try to remove the CLT with
sudo rm -rf /Library/Developer/CommandLineTools
and reinstall back with
xcode-select --install
.
I’m sorry I don’t have a more clean solution at this time.
Best, Luigi