This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

First: you should mention the version of Ubuntu and the architecture that you are using (e.g.: Ubuntu 12.04 x64). Second: whenever you are troubleshooting a console problem you should post all the output and the last entered command.
–
LucioApr 3 '13 at 1:02