install sun-java6-jdk in ubuntu12.04

http://blog.sina.com.cn/s/blog_6296abc601018p86.html

在文件/etc/apt/sources.list
的最后添加下面的源:
deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse

更新apt源
sudo apt-get update

安装sun-java6-jdk
sudo apt-get install sun-java6-jdk

===================
for ubuntu 13.04
$ sudo add-apt-repository "deb http://ppa.launchpad.net/ferramroberto/java/ubuntu natty main"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
http://blog.csdn.net/cydsxm/article/details/12650025
posted @ 2014-07-27 18:13  kobe8  Views(218)  Comments(0Edit  收藏  举报