Ubuntu 10.04要怎麼裝JDK?? - Linux

Table of Contents

※ 引述《iwhiori (玉米)》之銘言:
: http://source.android.com/source/initializing.html
: Installing the JDK
: The Sun JDK is no longer in Ubuntu's main package repository. In order to
: download it, you need to add the appropriate repository and indicate to the
: system which JDK should be used.
: Java 6: for Gingerbread and newer
: $ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
: $ sudo apt-get update
: $ sudo apt-get install sun-java6-jdk

不好意思, 請問一下, 小弟最近需要裝jdk, 因此參考這位大大的方式

但是第三個指令 $ sudo apt-get install sun-java6-jdk

我執行這個指令以後出現
'無法取得套件 sun-java6-jdk,但它卻被其它的套件引用了。
這意味著這個套件可能已經消失了、被廢棄了,或是只能由其他的來源取得'

想請問有沒有解決辦法, 或者是其他安裝jdk的方法

我有google了一下其他安裝jdk的步驟, 但都是卡在跟本文相同的地方

小弟是linux新手, 希望大家見諒, 謝謝

=====================================================================

版本是10.10

sources list有增加deb http://archive.canonical.com/ lucid partner

這個來源是我在網路看的, 但我也改了兩三次不同的來源, 結果都一樣說...



--

All Comments

Skylar DavisLinda avatarSkylar DavisLinda2012-03-06
應該有東西才對 0.0a
Valerie avatarValerie2012-03-10
/etc/apt/sources.list 有加入來源嗎?
Gilbert avatarGilbert2012-03-12
Ubuntu版本是10.04嗎? 還是其他?
Hedy avatarHedy2012-03-17
UBUNTU官方的套件庫呢?
Lauren avatarLauren2012-03-18
來源 lucid => maverick #假如真的沒東西 就...
Zora avatarZora2012-03-20
從1樓的連結 直接下載檔案安裝了
Mary avatarMary2012-03-23
要看你的版本 還的依存性 抓完放一起 dpkg -i *.deb
Elizabeth avatarElizabeth2012-03-25
有 不過 弄好 source.list 比較實在
Jacob avatarJacob2012-03-25
自從甲骨文染指java後就被拿掉了吧?要不試試openjdk?
Faithe avatarFaithe2012-03-26
不然就得去甲骨文那邊找找有無.deb了。