$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
...
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking, 0B of additional disk space will be used.
Setting up sun-java5-bin (1.5.0-11-1ubuntu3) ...
Could not create the Java virtual machine.
dpkg: error processing sun-java5-bin (--configure):
subprocess post-installation script returned error exit status 1
Setting up sun-java6-bin (6-00-2ubuntu3) ...
Could not create the Java virtual machine.
dpkg: error processing sun-java6-bin (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
sun-java5-bin
sun-java6-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
No license question asked.
$ sudo apt-get -f install
does not ask one either:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
...
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking, 0B of additional disk space will be used.
Setting up sun-java5-bin (1.5.0-11-1ubuntu3) ...
Could not create the Java virtual machine.
dpkg: error processing sun-java5-bin (--configure):
subprocess post-installation script returned error exit status 1
Setting up sun-java6-bin (6-00-2ubuntu3) ...
Could not create the Java virtual machine.
dpkg: error processing sun-java6-bin (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
sun-java5-bin
sun-java6-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
That's it.