Was referring to the Android 9 (AOSP) compilation steps by community for BrainyPi,
While running the commands below inside the docker container shell to download the source code, got the below error.
android-builder@b9f7c047e7c6:~/brainypi-android$ repo init -u https://github.com/brainypi/brainypi-android-manifests.git -b android-9.0 -m brainypi-android-9.0-release.xml
File "/home/android-builder/brainypi-android/.repo/repo/main.py", line 79
file=sys.stderr)
^
SyntaxError: invalid syntax
Also, while trying to run sudo
commands inside the docker container shell there is a password required (no password has been set up) and typing anything (or nothing) is giving incorrect password response.
android-builder@b9f7c047e7c6:~/brainypi-android$ apt install python-is-python3
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
android-builder@b9f7c047e7c6:~/brainypi-android$ sudo apt install python-is-python3
[sudo] password for android-builder:
Sorry, try again.
[sudo] password for android-builder:
sudo: 1 incorrect password attempt
android-builder@b9f7c047e7c6:~/brainypi-android$ update-alternatives --install /usr/bin/python python /usr/bin/python3
update-alternatives: --install needs <link> <name> <path> <priority>
Use 'update-alternatives --help' for program usage information.
android-builder@b9f7c047e7c6:~/brainypi-android$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
[sudo] password for android-builder:
Sorry, try again.
[sudo] password for android-builder:
sudo: 1 incorrect password attempt