Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

This question already has an answer here:

fumetaloca@fumetaloca-Extensa-5635ZG:~$ sudo apt-get install imageJ
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:
 imagej : Depends: openjdk-6-jre but it is not going to be installed or
                   sun-java6-jre but it is not installable
W: Duplicate sources.list entry precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
E: Unable to correct problems, you have held broken packages.

How I can fix this ? Update doesn't work, server change too. And it's with all SW, which I try to install... Feel really lost.

share|improve this question

marked as duplicate by karel, Eric Carvalho, Pandya, Fabby, v2r Jan 16 at 17:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

see…. – Avinash Raj Jan 9 '14 at 10:39

1 Answer 1

Firs you should check the duplicate line the system is warning you about:

gksu gedit /etc/apt/sources.list

Search for the line duplicated and remove it, or disable it by adding # at the begining of the line.

Then, update the system:

sudo apt-get update
sudo apt-get upgrade

And try again to install the software:

sudo apt-get install imagej

Note that the last "j" is NON capital.

share|improve this answer
no darent try with capital j,it works for me. – Avinash Raj Jan 9 '14 at 10:35
maybe updating the repositories will solve the problem. – Avinash Raj Jan 9 '14 at 10:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.