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 am running an install on Ubuntu 12.10. In the terminal I enter:

gksudo apt-get install <package>

I am then prompted:

After this operation, 4,789 kB of addition disk space will be used.
Do you want to continue [Y/n]?

I answer:


terminal then appears to hang. I have waited more than 10 minutes.

Please advise

share|improve this question
up vote 6 down vote accepted

As this was apparently the solution, I'm turning my comment into a full answer:

You used gksudo in your command. This is the graphical frontend for sudo. Using it in conjunction with a terminal-based program like apt is not only pointless, but can cause all sorts of fancy fun.

You would use gksudo to run a graphical program (like, say, nautilus), but sudo for commandline operations.

The correct command for your case would therefore be:

sudo apt-get install <package>

This should no longer cause it to get stuck.

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.