I can confirm it with Ubuntu 9.10:
----------------------------------------
sudo apt-get install sun-java6-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sun-java6-doc
........
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-6u10-docs.zip jdk-6u10-docs-ja.zip
(choose the non-update version if this is the first installation).
Please visit
now and download. The file should be owned by root.root and be copied
to /tmp.
[Press RETURN to try again, 'no' + RETURN to abort]
------------------------------
If you press Enter, the info is repeated on stdout. If you type "no + Enter", installer fails:
-----------------
[Press RETURN to try again, 'no' + RETURN to abort] no
Abort installation of JDK documentation
dpkg: error processing sun-java6-doc (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----------------
I think it shouldn't fail, it should be finished without error even in case of "no+Enter".
I can confirm it with Ubuntu 9.10: ------- ------- ------- ------- -----
-------
sudo apt-get install sun-java6-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sun-java6-doc
........
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- 6u10-docs. zip jdk-6u10- docs-ja. zip
(choose the non-update version if this is the first installation).
Please visit
http:// java.sun. com/javase/ downloads/
now and download. The file should be owned by root.root and be copied
to /tmp.
[Press RETURN to try again, 'no' + RETURN to abort] ------- ------- ------- --
-------
If you press Enter, the info is repeated on stdout. If you type "no + Enter", installer fails:
-----------------
[Press RETURN to try again, 'no' + RETURN to abort] no
Abort installation of JDK documentation
dpkg: error processing sun-java6-doc (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----------------
I think it shouldn't fail, it should be finished without error even in case of "no+Enter".