I am trying to install java on my debian machine, and have found several how to's but
sudo apt-get install java-package
gives me "Couldn't find package java-package". Do I need to add a repository in my /etc/apt/sources.list file? Here are the current repos i have.
tone@homeserver:/etc/apt$ cat /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official amd64 CD Binary-1 20100131-21:33]/ lenny main
deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official amd64 CD Binary-1 20100131-21:33]/ lenny main
deb http://ftp.us.debian.org/debian/ lenny main
deb-src http://ftp.us.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main
deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
tone@homeserver:/etc/apt$
Best Answer
You need to add contrib to your package list. So: