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 been trying to install Java on my dedicated server. I have partially installed multiple versions of Java and now cannot un-install them as they all have dependencies.

Whenever I try and un-install I get:

Errors were encountered whilst processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re-install can't be done unless I contact my host and pay 15$.

share|improve this question
Please provide also the apt error itself, not only the summary that it failed. – binfalse Sep 5 '12 at 6:57
How/where would i get/find this? – user87587 Sep 5 '12 at 14:17

You can try uninstalling it following the steps given here:

And then you can install it again using the steps given here: How do I install Java?.

I'm not providing the answers because they are long and are better off at their own pages.

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.