Update: After adding Dapper multiverse to etc/apt/sources.list, doing an apt-get update, and correcting the typo in the command above, I now get:
rubys@rubypad:~$ sudo apt-get -t dapper install sun-java5-jdk
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
sun-java5-bin sun-java5-demo sun-java5-jre unixodbc
Suggested packages:
sun-java5-doc sun-java5-source sun-java5-plugin ia32-sun-java5-plugin
sun-java5-fonts libmyodbc odbc-postgresql libct1
Recommended packages:
gsfonts-x11
The following NEW packages will be installed:
sun-java5-bin sun-java5-demo sun-java5-jdk sun-java5-jre unixodbc
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 44.6MB of archives.
After unpacking 116MB of additional disk space will be used.
Did you update first? If its new to the repo, your local list might be out of date. I just did ‘sudo apt-get update && sudo apt-get install sun-java5-jdk’ on my dapper amd64 box and it worked fine. It might also be in the multiverse, which you would have to add to your sourced.
I’m disappointed. I’m really disappointed. My fear three days ago that Sun’s new Distro License for Java is not good enough for Red Hat is confirmed in press reports: Brian Stevens, Red Hat CTO (quoted by Gavin Clarke, The Register): According to...
It worked for me. My problem was that my install of ubuntu didn’t include dapper in the sources.list. After I did that, it was all good and everything installed just fine.
As illustrated below, upgrading the JDK still does not work.
adsouza@adsouza-lx1:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
adsouza@adsouza-lx1:~$ apt-cache show sun-java5-jdk
Package: sun-java5-jdk
Priority: optional
Section: multiverse/devel
Installed-Size: 11548
Maintainer: Matthias Klose <doko@ubuntu.com>
Architecture: i386
Source: sun-java5
Version: 1.5.0-06-1
Provides: java-compiler, java2-compiler
Depends: sun-java5-jre (= 1.5.0-06-1), sun-java5-demo (= 1.5.0-06-1), libc6, libx11-6
Pre-Depends: debconf (>= 0.5) | debconf-2.0
Suggests: sun-java5-doc, sun-java5-source
Filename: pool/multiverse/s/sun-java5/sun-java5-jdk_1.5.0-06-1_i386.deb
Size: 4985850
MD5sum: df90908c77345a172242ba5090343817
Description: Sun Java(TM) Development Kit (JDK) 5.0
The JDK(TM) is a development environment for building applications,
applets, and components using the Java programming language.
.
The JDK includes tools useful for developing and testing programs
written in the Java programming language and running on the Java
Platform.
.
NOTE: You must accept Sun’s EULA prior to successfully installing
this package
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu
adsouza@adsouza-lx1:~$ java -fullversion
java full version “1.5.0_05-b05”
Note that you have to be careful about how you add “multiverse” to your sources.list. You can’t just uncomment the line in sources.list that contains the word “multiverse”, because that line (in the default sources.list) is for backports only. Instead, you need to add the word “multiverse” to the main line. (This tripped up me up, being an Ubuntu newbie.) So, the following line is what worked for me:
deb [link] dapper main restricted universe multiverse
I’m also trying to get the sun-java5-jdk package to install. I have tried the above suggestions to no avail. Here are the commands that I’m running:
npowell@hubris:~$ sudo apt-get update
Get:1 [link] dapper Release.gpg [189B]
Get:2 [link] dapper-updates Release.gpg [189B]
Get:3 [link] dapper-backports Release.gpg [189B]
Hit [link] dapper Release
Hit [link] dapper-updates Release
Hit [link] dapper-backports Release
Hit [link] dapper/main Packages
Hit [link] dapper/restricted Packages
Hit [link] dapper/main Sources
Hit [link] dapper/restricted Sources
Hit [link] dapper/universe Packages
Hit [link] dapper/universe Sources
Hit [link] dapper-updates/main Packages
Get:4 [link] dapper-updates/restricted Packages [14B]
Hit [link] dapper-updates/main Sources
Get:5 [link] dapper-updates/restricted Sources [14B]
Hit [link] dapper-backports/main Packages
Get:6 [link] dapper-backports/restricted Packages [14B]
Hit [link] dapper-backports/universe Packages
Hit [link] dapper-backports/multiverse Packages
Hit [link] dapper-backports/main Sources
Get:7 [link] dapper-backports/restricted Sources [14B]
Hit [link] dapper-backports/universe Sources
Hit [link] dapper-backports/multiverse Sources
Get:8 [link] dapper-security Release.gpg [189B]
Hit [link] dapper-security Release
Hit [link] dapper-security/main Packages
Hit [link] dapper-security/restricted Packages
Hit [link] dapper-security/main Sources
Hit [link] dapper-security/restricted Sources
Hit [link] dapper-security/universe Packages
Hit [link] dapper-security/universe Sources
Fetched 60B in 9s (7B/s)
Reading package lists... Done
npowell@hubris:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
npowell@hubris:~$ sudo apt-get -t dapper install sun-java5-jdk
Reading package lists... Done
Building dependency tree... Done
E: Couldn’t find package sun-java5-jdk
npowell@hubris:~$
Here’s the /etc/apt/sources.list I’m using:
#
# deb cdrom:[Ubuntu-Server 6.06.1 Dapper Drake - Release amd64 (20060807.1)]/ dapper main restricted
deb cdrom:[Ubuntu-Server 6.06.1 Dapper Drake - Release amd64 (20060807.1)]/ dapper main restricted
deb [link] dapper main restricted
deb-src [link] dapper main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb [link] dapper-updates main restricted
deb-src [link] dapper-updates main restricted
## Uncomment the following two lines to add software from the ‘universe’
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb [link] dapper universe
deb-src [link] dapper universe
## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb [link] dapper-backports main restricted universe multiverse
deb-src [link] dapper-backports main restricted universe multiverse
deb [link] dapper-security main restricted
deb-src [link] dapper-security main restricted
deb [link] dapper-security universe
deb-src [link] dapper-security universe