sudo mv /var/cache/debconf/* /var/cache/temp/
sudo apt-get -f install
sudo apt-get install sun-java6-jdk