Step1.
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu lucid partner"
這一行其實就是編輯了apt裡的sources.list
sources.list path
/etc/apt/sources.list
利用文字編輯器打開sources.list,拉到最下方,可以看到sources.list裡面被加入了
"deb http://archive.canonical.com/ubuntu lucid partner"
Step2.更新套件
- sudo apt-get update
- sudo apt-get install sun-java6-jre sun-java6-plugin
- sudo apt-get install sun-java6-jdk sun-java6-plugin
- java -version
參考資料
ubunt社群http://wiki.ubuntu.org.cn/index.php?title=Sun-java6&variant=zh-tw
IT開發者Blog
http://www.dotblogs.com.tw/bowwowxx/archive/2010/06/11/15794.aspx
http://hi.baidu.com/xlmeng1988/blog/item/2dce52ae73ef26f3faed50d2.html
http://askcuix.javaeye.com/blog/178819