Re: [問題] Ubuntu 10.04要怎麼裝JDK??

看板Linux作者 (霸氣之子)時間14年前 (2012/03/03 14:23), 編輯推噓0(0011)
留言11則, 3人參與, 最新討論串3/4 (看更多)
※ 引述《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 這個來源是我在網路看的, 但我也改了兩三次不同的來源, 結果都一樣說... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.117.164.144

03/03 15:09, , 2F
應該有東西才對 0.0a
03/03 15:09, 2F

03/03 15:12, , 3F
/etc/apt/sources.list 有加入來源嗎?
03/03 15:12, 3F

03/03 15:15, , 4F
Ubuntu版本是10.04嗎? 還是其他?
03/03 15:15, 4F
※ 編輯: mcwu 來自: 140.117.164.144 (03/03 16:24)

03/03 16:30, , 5F
UBUNTU官方的套件庫呢?
03/03 16:30, 5F

03/03 16:45, , 6F
來源 lucid => maverick #假如真的沒東西 就...
03/03 16:45, 6F

03/03 16:48, , 7F
從1樓的連結 直接下載檔案安裝了
03/03 16:48, 7F
謝謝回應, 剛剛試過maverick, 還是抓不到 可以請問一下1F的連結中是每個都可以用嗎, 謝謝 ※ 編輯: mcwu 來自: 140.117.164.144 (03/03 18:42)

03/03 18:44, , 8F
要看你的版本 還的依存性 抓完放一起 dpkg -i *.deb
03/03 18:44, 8F

03/03 18:46, , 9F
有 不過 弄好 source.list 比較實在
03/03 18:46, 9F

03/03 20:56, , 10F
自從甲骨文染指java後就被拿掉了吧?要不試試openjdk?
03/03 20:56, 10F

03/03 20:57, , 11F
不然就得去甲骨文那邊找找有無.deb了。
03/03 20:57, 11F
文章代碼(AID): #1FKRZ52s (Linux)
文章代碼(AID): #1FKRZ52s (Linux)