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 installed JRE 1.6u33, and there was a screen that came up asking me to accept the terms of service. I didn't know how, so I closed out of that screen without pressing Ok. Now, I can't install anything through the Software Center, or the Terminal. The Terminal gives an error message like this:

E: The package sun-java6-jre needs to be reinstalled, but I can't find an archive for it.

What are my options? Is there any way that i can re-open the window so I can accept the terms of service this time?

share|improve this question
Welcome to Ask Ubuntu! Please remember to accept/upvote the best answer to your question (tick/check mark on the left). This way, the question is marked as "answered" and future readers can refer to it knowing the solution works. Thank you...:) – izx Jul 8 '12 at 10:40

Try this. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo add-apt-repository ppa:ferramroberto/java

sudo apt-get update

To install java JRE

sudo apt-get install sun-java6-jre sun-java6-jre-plugin

To install JDK

sudo apt-get install sun-java6-jdk
share|improve this answer
This is my error log when I try to install the JRE............................... cameron@ubuntu:~$ sudo apt-get install sun-java6-jre sun-java6-jre-plugin Reading package lists... Done Building dependency tree Reading state information... Done E: Type 'rramroberto/java/ubuntu' is not known on line 3 in source list /etc/apt/sources.list.d/ferramroberto-java-oneiric.list E: The list of sources could not be read. E: The package sun-java6-jre needs to be reinstalled, but I can't find an archive for it. – Cameron Spangler Jul 8 '12 at 7:11
Try sudo rm /etc/apt/sources.list.d/ferramroberto-java-oneiric.list – Mitch Jul 8 '12 at 7:15
That got rid of the sources.list error. The error about sun-java6-jre is still there though. I have no idea what to do. – Cameron Spangler Jul 8 '12 at 7:21
Try sudo apt-get install -f – Mitch Jul 8 '12 at 7:26
@Cameron Spangler Once everthing is OK, and If this answered your question, you may mark this answer as accepted. – Mitch Jul 8 '12 at 7:42

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.