The following error occurred in the installation SUN-JAVA6-JDK
root@stu-system:/home# sudo apt-get install SUN-JAVA6-JDK Reading package ... Done building Dependency The Reading state information ... Done Package sun-java6-jdk are not available, but are referred to by another Package. This could mean that the package is missing, has been obsoleted, or are only available from another source E:package ' Sun-ja VA6-JDK ' has no installation candidate
The solution is as follows:
1. Add this source:
Deb Http://us.archive.ubuntu.com/ubuntu/hardy Multiverse
Method:
sudo gedit/etc/apt/sources.list
Open the source list, add on the last line
Deb Http://us.archive.ubuntu.com/ubuntu/hardy Multiverse
Save exit.
2, update apt source
sudo apt-get update
3. Installation SUN-JAVA6-JDK
sudo apt-get install SUN-JAVA6-JDK
When it appears:
The following NEW packages is installed:gsfonts-x11 Java-common odbcinst odbcinst1debian1 sun-java6-bin 6-JDK sun-java6-jre UNIXODBC 0 upgraded, 8 newly installed, 0 to-Remove and 460 not upgraded. Need to get 43.6MB of archives. After this operation, 131MB of additional disk space would be used. Do your want to continue [y/n]? Y