broken dependency for tzdata-java package after updating tzdata

Bug #241268 reported by schenkos
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tzdata (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: tzdata-java

OpenJDK can't be installed on Hardy because tzdata-java has to be installed but it fails.
tzdata-java has a dependency on tzdata 2008b-1ubuntu1 but tzdata has been updated to 2008c-1ubuntu0.8.04 for security (or bug fixing) reason

Aptitude reports:
The following packages have unmet dependencies:
  tzdata-java: Depends: tzdata (= 2008b-1ubuntu1) but 2008c-1ubuntu0.8.04 is installed.
Resolving dependencies...
The following actions will resolve these dependencies:

Downgrade the following packages:
tzdata [2008c-1ubuntu0.8.04 (hardy-updates, now) -> 2008b-1ubuntu1 (hardy)]

The downgrade doesn't wok properly because the update manager will complain after downgrading

Revision history for this message
wvengen (wvengen) wrote :

I'm seeing this problem with another user (not reported), and indeed hardy-proposed has tzdata-java version 2008b-1ubuntu1 which only wants the same version of tzdata, while the tzdata version is 2008c-1ubuntu0.8.04.

Changed in tzdata:
status: New → Confirmed
Revision history for this message
Dave Minter (dave-paperstack) wrote :

I'm seeing the same problem:

$sudo apt-get install tzdata-java
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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
  tzdata-java: Depends: tzdata (= 2008b-1ubuntu1) but 2008c-1ubuntu0.8.04 is to be installed
E: Broken packages

Can anyone suggest a workaround to force this install? Being unable to install the "real" JDK is a fairly big deal for me!

Revision history for this message
wvengen (wvengen) wrote :

A workaround is to install tzdata-java from the updates repository, which can be done manually by installing from http://packages.ubuntu.com/hardy-updates/all/tzdata-java/download .

Revision history for this message
Dave Minter (dave-paperstack) wrote :

Thank you, that did the trick:

$sudo dpkg -i tzdata-java_2008c-1ubuntu0.8.04_all.deb
Selecting previously deselected package tzdata-java.
(Reading database ... 101917 files and directories currently installed.)
Unpacking tzdata-java (from tzdata-java_2008c-1ubuntu0.8.04_all.deb) ...
Setting up tzdata-java (2008c-1ubuntu0.8.04) ...
$

Revision history for this message
Martin Pitt (pitti) wrote :

Apparently you manually modified your /etc/apt/sources.list and forgot to add a deb line for hardy-updates universe.

Changed in tzdata:
status: Confirmed → Invalid
Revision history for this message
.Ru (vodarus) wrote :

I have the same bug.

sources.list file:

deb http://ru.archive.ubuntu.com/ubuntu/ hardy main restricted
deb http://ru.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb http://ru.archive.ubuntu.com/ubuntu/ hardy universe
deb http://ru.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe

Other info in OpenJDK tracker: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/269806

Revision history for this message
schenkos (schenk75) wrote :

Hi,

Thanks for your reply it works now:-)

I've added the following line in my /etc/apt/sources.list:

deb http://ch.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://ch.archive.ubuntu.com/ubuntu/ hardy-updates universe

Changed in tzdata:
status: Invalid → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 241268] Re: borken dependency for tzdata-java package after updating tzdata

 status invalid

Martin Pitt (pitti)
Changed in tzdata:
status: Fix Committed → Invalid
tz (thomas-mich)
Changed in tzdata (Ubuntu):
status: Invalid → New
Revision history for this message
tz (thomas-mich) wrote : Re: borken dependency for tzdata-java package after updating tzdata

I am getting the same thing now with my karmic.

The update is deadlocked - I have no idea how to sync it.

I tried downloading the recommended one here but it didn't work.

The following packages have unmet dependencies:
  tzdata-java: Depends: tzdata (= 2009o-1ubuntu2) but 2009o+repack-0ubuntu0.9.04.2 is to be installed
E: Broken packages

I think I have it working by going thorough a difficult thing where gdebi wouldn't work but dpkg -i managed to downgrade the package so I could install the rest.

Is there any reason why tzdata was updated without tzdata-java being updated (or at least changing the dependency to be > or something else so every trivial time zone change breaks the install?).

Revision history for this message
Giovanni (aka Vanni) Totaro (vanni-totaro) wrote :

Sooooo bad versioning...
tzdata version on jaunty (2009o+repack-0ubuntu0.9.04.2) seen as newer than tzdata version on karmic (2009o-1ubuntu2).

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

If it does not work, check current tzdata version with:
apt-cache show tzdata | grep Version
and modify "tzdata=..." in workaround command.

summary: - borken dependency for tzdata-java package after updating tzdata
+ broken dependency for tzdata-java package after updating tzdata
Revision history for this message
H&T (response69) wrote :

Update Manager has now offered updates to tzdata and tzdata-java (both version 2009r-0ubuntu9.10) which should make the above workaround unnecessary. Make sure you have updated tzdata and tzdata-java before you try to install openjdk.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.