[问题]安装java6的时候总是提示需要自行down一个文件,怎么办

为当前最终发行版之前的所有版本提供支持
回复
crotoc
帖子: 10
注册时间: 2007-10-19 15:21
送出感谢: 0
接收感谢: 0

[问题]安装java6的时候总是提示需要自行down一个文件,怎么办

#1

帖子 crotoc » 2007-10-21 20:06

crotoc@crotoc-own:/media/sda6/music$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
sun-java6-jdk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up sun-java6-doc (6-00-2ubuntu2) ...
This package is an installer package, it does not actually contain the
JDK documentation. You will need to go download one of the
archives:

jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).
Please visit

http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied
to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort] dpkg: error processing sun-java6-doc (--configure):
subprocess post-installation script killed by signal (Interrupt)
Errors were encountered while processing:
sun-java6-doc
E: Sub-process /usr/bin/dpkg returned an error code (1)

我去网站看了,好像没有这两个文件,我找了个bin的,这个怎么安装呢
hugewave
帖子: 44
注册时间: 2008-09-28 10:56
送出感谢: 0
接收感谢: 0

Re: [问题]安装java6的时候总是提示需要自行down一个文件,怎么办

#2

帖子 hugewave » 2009-01-21 21:22

This package is an installer package, it does not actually contain the
JDK documentation. You will need to go download one of the
archives:

jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).
Please visit

http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied
to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort]


雖然不至於影響套件和程式的安裝,但就是很礙眼...。
上網查了一下,終於解決這討人厭的小東西。

首先,先找到「jdk-6-doc.zip」這玩意。不過,在Sun的官網中似乎已經找不到「jdk-6-doc.zip」,只能找到「jdk-6u10-doc.zip」的update版本。
試過之後發現不能用...。囧(不過我沒試過把檔案rename,說不定這樣可以...)
所以再回到網路上撈,撈啊撈,給我撈到了一個mirrior site:

http://www.filewatcher.com/m/jdk-6-doc. ... 8.0.0.html


趕快趁著連結還有效的時候把他下載下來(我是先放到家目錄下)。
接著,就把jdk-6-doc.zip變更擁有者為root之後移到/tmp下:

# sudo chown root:root /home/carson/jdk-6-doc.zip
# sudo mv /home/carson/jdk-6-doc.zip /tmp

如此這般,就不會再見到那些討厭的東西了。



原文:http://carsonfu.blogspot.com/2008/11/jdk-6-doczip.html
回复

回到 “老旧版本支持”