3

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

jokerdino
  • 41,320
Boi
  • 337

1 Answers1

4

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.

  • 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 09:15
  • Check this post out for fixing that issue http://askubuntu.com/questions/15433/fixing-could-not-get-lock-var-lib-dpkg-lock – Jacob Tomlinson Aug 21 '12 at 09: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 09:40