2010-02-16 4 views
9

난 그냥 말끔에서 하디로 업그레이드하고 내 인생 자바를 설치할 수 없습니다 : 나는 /etc/apt/sources.list을 검사 한우분투 하디에 태양 java6-빈 패키지를 설치할 수 없습니다 (8.04)

$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk 
[sudo] password for bobpete: 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
Package sun-java6-bin is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or 
is only available from another source 
However the following packages replace it: 
    sun-java6-jre 
E: Package sun-java6-bin has no installation candidate

apt-get update 여러 번 실행,하지만 운 :

# 
# deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release amd64 (20060531)]/ dapper main restricted 


# deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release amd64 (20060531)]/ dapper main restricted 

deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted 
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted 

## Major bug fix updates produced after the final release of the 
## distribution. 
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted 
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted 

## 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://us.archive.ubuntu.com/ubuntu/ hardy universe 
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy 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://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse 
# deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse 


deb http://security.ubuntu.com/ubuntu hardy-security main restricted 
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted 
# deb http://security.ubuntu.com/ubuntu dapper-security universe 
# deb-src http://security.ubuntu.com/ubuntu dapper-security universe 

업데이트 : 다음 tux21b 귀하의 제안 결과 @ :

$ sudo apt-get install sun-java6-jre sun-java6-jdk 
[sudo] password for bobpete: 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
Package sun-java6-jre is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or 
is only available from another source 
E: Package sun-java6-jre has no installation candidate
+0

아, 죄송합니다. 패키지는 "다중 영역"에 있습니다. 내 대답을 편집했습니다. – tux21b

답변

17

패키지 그것의 내용이 -jre 패키지로하기 때문에 태양 java6-빈가 더 이상 존재하지 않습니다. 그냥 조심스럽게 오류 메시지를 읽어

However the following packages replace it: 
    sun-java6-jre 
E: Package sun-java6-bin has no installation candidate 

는 단순히 -bin 패키지없이 시도 :

sudo apt-get install sun-java6-jre sun-java6-jdk 

편집

: 미안 해요, 난 당신이 그 전에 설정해야합니다, 그래서 the package is in the "multiverse" section 것을 보았다. ..

당신이 당신의 sources.list에 추가해야하는 라인은 다음과 같습니다

그런 다음 apt-get update을 수행하고 패키지를 다시 설치하십시오.

+1

다중 선을 추가하는 것이 효과적입니다. 감사! – Lightbeard

0

는 .. 단지 시도 의존성과 JRE와 빈 물건을 설치해야합니다

sudo apt-get install sun-java6-jdk 

.

+1

같은 결과 :'E : 패키지 sun-java6-jdk에는 설치 후보자가 없습니다' – Lightbeard

9

내 멍청한 놈. 나가 이것을 또한 고투했기 때문에 저를 아주 쉽게 내려 놓게하십시오.

"apt-get"명령으로 sun-java를 설치하려면 "sources.list"라는 파일에 한 줄을 추가해야합니다. 이 행은 /etc/apt/sources.list에 있습니다. 라인을 붙여 해당 파일의 (아래)의 맨 끝에서보다

, 당신은 복사/../etc/apt/sources.list 나노 : 당신은 서면에 의해 편집 뎁 http://us.archive.ubuntu.com/ubuntu/ 강건한 다중 우주

종료하려면 Ctrl + X를 누르고 저장하려면 "y"를 누르십시오. 를 업데이트 apt-get을 그리고이 완료되면, 당신은 명령을 성공적으로 실행할 수 있습니다 :

이제 명령을 입력 는 sudo apt-get을 설치하는 태양 java6-jdk를

+0

매우 굉장합니다! 나는'sudo nano .... '를 맞춰야 만했다. – gideon

관련 문제