ubuntu 10.04 LTS 安裝 java 失敗 >"<

126 views
Skip to first unread message

蘇介吾

unread,
Jan 28, 2013, 2:47:58 AM1/28/13
to crawlzi...@googlegroups.com
 sudo apt-add-repository ppa:flexiondotorg/java
$ sudo apt-get update
$ sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin

執行第一步時就出現錯誤:

Error: can't find signing_key_fingerprint at https://launchpad.net/api/1.0/~flexiondotorg/+archive/java

請問該如何解決?

我是有搜索到其他的 java 版本, 不知道可不可以使用?

root@hadoop:/# apt-cache search java |grep sun

sunflow - rendering system for photo-realistic image synthesis
sun-javadb-client - Java DB client
sun-javadb-common - Java DB common files
sun-javadb-core - Java DB core
sun-javadb-demo - Java DB demo
sun-javadb-doc - Java DB documentation
sun-javadb-javadoc - Java DB javadoc


root@hadoop:/# apt-cache search java |grep jdk

default-jdk - Standard Java or Java compatible Development Kit
default-jdk-builddep - Standard Java or Java compatible build dependencies
default-jdk-doc - Standard Java or Java compatible Development Kit (documentation)
gcj-jdk - gcj and classpath development tools for Java(TM)
gcj-4.4-jdk - gcj and classpath development tools for Java(TM)
openjdk-6-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-6-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-6-doc - OpenJDK Development Kit (JDK) documentation
openjdk-6-jdk - OpenJDK Development Kit (JDK)
openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-6-jre-lib - OpenJDK Java runtime (architecture independent libraries)
openjdk-6-source - OpenJDK Development Kit (JDK) source files


Jazz Yao-Tsung Wang

unread,
Jan 29, 2013, 10:09:48 AM1/29/13
to crawlzi...@googlegroups.com
這個問題涉及 Ubuntu 對 Oracle JDK/JRE 的支援已經終止。

https://help.ubuntu.com/community/Java

習慣上我的解法是加 Debian 的 non-free
底下是我自己常用的 install script 一部份

------------------- 8< -------------------
if [ ! -x /usr/bin/add-apt-repository ]; then
sudo apt-get -f -y install python-software-properties
fi
if [ ! -x /usr/bin/java ]; then
echo "---- [1] Installing Sun Java JDK 6 ........ ----"
sudo add-apt-repository -y 'deb http://free.nchc.org.tw/debian
stable non-free'
sudo apt-get update
cat << EOF | sudo /usr/bin/debconf-set-selections
sun-java6-bin shared/accepted-sun-dlj-v1-1 select true
sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true
sun-java6-jre shared/accepted-sun-dlj-v1-1 select true
EOF
sudo apt-get -y --force-yes install sun-java6-jdk sun-java6-plugin
sudo add-apt-repository -r 'deb http://free.nchc.org.tw/debian
stable non-free'
fi
------------------- 8< -------------------

- Jazz
> --
> You received this message because you are subscribed to the Google Groups
> "crawlzilla-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to crawlzilla-us...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Joseph Lim

unread,
Feb 13, 2013, 3:18:44 PM2/13/13
to crawlzi...@googlegroups.com
尝试
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
Reply all
Reply to author
Forward
0 new messages