openjdk does not install in updated Ubuntu 9.10

Asked by H&T on 2009-11-12

Following an upgrade from 9.04 to 9.10 I decided to uninstall sun java and install openjdk-6-jre using Synaptic but it failed reporting these errors:

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

When I try to install the dependencies I get into a loop of missing dependencies.

When I try to mark a package (for example openjdk-6-jre-headless) I get this error:

Could not mark all packages for installation or upgrade

openjdk-6-jre-headless:
Depends: openjdk-6-jre-lib but it is not going to be installed
Depends: ca-certificates-java but it is not going to be installed
Depends: tzdata-java but it is not going to be installed
Depends: rhino but it is not going to be installed
Recommends: icedtea-6-jre-cacao but it is not going to be installed

This is what I meant when I said I get into a loop.

rhino wants to install dependencies including sun-java !!

tzdata-java complains:
tzdata-java:
Depends: tzdata (=2009o-1ubuntu2) but 2009o+repack-0ubuntu0.9.04.2 is to be installed.

Problem may be that tzdata-java does not accept latest version of tzdata. Sounds like a bug in the tzdata-java offered by the repositories?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu java-common Edit question
Assignee:
No assignee Edit question
Solved by:
wojox
Solved:
2009-11-12
Last query:
2009-11-12
Last reply:
2009-11-12
zvacet (ivicakolic) said : #1

”When I try to install the dependencies I get into a loop of missing dependencies.”

In terminal type

sudo apt-get install libaccess-bridge-java-jni openjdk-6-jre headless

H&T (response69) said : #2

xvacet: what you suggest does not solve the problem The following packages have unmet dependencies.

  openjdk-6-jre-headless: Depends: tzdata-java but it is not going to be installed
E: Broken packages

I believe there is a dependency bug in tzdata-java not accepting the latest version of tzdata.

See Bug #481194 at https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/481194

Best wojox (wojox) said : #3

WORKAROUND for Jaunty to Karmic upgrade:
sudo apt-get install tzdata=2009o-1ubuntu2
and say Y to "downgrade"

H&T (response69) said : #4

Thanks wojox, that solved my question.