I install the sun-java6-jdk package on Ubuntu
sudo apt-get install sun-java6-jdk
and I get an error.
The sun-java6-jdk package is not available, but is listed in another package's dependency list. This may mean that the package is missing, outdated, or available from sources not mentioned in sources.list
E: No installation candidate found for package sun-java6-jdk
What repositories need to be connected?
You need to add partner repositories.
#!/bin/bash echo "deb http://archive.canonical.com/ubuntu maverick partner" >> /etc/apt/sources.list echo "deb-src http://archive.canonical.com/ubuntu maverick partner" >> /etc/apt/sources.list apt-get -qq update apt-get -y -qq install sun-java6-jdk