Download Android Source CodeAndroid

Tried to download the source code like in the manual there:
[Download The Android Source Code | Khadas Documentation](https://Download Anroid Source Code)

sadly i get error on repo init command:

What coud be the reason?
How can i solve this.

The repo command version that comes with your system doesn’t work.
Please download this file instead of the repo command that comes with your system.
download repo to solve

thank you for your answer.
should the “old” repo uninstall first?

could you give me the linux commands step by step to download and install the right repo?

@Korre Can not do repo init for Android Pie - #11 by Juan_Tantera
You can refer to this link. Netizens have provided detailed steps. If not, I’ll sort out the detailed steps for you.