Server Fault is a question and answer site for system and network administrators. 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 trying to install Java (JRE) on Debian. When I run the following apt-get command:

apt-get install sun-java5-bin sun-java5-jre unixodbc libasound2 java-common locales libltdl3 odbcinst1debian1

installation brings up a graphic prompt in my shell terminal asking to agree to terms of use. I press down to scroll through the terms but I cannot press OK, i tried clicking on it and pressing enter but nothing worked.

Is there a way to make sure apt-get only brings up console installations or is there another way to install java?


share|improve this question
That ain't a GUI. – womble Nov 16 '09 at 9:48
up vote 5 down vote accepted

Press the [Tab] key to advance to the Ok button, then press [Enter]. All of the debian text dialogs function in this manner.

share|improve this answer
That was easy... – Alex L Nov 19 '09 at 16:38

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.