Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 have encountered a problem when using the terminal to install programs. Whenever a yes/no option like the one below appears, not just with this program, but with any I try, the terminal stops after I have selected yes and will do nothing. I have even left it on for 3 hours just in case it was going slow, but to no avail.

So my question is, what do I do to fix this or get around it?

enter image description here

share|improve this question
up vote 4 down vote accepted

The problem seems to be due to the use of gksudo. It looks like it doesn't redirect the stdin to the launched process.

As explained in the manual page of gksudo :

Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.

It is not really intended to launch interactive console commands, sudo is designed for this kind of job.

share|improve this answer
thanks, now i get this instead, E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? what do i do about that? – Boi Aug 21 '12 at 9:15
Check this post out for fixing that issue… – Jacob Tomlinson Aug 21 '12 at 9:38
Dont worry actually, figured it out on my own by using rm/var/lib/dpkg/lock then sudo dpkg --configure -a then runng sudo aptget for my program – Boi Aug 21 '12 at 9:40

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.