cannot install sun-java6-jdk

On google's page "Initializing a Build Environment"

I got this to install sun-java6-jdk, cause I have to compile android 4.0, and open-jdk cannot help me
$ sudo add-apt-repository "deb lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
However, when I execute the lines above, I still cannot install sun-java.

The solutions lies lines below, that is:

$ sudo add-apt-repository "deb hardy main multiverse"
$ sudo add-apt-repository "deb hardy-updates main multiverse"
$ sudo apt-get update

and then

you can
$ sudo apt-get install sun-java6-jdk