Ubuntu 10.04要怎麼裝JDK?? - Linux

By John
at 2012-03-03T14:22
at 2012-03-03T14:22
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
這個來源是我在網路看的, 但我也改了兩三次不同的來源, 結果都一樣說...
--
: 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
這個來源是我在網路看的, 但我也改了兩三次不同的來源, 結果都一樣說...
--
Tags:
Linux
All Comments

By Anthony
at 2012-03-06T06:01
at 2012-03-06T06:01

By Skylar DavisLinda
at 2012-03-06T09:46
at 2012-03-06T09:46

By Valerie
at 2012-03-10T15:42
at 2012-03-10T15:42

By Gilbert
at 2012-03-12T05:21
at 2012-03-12T05:21

By Hedy
at 2012-03-17T00:00
at 2012-03-17T00:00

By Lauren
at 2012-03-18T06:07
at 2012-03-18T06:07

By Zora
at 2012-03-20T05:39
at 2012-03-20T05:39

By Mary
at 2012-03-23T03:18
at 2012-03-23T03:18

By Elizabeth
at 2012-03-25T15:00
at 2012-03-25T15:00

By Jacob
at 2012-03-25T18:22
at 2012-03-25T18:22

By Faithe
at 2012-03-26T04:59
at 2012-03-26T04:59
Related Posts
用wubi安裝ubuntu與既有的雙系統grub整合問題

By Faithe
at 2012-03-02T22:41
at 2012-03-02T22:41
KDE SC 4.7偶爾會不能重開機或關機或登出

By Lily
at 2012-03-02T00:42
at 2012-03-02T00:42
LMDE 三百多個更新檔案?

By Skylar Davis
at 2012-03-02T00:32
at 2012-03-02T00:32
選擇 centos 或 debian

By Una
at 2012-03-02T00:24
at 2012-03-02T00:24
台北市有賣 安裝好的Linux工作站嗎

By Lily
at 2012-03-02T00:06
at 2012-03-02T00:06