I put the package sun-java6-jdk on Ubuntu

sudo apt-get install sun-java6-jdk 

and get an error.

The sun-java6-jdk package is not available, but is listed in the dependency list of another package. This may mean that the package is missing, outdated, or available from sources not mentioned in sources.list
E: No installation candidate found for sun-java6-jdk

What repositories need to connect?

    1 answer 1

    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 
    • echo "deb archive.canonical.com/ubuntu maverick partner" >> /etc/apt/sources.list bash: /etc/apt/sources.list: Access is denied - user222573