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 tried doing this:

 sudo dpkg -P package_name sun-java6-bin

and it gives me this

dpkg: warning: there's no installed package matching package_name
dpkg: dependency problems prevent removal of sun-java6-bin:
 sun-java6-jre depends on sun-java6-bin (>= 6.26-1lucid1) | ia32-sun-java6-bin (>= 6.26-1lucid1); however:
  Package sun-java6-bin is to be removed.
  Package ia32-sun-java6-bin is not installed.
dpkg: error processing sun-java6-bin (--purge):
 dependency problems - not removing
Errors were encountered while processing:

What should I do now?

share|improve this question
up vote 2 down vote accepted

You can paste this on terminal: sudo apt-get purge sun-java6-jre sun-java6-bin

share|improve this answer
Or you can use aptitude, which I have found to be better at solving dependency problems. – LassePoulsen Aug 11 '11 at 9:46
I upvote for aptitude too, but you will have to install it first because since 11.04 it doesn't come from default. – desgua Aug 11 '11 at 14:57

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.