sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: sun-java6-bin* sun-java6-jre* 0 upgraded, 0 newly installed, 2 to remove and 3 not upgraded. 2 not fully installed or removed. Need to get 0B of archives. After unpacking 93.6MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 60733 files and directories currently installed.) Removing sun-java6-bin ... Purging configuration files for sun-java6-bin ... Removing sun-java6-jre ... Purging configuration files for sun-java6-jre ... juuso@dhcppc1:~$ sudo apt-get install sun-java6-jre Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: sun-java6-bin Suggested packages: binfmt-support sun-java6-plugin ia32-sun-java6-plugin sun-java6-fonts ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming Recommended packages: libnss-mdns gsfonts-x11 The following NEW packages will be installed: sun-java6-bin sun-java6-jre 0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded. Need to get 0B/32.7MB of archives. After unpacking 93.6MB of additional disk space will be used. Do you want to continue [Y/n]? y Preconfiguring packages ... Selecting previously deselected package sun-java6-bin. (Reading database ... 59918 files and directories currently installed.) Unpacking sun-java6-bin (from .../sun-java6-bin_6-03-0ubuntu2_i386.deb) ... Selecting previously deselected package sun-java6-jre. Unpacking sun-java6-jre (from .../sun-java6-jre_6-03-0ubuntu2_all.deb) ... sun-dlj-v1-1 license has already been accepted Setting up sun-java6-bin (6-03-0ubuntu2) ... /var/lib/dpkg/info/sun-java6-bin.postinst: 84: /usr/lib/jvm/java-6-sun-1.6.0.03/bin/java: not found dpkg: error processing sun-java6-bin (--configure): subprocess post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of sun-java6-jre: sun-java6-jre depends on sun-java6-bin (= 6-03-0ubuntu2) | ia32-sun-java6-bin (= 6-03-0ubuntu2); however: Package sun-java6-bin is not configured yet. Package ia32-sun-java6-bin is not installed. dpkg: error processing sun-java6-jre (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: sun-java6-bin sun-java6-jre E: Sub-process /usr/bin/dpkg returned an error code (1)