If you encounter the following error in Debian Lenny while installing Sun-Java-6:
This package is an installer package, it does not actually contain the
JDK documentation. You will need to go download one of the
archives:
jdk-6u12-docs.zip jdk-6u12-docs-ja.zip
The quickest way to fix this is to go to the Sun/Oracle Website and download the latest version of the jdk documentation. Place the file in the /tmp folder.
http://java.sun.com/javase/downloads/
Debian only checks for an old version of the documentation file (specifically jdk-6u12). You won’t find the jdk-6u12-docs.zip on the Sun/Oracle website. Its currently on jdk-6u23.
To fix this, simply rename the file from jdk-6u23-docs.zip to jdk-6u12-docs.zip.
Source:
http://linuxindetails.wordpress.com/2010/03/04/abort-installation-of-jdk-documentation-under-lenny/