关于ubuntu下java6的doc安装问题

ubuntu版本:ubuntu8.04.1 desktop

利用sudo apt-get install sun-java6-doc命令是无法安装成功的。总是提示说

。。。。。。。。。。。
正在设置 sun-java6-doc (6-03-0ubuntu2) ...
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]



处理办法如下:
1、手动到

http://java.sun.com/javase/downloads/网站下载 jdk-6-doc.zip文件。此处有英文和日文两个doc文件,根据个人需要选择下载。

2、将下载好的jdk-6-doc.zip文件拷贝到/tmp目录下  命令: sudo cp jdk-6-doc.zip /tmp

3、安装java6的doc,命令: sudo apt-get install sun-java6-doc。

4、安装完成。


PS:在安装过程中,可能会询问管理员密码,输入即可。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值