http://blog.csdn.net/lb015331/archive/2010/11/28/6040926.aspx
首先 执行下面命令:
sudo gedit /etc/apt/sources.list
用下面的源(9.04)替换你的源(10.04+)
deb http://run.hit.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb http://run.hit.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://run.hit.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
deb http://run.hit.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
然后执行下面两条命令:
1.更新源:
sudo apt-get update
2.安装java1.5:
sudo apt-get install sun-java5-jdk