PDA

View Full Version : [ubuntu] Cannot install openjdk-6-jre



mn_voyageur
May 8th, 2011, 05:47 PM
In my attempt to install openjdk-6-jre, I get the following.

Any help would be appreciated.

MarkN

openjdk-6-jre:
Depends: openjdk-6-jre-headless but it is not going to be installed
Depends: libaccess-bridge-java-jni but it is not going to be installed

CLI returns:

$ sudo apt-get install openjdk-6-jdk
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:
openjdk-6-jdk : Depends: openjdk-6-jre (>= 6b20-1.9.7-0ubuntu1) but it is not going to be installed
E: Broken packages
$

mn_voyageur
May 9th, 2011, 02:46 AM
Bump.

munky99999
May 10th, 2011, 06:50 AM
I just discovered this problem as well. Are you still at maverick?

I believe it might have been something that removed the update repos.

Synaptic -> Settings -> Repos -> Updates

or for cli guys


deb http://security.ubuntu.com/ubuntu/ maverick-security universe main multiverse restricted
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ maverick-updates universe main multiverse restricted
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ maverick-backports universe main multiverse restricted

should fix your problem.

wildmanne39
May 10th, 2011, 09:59 AM
In my attempt to install openjdk-6-jre, I get the following.

Any help would be appreciated.

MarkN

openjdk-6-jre:
Depends: openjdk-6-jre-headless but it is not going to be installed
Depends: libaccess-bridge-java-jni but it is not going to be installed

CLI returns:

$ sudo apt-get install openjdk-6-jdk
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:
openjdk-6-jdk : Depends: openjdk-6-jre (>= 6b20-1.9.7-0ubuntu1) but it is not going to be installed
E: Broken packages
$

Hi you can try these commands one at a time and then try to install that package again. Aslo make sure that your repositories have the main,universe,restricted and multiverse enabled in synaptic package manager.

sudo rm /var/lib/apt/lists/partial/*

sudo apt-get update

mn_voyageur
May 13th, 2011, 05:22 AM
I have been unsuccessful.

Repos look good.

CLI
sudo apt-get update did not help.

Any other suggestions?

MarkN

wildmanne39
May 13th, 2011, 08:45 AM
I have been unsuccessful.

Repos look good.

CLI
sudo apt-get update did not help.

Any other suggestions?

MarkN

Hi, let make sure the partial download is completely gone. Type

sudo apt-get --purge remove --force sun-java6-jre
Then
sudo apt-get autoclean
Then
sudo apt-get autoremove
Then try to install the package again.:)

Amp1776
May 15th, 2011, 10:19 PM
Did anybody solve this?

I get: openjdk-6-jre:
Depends: openjdk-6-jre-headless but it is not going to be installed

in synaptics. headless will respond: openjdk-6-jre-headless:
Depends: openjdk-6-jre-lib but it is not going to be installed
Depends: tzdata-java but it is not going to be installed
Recommends: icedtea-6-jre-cacao but it is not going to be installed

Then backwards to tzdata-java...tzdata-java:
Depends: tzdata (=2010l-1) but 2011d-0ubuntu0.10.10 is to be installed

which it is. I have apt-get updates and fixed. im at a loss at this point, been on ubuntu several months. Im trying to run android from ubuntu. :confused:

munky99999
May 15th, 2011, 10:24 PM
Amp1776 have you tried my fix? It worked for me.

Amp1776
May 15th, 2011, 10:30 PM
thanks dude! been on that for hours, somehow missed yours! :guitar:

itsmekrazzy4
August 7th, 2011, 02:11 PM
I have been tryin to install scilab...even my problem boils down to
tzdata-java:
Depends: tzdata (=2011g-0ubuntu0.10.10) but 2011g-0ubuntu0.11.04 is to be installed

I tried the repositories suggested by munky but it still doesn't work!!

sindhughanti
April 19th, 2012, 09:04 AM
I just discovered this problem as well. Are you still at maverick?

I believe it might have been something that removed the update repos.

Synaptic -> Settings -> Repos -> Updates

or for cli guys


deb http://security.ubuntu.com/ubuntu/ maverick-security universe main multiverse restricted
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ maverick-updates universe main multiverse restricted
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ maverick-backports universe main multiverse restrictedshould fix your problem.

thank you so much! i am on natty, so i changed the 'maverick' to 'natty'.
many other applications which were dependent on java had stopped working for me and i could not work at all. this helped. i can finally install java now! :P:KS