Я только что купил свежий VPS с Ubuntu 10.10.
Я следую этому руководству http://l2jserver.com/wiki/Setup_Server_-_Ubuntu для создания сервера Lineage2, но это не имеет значения.
Я пытаюсь использовать команду java -version
и я получил ошибку:
-bash: java: command not found
Если я пропущу этот шаг и использую эту команду (для установки Java): sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
я получаю эту ошибку:
Unable to locate package sun-java6-bin
Unable to locate package sun-java6-jre
Unable to locate package sun-java6-jdk
Что с этим не так? Спасибо за ответы.
ОБНОВЛЕНИЕ № 1
Когда я набираю : java -version
Я получил ошибку: -bash: java: command not found
Когда я набираю: sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner
Я получил ошибку: sudo: add-apt-repository: command not found
Когда я печатаю : sudo apt-get update
Я получил ошибку:
Ign http://archive.ubuntu.com maverick Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://archive.ubuntu.com maverick-updates Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://archive.ubuntu.com maverick-security Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-e n
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Ign http://archive.ubuntu.com maverick Release
Ign http://archive.ubuntu.com maverick-updates Release
Ign http://archive.ubuntu.com maverick-security Release
Ign http://archive.ubuntu.com maverick/main amd64 Packages
Ign http://archive.ubuntu.com maverick/restricted amd64 Packages
Ign http://archive.ubuntu.com maverick/universe amd64 Packages
Ign http://archive.ubuntu.com maverick-updates/main amd64 Packages
Ign http://archive.ubuntu.com maverick-updates/restricted amd64 Packages
Ign http://archive.ubuntu.com maverick-updates/universe amd64 Packages
Ign http://archive.ubuntu.com maverick-security/main amd64 Packages
Ign http://archive.ubuntu.com maverick-security/restricted amd64 Packages
Ign http://archive.ubuntu.com maverick-security/universe amd64 Packages
Ign http://archive.ubuntu.com maverick/main amd64 Packages
Ign http://archive.ubuntu.com maverick/restricted amd64 Packages
Ign http://archive.ubuntu.com maverick/universe amd64 Packages
Ign http://archive.ubuntu.com maverick-updates/main amd64 Packages
Ign http://archive.ubuntu.com maverick-updates/restricted amd64 Packages
Ign http://archive.ubuntu.com maverick-updates/universe amd64 Packages
Ign http://archive.ubuntu.com maverick-security/main amd64 Packages
Ign http://archive.ubuntu.com maverick-security/restricted amd64 Packages
Ign http://archive.ubuntu.com maverick-security/universe amd64 Packages
Err http://archive.ubuntu.com maverick/main amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com maverick/restricted amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com maverick/universe amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com maverick-updates/main amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com maverick-updates/restricted amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com maverick-updates/universe amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com maverick-security/main amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com maverick-security/restricted amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com maverick-security/universe amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick/main/binary-a md64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick/restricted/bi nary-amd64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick/universe/bina ry-amd64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick-updates/main/ binary-amd64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick-updates/restr icted/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick-updates/unive rse/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick-security/main /binary-amd64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick-security/rest ricted/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick-security/univ erse/binary-amd64/Packages.gz 404 Not Found [IP: 91.189.92.200 80]
E: Some index files failed to download, they have been ignored, or old ones used instead.
Мой /etc/apt/sources.list выглядит так:
Кто-нибудь может мне помочь?