While installing java on my ubuntu (edgyeftish) install I kept getting this error: “j2re1.4 failed to preconfigure, with exit status 10”. Eventually I found the solution had to do with the license.
The following fix worked: “echo set j2re1.4/license true | debconf-communicate” after which I ran “apt-get install -f” to fix it.