Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How to install Repo Tool

Writer Matthew Martinez

I am on Ubuntu 14.04. I have followed the instructions here

Specifically:

curl > ~/bin/repo
chmod a+x ~/bin/repo

However, after doing so a html file is downloaded. There does not appear to be an executable file. If I then run repo init, it gives the following error:

"The program 'repo' is currently not installed. You can install it by typing apt-get install phablet-tools"

Now typing this will of course work. The problem is, I cannot use the phablet-tools packaged version of repo, as it is not approved. So how exactly do I get repo installed?

Here are the first few lines of the file that is downloaded:

#!/usr/bin/env python
# repo default configuration
#
import os
REPO_URL = os.environ.get('REPO_URL', None)
if not REPO_URL: REPO_URL = '
REPO_REV = 'stable'

If I try to open the file in a browser I get a 404 "the requested ULR /fit-repo was not found on this server."

Here is a link to the complete file as downloaded.

2

1 Answer

The program was downloaded correctly (At least from the parts you pasted here it seems to be the valid repo python script). You probably need to add the ~/bin directory to your PATH variable to make it work.

To do this, you need to run the following command in your Terminal:
export PATH="~/bin:$PATH"

Check now if the repo command works.

If it works, to make those changes persistent, simply add this command from above to the end of your .bashrc file.

16

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy