우분투 10.10에서 자바 버전 업데이가 안됩니다..ㅜㅜ

현재 우분투 10.10 환경의 서버에 자바 1.6.0_24버전이 설치 되어 있습니다.
이걸 1.6.0_35이상으로 업데이트 하려고 합니다.
인터넷 검색해서
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
이렇게 3개를 해줌 된다고 하는데 첫번째 명령어부터
그런파일이나 디렉토리가 없다고 나오네요

10.10에 자바 업데이트 하는ㄴ 방법좀 알려 주세요

file not found가 아니라 command not found 아닌가요?

sudo apt-get install python-software-properties

add-apt-repository ppa:webupd8team/java
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 65, in <module>
if not sp.add_source_from_line(line):
File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 639, in add_source_from_line
self.set_modified_sourceslist()
File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 425, in set_modified_sourceslist
self.save_sourceslist()
File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 589, in save_sourceslist
self.sourceslist.save()
File "/usr/lib/python2.6/dist-packages/aptsources/sourceslist.py", line 367, in save
files[source.file] = open(source.file, "w")
IOError: [Errno 2] 그런 파일이나 디렉터리가 없습니다: u’/etc/apt/sources.list.d//webupd8team-java-maverick.list’
Error reading https://launchpad.net/api/1.0/~webupd8t … chive/java: couldn’t connect to host
root@lemon03-u64:/var/log/dulog# add-apt-repository ppa:sun-java-community-team/sun-java6
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 65, in <module>
if not sp.add_source_from_line(line):
File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 639, in add_source_from_line
self.set_modified_sourceslist()
File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 425, in set_modified_sourceslist
self.save_sourceslist()
File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 589, in save_sourceslist
self.sourceslist.save()
File "/usr/lib/python2.6/dist-packages/aptsources/sourceslist.py", line 367, in save
files[source.file] = open(source.file, "w")
IOError: [Errno 2] 그런 파일이나 디렉터리가 없습니다: u’/etc/apt/sources.list.d//sun-java-community-team-sun-java6-maverick.list’
^C^[[A^CError reading https://launchpad.net/api/1.0/~sun-java … /sun-java6: couldn’t connect to host
Exception KeyboardInterrupt in <module ‘threading’ from ‘/usr/lib/python2.6/threading.pyc’> ignored

오류 메시지 입니다.
python-software-properties는 이미 설치 되어 있습니다.

https://launchpad.net/~webupd8team/+arc … /+packages

알려주신 대로 해주니 oracle-java6-installer패키지를 찾을 수 없다고 나옵니다.ㅜㅜ

혹시 자바 업데이트를 수동으로 해주는 방법은 없나요?

E: oracle-java6-installer 패키지를 찾을 수 없습니다
root@lmountain1:/etc/apt/sources.list.d# add-apt-repository ppa:ferramroberto/java
Error reading https://launchpad.net/api/1.0/~ferramro … chive/java: couldn’t connect to host
root@lmountain1:/etc/apt/sources.list.d# add-apt-repository ppa:webupd8team/java
Error reading https://launchpad.net/api/1.0/~webupd8t … chive/java: couldn’t connect to host
root@mountain1:/etc/apt/sources.list.d#

[quote="dnqnsxn123":1kmlh7l2]E: oracle-java6-installer 패키지를 찾을 수 없습니다
root@lmountain1:/etc/apt/sources.list.d# add-apt-repository ppa:ferramroberto/java
Error reading https://launchpad.net/api/1.0/~ferramro … chive/java: couldn’t connect to host
root@lmountain1:/etc/apt/sources.list.d# add-apt-repository ppa:webupd8team/java
Error reading https://launchpad.net/api/1.0/~webupd8t … chive/java: couldn’t connect to host
root@mountain1:/etc/apt/sources.list.d#[/quote:1kmlh7l2]

파일을 수동으로 편집하라고 알려드린건데요…
10.04(lucid) 버전으로 잘 동작합니다.

[code:1kmlh7l2]
yemharc@yemharc-elos:/etc/apt/sources.list.d$ cat webupd8team-java-lucid.list

deb http://ppa.launchpad.net/webupd8team/java/ubuntu lucid main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu lucid main

yemharc@yemharc-elos:/etc/apt/sources.list.d$ apt-cache search oracle-java*

oracle-jdk7-installer - Oracle JDK7 Installer meta package
oracle-java7-installer - Oracle Java™ Development Kit (JDK) 7
oracle-java6-installer - Oracle Java™ Development Kit (JDK) 6
oracle-java8-installer - Oracle Java™ Development Kit (JDK) 8
oracle-java7-set-default - Set Oracle JDK 7 as default Java
oracle-java6-set-default - Set Oracle JDK 6 as default Java
oracle-java8-set-default - Set Oracle JDK 8 as default Java
yemharc@yemharc-elos:/etc/apt/sources.list.d$
[/code:1kmlh7l2]

이 정도 노력하셨는데 안되는거라면 ppa 등록해서 사용하는거보다 수동으로 설치하는게 더 편하겠네요.

http://www.oracle.com/technetwork/java/ ... index.html 에서 원하시는 자바를 다운로드 하신 후에 /usr/local/java 같은 곳에 설치하시고 alternatives 로 기본자바를 변경해야 하시면 될겁니다. 자세한 방법은 검색해서 보시면 더 좋을 듯 싶어요. https://www.google.co.kr/search?client= ... a&safe=off