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

Trying to install eclipse, I get the following error:

XXX:~$ sudo apt-get install eclipse
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 eclipse : Depends: eclipse-jdt (>= 3.8.0~rc4-1ubuntu1) but it is not going to be installed
           Depends: eclipse-pde (>= 3.8.0~rc4-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I have no idea how to solve it. I'm quite new to Ubuntu, but I don't think that I'm using a unstable distribution. But I have added the repository which is required to install Tomcat7. Could that cause the problem?

share|improve this question
Can you include the output of sudo apt-get install eclipse eclipse-jdt eclipse-pde? – tumbleweed Jan 12 '13 at 8:01

I encountered a similar problem, all you got to do it paste this in your bash-terminal :

sudo apt-get install eclipse eclipse-jdt eclipse-pde eclipse-platform* libtomcat7-java
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.