Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:
 sun-java6-bin

What should I do now?

share|improve this question

1 Answer 1

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
1  
Or you can use aptitude, which I have found to be better at solving dependency problems. –  Source Lab 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

 
discard

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.