大家怎么安装的java环境 sudo apt-get install sun-j2re1.5 不起作用!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
muyufan
帖子: 95
注册时间: 2006-02-14 1:50
联系:

大家怎么安装的java环境 sudo apt-get install sun-j2re1.5 不起作用!

#1

帖子 muyufan » 2006-06-05 14:23

为什么我输入sudo apt-get install sun-j2re1.5

代码: 全选

现在没有可用的软件包 sun-j2re1.5,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
E: 软件包 sun-j2re1.5 还没有可供安装的候选者

你们怎么装的呢
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

#2

帖子 karron » 2006-06-05 14:44

在新立得里面搜索java5
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
帝国掘墓者
帖子: 50
注册时间: 2006-02-16 16:04

#3

帖子 帝国掘墓者 » 2006-06-05 15:40

现在的包名字改了:sun-java5-jre
油大
帖子: 25
注册时间: 2006-04-29 20:04

#4

帖子 油大 » 2006-06-05 15:46

改的这么快啊,才知道。
muyufan
帖子: 95
注册时间: 2006-02-14 1:50
联系:

#5

帖子 muyufan » 2006-06-05 18:14

哦 晓得了 谢谢
火车
帖子: 6
注册时间: 2006-06-02 14:33

解决问题!

#6

帖子 火车 » 2006-06-06 20:47

apt-get install sun-java5-jdk
ln -sf /usr/lib/jvm/java-1.5.0-sun/bin/java /usr/bin/java
arthur76
帖子: 15
注册时间: 2006-06-05 17:21

#7

帖子 arthur76 » 2006-06-06 21:09

shell>:/opt/azureus$ sudo apt-get install sun-java5-jdk
讀取套件清單中... 完成
了解套件依存關係中... 完成
E: 無法找到 sun-java5-jdk 套件。
shell>:/opt/azureus$

安裝不到呢!!! 請指教~~ 謝謝呢~~
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

#8

帖子 karron » 2006-06-06 21:30

楼上用的源是什么?
建议先sudo apt-get update一下。
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
arthur76
帖子: 15
注册时间: 2006-06-05 17:21

#9

帖子 arthur76 » 2006-06-06 21:47

我的源檔內容, 我都想問, 是否沒有 # 的就可以更新到呢???
謝謝!!!


deb http://hk.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://apt.ubuntu.org.tw ubtw/
deb http://hk.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ dapper-updates main restricted


# Official Mirror on apt.ubtw

deb http://apt.ubuntu.org.tw/ubuntu breezy-updates main restricted universe multiverse
deb-src http://apt.ubuntu.org.tw/ubuntu breezy-updates main restricted universe multiverse
deb http://apt.ubuntu.org.tw/ubuntu breezy main universe multiverse restricted
deb-src http://apt.ubuntu.org.tw/ubuntu breezy main universe multiverse restricted

deb http://apt.ubuntu.org.tw/ubuntu breezy-backports main universe multiverse restricted
deb-src http://apt.ubuntu.org.tw/ubuntu breezy-backports main universe multiverse restricted

deb http://apt.ubuntu.org.tw/ubuntu breezy-security main restricted universe multiverse
deb-src http://apt.ubuntu.org.tw/ubuntu breezy-security main restricted universe multiverse



# from Debian
#deb http://apt.debian.org.tw unstable main non-free contrib
#deb-src http://apt.debian.org.tw unstable main non-free contrib
# 粗體
#deb http://people.debian.org.tw/~koster/debian/sid ./
#deb-src http://people.debian.org.tw/~koster/debian/sid ./


# CPAN
#deb http://debian.pkgs.cpan.org/debian unstable main

# VServer
#deb http://ubuntu.uni-klu.ac.at/ubuntu.uniklu/ breezy uniklu-vserver
#deb-src http://ubuntu.uni-klu.ac.at/ubuntu.uniklu/ breezy uniklu-vserver

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://hk.archive.ubuntu.com/ubuntu/ dapper universe
# deb-src http://hk.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://hk.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://hk.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
# deb http://security.ubuntu.com/ubuntu dapper-security universe
# deb-src http://security.ubuntu.com/ubuntu dapper-security universe
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

#10

帖子 karron » 2006-06-06 21:59

你的源好混乱阿,还有breezy的。建议不要混用源。

我怀疑你的源不全,java不是ubuntu官方维护的。

下面是我的源,你试试?

代码: 全选

deb http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse

我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
头像
Bailuhuaxiang
帖子: 96
注册时间: 2006-03-24 18:27

#11

帖子 Bailuhuaxiang » 2006-06-06 22:18

cn99的源里有的
Taliban
帖子: 31
注册时间: 2006-05-16 9:23

#12

帖子 Taliban » 2006-06-07 12:59

安装完之后,用选择

sudo update-alternatives --config java
mimihu88
帖子: 552
注册时间: 2006-04-03 11:26

#13

帖子 mimihu88 » 2006-06-08 19:44

karron 写了:你的源好混乱阿,还有breezy的。建议不要混用源。

我怀疑你的源不全,java不是ubuntu官方维护的。

下面是我的源,你试试?

代码: 全选

deb http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse

deb-src的源有什么不同,请教!
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

#14

帖子 karron » 2006-06-08 21:32

deb-src是源代码
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
头像
yang_hui1986527
帖子: 911
注册时间: 2006-03-04 23:10
来自: 江西高安
联系:

#15

帖子 yang_hui1986527 » 2006-06-08 21:42

我用cn99的源,然后按照新手指南操作。

新手指南更新了,呵呵!
微信:sn0wdr1am86
QQ: 3217680847
QQ 群:82695646
网站:https://www.itcoder.tech/
网站:http://www.snowdream.tech/
回复