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.
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 http://archive.canonical.com/ubuntu/ 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.
fumetaloca@fumetaloca-Extensa-5635ZG:~$

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

share|improve this question
    

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 at 10:35
    
maybe updating the repositories will solve the problem. –  Avinash Raj Jan 9 at 10:39

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.