I tried to install repo , but apt said that package is not available. I refreshed package lists cache by apt update , but the same message.

So, I opened my browser and searched Ubuntu repositories for "repo" by going to the URL https://packages.ubuntu.com/repo. I saw that a repo package is available for xenial, bionic, eoan and even the upcoming groovy release. But it is not available for my Ubuntu, 20.04 Focal Fossa.

Why isn't it available? How can I install it?

  • 6
    It isn't available in Ubuntu 20.04 because it's developers were slow to transition from Python2 (which will reach EOL in late 2020) to Python3.
    – user535733
    Commented Jun 5, 2020 at 11:46
  • 1
    just want to leave a note that repo is back in Ubuntu 21 (hirsute) package repository. version 2.12 / 4 mths old at the moment of writing, but still not bad
    – maoizm
    Commented Jun 23, 2021 at 6:14
  • Thanks @maoizm, but I switched to Guix, a free (as in freedom) rolling release distribution. Commented Jun 23, 2021 at 8:00

4 Answers 4


I encountered this issue as well and I solved it by manually installing repo from the repo installation page:

Taken from the install instructions:

mkdir -p ~/.bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo
  • 1
    Don't forget to add ~/.bin/ to your path. Commented Sep 21, 2020 at 13:42

I didn't want to add eoan to my /etc/apt/sources.list file permanently so I downloaded the packages manually:

I then installed them using sudo dpkg -i <filename>, python-kerberos first.

  • Doest work! dpkg-deb: error: 'python-kerberos' is not a Debian format archive
    – Alex
    Commented Jul 30, 2020 at 2:12
  • This solution works: stackoverflow.com/a/4350447/2379079
    – Alex
    Commented Jul 30, 2020 at 2:22
  • Both links in this answer are now dead.
    – Ted Lyngmo
    Commented Nov 25, 2020 at 8:04

I have managed to install repo by downloading and installing repo and it dependency python-kerberos from eoan repositories from https://packages.ubuntu.com. To install, type these commands and hit enter:

apt update
apt install gnupg python

This to ensure that all dependencies are installed. Now download repo and it's dependency python-kerberos as described above.


I solved it by manually installing repo from the install manually repo

and resolve error Python 3

This answer for android build system error For Python 3

If you get a "/usr/bin/env 'python' no such file or directory" error message, use one of the following solutions: If your Ubuntu 20.04.2 LTS is a newly installed (vs. upgraded) Linux version:

sudo ln -s /usr/bin/python3 /usr/bin/python

f using Git version 2.19 or greater, you can specify --partial-clone when performing repo init. This makes use of Git's partial clone capability to only download Git objects when needed, instead of downloading everything. Because using partial clones means that many operations must communicate with the server, use the following if you're a developer and you're using a network with low latency:

repo init -u https://android.googlesource.com/platform/manifest -b master --partial-clone --clone-filter=blob:limit=10M

you can see document in Downloading the Source

  • Hello. Well this may solve the problem today what about in the future when the links may not work? If there is important info in the links it needs to be in the body of the question.
    – David DE
    Commented Mar 19, 2022 at 13:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .