Installing Java
I want to install java.
Im doing:
sudo apt-get install java-package
its giving me: could find package
and with sudo apt-get install sun-java6-jdk
its giving me package sun-java6-jdk has no installation candidate.
I did the same thing on my laptop (ubuntu) and it worked.
but when I go to my linode(ubuntu) via terminal it does not….
any ideas? can some one please help?
2 Replies
- for the opensource package in the Ubuntu repos:
sudo apt-get install openjdk-6-jdk
- if you want Sun's java you have to add it's repositories to apt:
echo "
deb http://archive.canonical.com/ lucid partner
deb-src http://archive.canonical.com/ lucid partner
" >> /etc/apt/sources.list
apt-get update
apt-get install sun-java6-jdk