sudo apt-get install sun-java6-jdk
错误:E: Package 'sun-java6-jdk' has no installation candidate
解决方法:
sudo gedit /ect/apt/sources.list
添加一行:deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
sudo apt-get update
sudo apt-get install sun-java6-jdk