Get two shells on your machine and run dpkg --configure -a in one of them. It may try to finish the install of java; wait a minute or two until it hangs, then in the other shell run this:
ps aux | grep postinst
If you see something there about java, my fix should work for you. Kill the postinst process, edit the file (something.postinst) as I describe in #14, and try again. Be prepared to wait a while, though... -POLM
Hardik:
Get two shells on your machine and run dpkg --configure -a in one of them. It may try to finish the install of java; wait a minute or two until it hangs, then in the other shell run this:
ps aux | grep postinst
If you see something there about java, my fix should work for you. Kill the postinst process, edit the file (something. postinst) as I describe in #14, and try again. Be prepared to wait a while, though... -POLM