Post Go back to editing

Problem while fetching the sources of ADI Yocto Linux Release 3.0.0

Category: Software
Product Number: ADSP SC584
Software Version: Linux for ADSP-SC5xx Processors 3.0.0


I am using clean, fresh install of Ubuntu 20.04.6 LTS 64bit.
While following the Yocto Linux 3.0.0 quickstart quide ( I got stuck on the following command:
./bin/repo init \
-u \
-b release/yocto-3.0.0 \
-m release-yocto-3.0.0.xml
Initially I got "/usr/bin/env: ‘python’: No such file or directory". I tried "sudo apt install python-is-python3" to make the script use python3 and also "sudo apt install python" to install python2. In both cases I got following error:
repo: reusing existing repo client checkout in /home/slx/griffin

Traceback (most recent call last):
  File "/home/slx/griffin/.repo/repo/", line 896, in <module>
  File "/home/slx/griffin/.repo/repo/", line 861, in _Main
    result = repo._Run(name, gopts, argv) or 0
  File "/home/slx/griffin/.repo/repo/", line 293, in _Run
    result = run()
  File "/home/slx/griffin/.repo/repo/", line 276, in <lambda>
    run = lambda: self._RunLong(name, gopts, argv) or 0
  File "/home/slx/griffin/.repo/repo/", line 450, in _RunLong
  File "/home/slx/griffin/.repo/repo/", line 416, in execute_command
  File "/home/slx/griffin/.repo/repo/", line 382, in execute_command_helper
    result = cmd.Execute(copts, cargs)
  File "/home/slx/griffin/.repo/repo/subcmds/", line 393, in Execute
  File "/home/slx/griffin/.repo/repo/subcmds/", line 210, in _ConfigureUser
    name = self._Prompt("Your Name", mp.UserName)
  File "/home/slx/griffin/.repo/repo/", line 756, in UserName
  File "/home/slx/griffin/.repo/repo/", line 769, in _LoadUserIdentity
    u = self.bare_git.var("GIT_COMMITTER_IDENT")
  File "/home/slx/griffin/.repo/repo/", line 3701, in runner
  File "/home/slx/griffin/.repo/repo/", line 402, in Wait
    raise GitCommandError(
git_command.GitCommandError: GitCommandError: git command failure
    Project: manifests

I also tried release 3.1.0 ( with the same result. How can I solve this problem?

  • Ok, I figured it out. As I am using clean Ubuntu Install I need to set my git identity using:
    $ git config --global "John Doe"
    $ git config --global

    I am also using python3.

  • Hi,

    I could see the error shows there is no python in the system, It seems you might have missed the "Installing Required Packages" host requirement section.


    $ sudo apt-get update
    $ sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm u-boot-tools openssl curl tftpd-hpa python3 zstd liblz4-tool

    If the above steps were good, I recommend to try re-install ubuntu again to give it a try, might be issue in installing the OS packages

    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ curl > ./bin/repo
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 44471 100 44471 0 0 105k 0 --:--:-- --:--:-- --:--:-- 105k
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ chmod a+x ./bin/repo
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ ./bin/repo init \
    > -u \
    > -b release/yocto-3.0.0 \
    > -m release-yocto-3.0.0.xml
    Downloading Repo source from

    Your identity is: Prasanth R
    If you want to change this, please re-run 'repo init' with --config-name

    repo has been initialized in /media/prasanth/workspace/prasanth/yocto
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ ./bin/repo sync
    remote: Enumerating objects: 6, done.
    remote: Counting objects: 100% (6/6), done.
    remote: Compressing objects: 100% (4/4), done.
    remote: Total 6 (delta 2), reused 4 (delta 2), pack-reused 0
    Unpacking objects: 100% (6/6), 1.20 KiB | 410.00 KiB/s, done.
    Fetching: 100% (5/5), done in 52.217s
    Checking out: 100% (5/5), done in 0.502s
    repo sync has finished successfully.
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 20.04.6 LTS
    Release: 20.04
    Codename: focal

    Prasanth R
  • As I am using fresh Ubuntu install so It turned out that it is mandatory to set identity after git install:

    $ git config --global "John Doe"
    $ git config --global

    Also installing python3 is not sufficient. You need to install python-is-python3 or configure an alias by adding alias python='python3' to ~/.bashrc .
    After this changes everything works fine.