I am trying to install Java 5 as follows:

sudo apt-get install sun-java5-jre

but I get the following error message when processing sun-java5-bin:

Setting up sun-java5-bin (1.5.0-06-1) ...
Could not create the Java virtual machine.

I know from other postings on the web that this bug has been fixed in sun-java5/1.5.0-16-1, but I don't know how to make apt-get install this version instead of 1.5.0-06-1.

Can anyone suggest how to solve this problem?