I also get this error when installing through apt-get. Setting up sun-java5-bin (1.5.0-14-2) ... /usr/share/icons/sun-java5.png is not a directory dpkg: error processing sun-java5-bin (--configure): subprocess post-installation script returned error exit status 2
-- Insert witty .sig here