[microk8s] Troubleshooting Microk8s Installation on macOS

Error: Your Command Line Tools are too outdated

By following the instruction from the official website Alternative install methods: macOS, I got an error while running brew install ubuntu/microk8s/microk8s as shown below

As the prompt suggested, I installed the latest Xcode from the AppStore. (It took quite long to be honest). But it still showed the same error after updating the Xcode to the 13.2.1

The trick is that we should run the following commands:

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

And then when I run brew install ubuntu/microk8s/microk8s, the MicroK8s installer can be downloaded.


If this post helped you to solve a problem or provided you with new insights, please upvote it and share your experience in the comments below. Your comments can help others who may be facing similar challenges. Thank you!
Buy Me A Coffee
DigitalOcean Referral Badge
Sign up to get $200, 60-day account credit !