apt-get openjdk-7-jdk can not find dependencies

Asked by Robert Mazur on 2012-03-15

openjdk-7-jdk does not install due to missing dependency called tzdata-java_2011n-0ubuntu0.11.10_all.deb

rmazur@ubuntu:~$ uname -a
Linux ubuntu 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:50:54 UTC 2012 i686 i686 i386 GNU/Linux

rmazur@ubuntu:~$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
This is a vanilla Ubuntu install with no other JDK or JRE installed.

Expected To Happen:
I expected that openjdk-7 would install and fetch dependencies accordingly. I initially encountered the issue when trying to install Eclipse via the Ubuntu Software Center, which of course needs a jre.

What Really Happened:
Upon trying to install openjdk-7-jdk (or openjdk-7-jre or openjdk-6-jdk), apt-get reports back that it is missing a dependency called tzdata-java_2011n-0ubuntu0.11.10_all.deb. Full install attempt seen below:

rmazur@ubuntu:~$ sudo apt-get install openjdk-7-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  ca-certificates-java default-jre default-jre-headless icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-7-jre-jamvm
  icedtea-netx java-common libaccess-bridge-java libaccess-bridge-java-jni libice-dev libnss3-1d libpthread-stubs0
  libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxt-dev openjdk-6-jre
  openjdk-6-jre-headless openjdk-6-jre-lib openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib ttf-dejavu-extra
  tzdata-java x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
  equivs icedtea-plugin sun-java6-fonts ttf-sazanami-gothic ttf-kochi-gothic ttf-sazanami-mincho ttf-kochi-mincho
  ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts openjdk-7-demo openjdk-7-source visualvm
  icedtea6-plugin
The following NEW packages will be installed:
  ca-certificates-java default-jre default-jre-headless icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-7-jre-jamvm
  icedtea-netx java-common libaccess-bridge-java libaccess-bridge-java-jni libice-dev libnss3-1d libpthread-stubs0
  libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxt-dev openjdk-6-jre
  openjdk-6-jre-headless openjdk-6-jre-lib openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib
  ttf-dejavu-extra tzdata-java x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
0 upgraded, 34 newly installed, 0 to remove and 0 not upgraded.
Need to get 140 kB/90.9 MB of archives.
After this operation, 262 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main tzdata-java i386 2011n-0ubuntu0.11.10
  404 Not Found [IP: 91.189.92.171 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata-java_2011n-0ubuntu0.11.10_all.deb 404 Not Found [IP: 91.189.92.171 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
rmazur@ubuntu:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openjdk-7 Edit question
Assignee:
No assignee Edit question
Solved by:
Micah Gersten
Solved:
2012-03-15
Last query:
2012-03-15
Last reply:
2012-03-15
Micah Gersten (micahg) said : #1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug. There is also a vibrant support community available at http://askubuntu.com and you might consider asking your question there.

Best Micah Gersten (micahg) said : #2

tzdata-java was updated recently, please update your apt-cache before attempting to install this with the following command:
sudo apt-get update

Robert Mazur (mazurr) said : #3

Thanks Micah Gersten, that solved my question.

Robert Mazur (mazurr) said : #4

Thanks Micah. I was reluctant to report this as a bug. But between a Ubuntu Forum user (who seemed to have some experience) recommending I consider reporting a bug, and searching in the bug database and seeing a history of folks reporting package dependency issues there, I elected to submit the bug.

But I see now that your advice is more appropriate, and I apprciate it.

Thanks for your work and efforts,
Rob