Can you please share more information about your issue?
What is the Operating System of your machine?
Have you tried to do this on another machine?
Have you installed repo through this command: curl https://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo or through sudo apt install
Do you have python or python3 installed on your machine?
I just made a test here and it seems to work on my side without any problems. I’m using Ubuntu 22.04 LTS and the repo installed with curl.