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 accidentally removed /usr/local/ directory. I have not reboot or anything. I am now root.

Do I have to install ubuntu again or just create a new user?


share|improve this question
What was the command? rm or rm -r? if rm: /usr/local/ should only have directories so it should not have deleted anything ;) – Rinzwind May 3 '12 at 9:36
rm -rf /usr/local/ – Alex May 3 '12 at 9:58
Here is a list of the directories that where in /usr/local/: – Rinzwind May 3 '12 at 10:01
up vote 1 down vote accepted

If you've just removed /usr/local, it is not critical. That directory is intended for local installations (i.e. packages installed outside the package management system, APT). You do not need to recreate it, programs that need it are supposed to install it themselves.

share|improve this answer
Ok thank you. A little panic gone! – Alex May 3 '12 at 9:59

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.