Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install juju on MAAS ubuntu 12.04.04 .

I get the following error :-
root@ubuntu:~# sudo add-apt-repository ppa:juju/stable
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 128, in <module>
    ppa_info = get_ppa_info_from_lp(user, ppa_name)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/", line 84, in get_ppa_info_from_lp
pycurl.error: (7, "couldn't connect to host")

I have tried setting proxy in /etc/apt/apt.conf as well as setting http_proxyenvironment variable.

I'm able to download any packages from internet though e.g. vim etc.

Please let me know what I may be missing here.

share|improve this question
For one, you don't need sudo if you're already root. Not sure if that causes your problem, but it might mess with the environment variables. Either use sudo as normal user or don't as a superuser. – kraxor Jul 17 '14 at 18:12
@kraxor I tried without sudo (when logged in as root) - no luck. Do I need to add a node in MAAS for this to work? I haven't done that because I couldn't figure out how to do that so far. – ajay Jul 18 '14 at 2:42

What do you mean by "installing juju on MAAS"? It seems you're trying to install the juju client on a machine, provisioned by MAAS. If you want to use juju to deploy services on MAAS, you'll need to install juju on your machine and configure your $HOME/.juju/environments.yaml with credentials for your MAAS (see the MAAS documentation for details - Then, you can use juju bootstrap from your machine to create an environment and later juju deploy to deploy some services.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.