root@LAPPY:/# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 0B of archives. After unpacking 0B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up j2sdk1.4-doc (1.4.2.02-1ubuntu3) ... warning: file `/usr/share/doc/j2sdk1.4-doc/1.4.2/index.html' does not exist at /usr/sbin/install-docs line 821, line 11. warning: file mask `/usr/share/doc/j2sdk1.4-doc/1.4.2/*/*.html' does not match any files at /usr/sbin/install-docs line 826, line 11. This package is an installer package, it does not actually contain the J2SDK documentation. You will need to go download one of the archives: j2sdk-1_4_2-doc.zip j2sdk-1_4_0-doc-ja.zip j2sdk-1_4_2-doc-ja.zip (choose the non-update version if this is the first installation). Please visit http://java.sun.com/j2se/1.4.2/download.html 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] no Abort installation of J2SDK documentation dpkg: error processing j2sdk1.4-doc (--configure): subprocess post-installation script returned error exit status 1 Setting up sun-java6-doc (6-00-0ubuntu1~edgy1) ... 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-6-doc.zip jdk-6-doc-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] no Abort installation of JDK documentation dpkg: error processing sun-java6-doc (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: j2sdk1.4-doc sun-java6-doc E: Sub-process /usr/bin/dpkg returned an error code (1) root@LAPPY:/#