分页: 1 / 1

求助。jdk安装

发表于 : 2007-03-03 10:03
luyu
安装好几遍了,按照wiki上安装jdk的方法。执行sudo apt-get install sun-java5-jdk
提示如下:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package sun-java5-jdk


谁可以帮帮我。我用的resource.list是:
* Mirror.lupaworld.com 更新服务器(浙江省杭州市电信,亚洲地区官方更新服务器,推荐全国用户使用。):

deb http://cn.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn dapper main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse


谢谢各位!!

发表于 : 2007-03-03 12:17
andrew_t
怎么这么喜欢一帖多发呢...

发表于 : 2007-03-03 19:49
snappy
你 用cn99的看看

发表于 : 2007-03-04 0:04
luyu
用了cn99还是无法发现包!!

发表于 : 2007-03-04 11:44
lillian
我是直接去官方 java.sun.com 下载 , 直接解压缩~~~

然后 sudo gedit ~/.bashrc

末尾添加 export PATH=/home/myname/Desktop/jdk1.6.0:$PATH


不过也有个很大的疑问, 好象ubuntu 系统内也有 java,这样没有做删除工作直接安装不知道有没有什么问题

发表于 : 2007-03-04 11:47
lillian
对了, 之所以我上官方, 是因为我的宽带那可不是一般的容易断, 就用 windows 去官方下载了.... why..why...55555555~~~~

经常下载东西不能完成...