deb http://ftp.debian.org/debian/ unstable main non-free
2. add new line to /etc/apt/apt.conf.d/70debconf
APT::Cache-Limit "100000000";
3. created /etc/apt/preferences
Package: *
Pin: release a=stable
Pin-Priority: 700
Package: *
Pin: release a=unstable
Pin-Priority: 600
4. run apt-get update
5. Install the eight sun-java6-* packages
sun-java6-bin
sun-java6-demo
sun-java6-doc
sun-java6-fonts
sun-java6-javadb
sun-java6-jdk
sun-java6-jre
sun-java6-source
with
[root@gao]# feta install
ps: In case others have a problem getting Eclipse to work with java6 in Debian or Ubuntu. From: http://ubuntuforums.org/showthread.php?t=201378 you may need to edit Eclipse's java_home file gedit /etc/eclipse/java_home and add /usr/lib/jvm/java-6-sun to the top of the file.