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

Following this instruction and using juju switch local for installing on my laptop as local host, I get the below error when I run juju status,why?

error: container "onrea-local-machine-1" is already create

Also, agent-state is pending. see here:

share|improve this question
up vote 1 down vote accepted

It seems that a previous local provider instance did not get destroyed properly.

You can destroy the current one with:

# If using juju 1.17.x
juju destroy-environment -y local
# If using juju 1.16.x
juju destroy-environment -y -e local

And then look at the current lxc images:

sudo lxc-ls --fancy

Any that start with "onrea-local" will be ones that juju things it created.

You can remove them with:

sudo lxc-destroy -n onrea-local-machine-1

And so on.

This is a limitation of the local provider, and one what we are looking to fix very soon (the clean destruction that is).

share|improve this answer
Thanks, Now I have a new problem: (This is because of reinstalling juju!) | ls /var/lib/lxc => enpty! – mini Mar 9 '14 at 13:41

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.