If you open page 15 in that pdf and the line/row that says You also need to install the repo command from the AOSP source code repositories, see Installing repo
and click to open the instructions to add the repo binary the export REPO + curl command underneath to download the repo binary works, but as soon as you try to add the said gpg key it fails because there's an s missing in --recv-keys, but it still fails to add the key.
- Code: Select all
export REPO=$(mktemp /tmp/repo.XXXXXXXXX)
curl -o ${REPO} https://storage.googleapis.com/git-repo-downloads/repo
gpg --recv-key 8BB9AD793E8E6153AF0F9A4416530D5E920F5C65
curl -s https://storage.googleapis.com/git-repo-downloads/repo.asc | gpg --verify - ${REPO} && install -m 755 ${REPO} ~/bin/repo
I got a suggestion in the discuss ML to add the key with this command:
- Code: Select all
gpg --keyserver keyserver.escomposlinux.org --recv-key 8BB9AD793E8E6153AF0F9A4416530D5E920F5C65
which seemed to work according to this output:
- Code: Select all
gpg: key 16530D5E920F5C65: 2 duplicate signatures removed
gpg: /home/kristoffer/.gnupg/trustdb.gpg: trustdb created
gpg: key 16530D5E920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
gpg: Total number processed: 1
gpg: imported: 1
After creating the bin directory in ~ I run:
- Code: Select all
curl -s https://storage.googleapis.com/git-repo-downloads/repo.asc | gpg --verify - ${REPO} && install -m 755 ${REPO} ~/bin/repo
which returns this:
- Code: Select all
gpg: Signature made Thu Feb 3 21:59:53 2022 UTC
gpg: using DSA key 8BB9AD793E8E6153AF0F9A4416530D5E920F5C65
gpg: Can't check signature: No public key
gpg: Signature made Thu Feb 3 21:59:53 2022 UTC
gpg: using RSA key A34A13BE8E76BFF46A0C022DA2E75A824AAB9624
gpg: Can't check signature: No public key
gpg: Signature made Thu Feb 3 21:59:54 2022 UTC
gpg: using EDDSA key E1F9040D7A3F6DAFAC897CD3D3B95DA243E48A39
gpg: Can't check signature: No public key
and if I'm not mistaken by the output the signature works for ~/bin/repo
Now the binary should work, right?
Wrong!
To see if the repo command is seen I type re and press Tab to complete and this is everything that starts with re.
I must be blind, because I fail to see the name repo even though I followed the instructions by the book:
re
read readelf readonly realpath remove-shell renice resize2fs resizepart return
readarray readlink readprofile reboot rename.ul reset resizecons resolvectl rev
echo $PATH gives me:
- Code: Select all
echo $PATH
/home/kristoffer/bin:/home/kristoffer/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
As you can see in the code box above /home/kristoffer/bin can be seen in the PATH so now to the question, what have I done wrong?
I have added the device and kernel repo to the $DEVICE.xml so that's correct.