1. Add the source:
Deb http://us.archive.ubuntu.com/ubuntu/ hard multiverse.
Method:
Sudo gedit/etc/APT/sources. List
Open source list, add
Deb http://us.archive.ubuntu.com/ubuntu/ hard multiverse. Save and exit.
2. sudo apt-Get update
3. sudo apt-Get install sun-java6-jdk
4,
Configure the default Java version
Root @ Ubuntu:/etc/Apt # sudo Update-alternatives -- config Java
There are 2 choices for the alternative Java (providing/usr/bin/Java ).
Selection path priority status
------------------------------------------------------------
* 0/usr/lib/JVM/java-6-openjdk-amd64/JRE/bin/Java 1061 Auto Mode
1/usr/lib/JVM/java-6-openjdk-amd64/JRE/bin/Java 1061 manual mode
2/usr/lib/JVM/Java-6-sun/JRE/bin/Java 63 manual mode
Press enter to keep the current choice [*], or type selection number: 2
Update-Alternatives: Using/usr/lib/JVM/Java-6-sun/JRE/bin/Java to provide/usr/bin/Java (Java) in manual mode.
Root @ Ubuntu:/etc/Apt # Java-version
Java version "1.6.0 _ 06"
Java (TM) se Runtime Environment (build 1.6.0 _ 06-b02)
Java hotspot (TM) 64-bit server VM (build 10.0-b22, mixed mode)
#! /Bin/sh
Sudo add-Apt-repository "Deb http://archive.canonical.com/lucid partner"
Sudo add-Apt-repository "Deb-Src http://archive.canonical.com/ubuntu lucid partner"
Sudo apt-Get update
Sudo apt-get-y install Git-core GnuPG flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev g ++-multilib mingw32 tofrodos
Sudo apt-get-y install sun-java6-jdk
Sudo apt-get-y install Thunderbird
Sudo apt-get-y install Subversion
Sudo apt-get-y install gedit-latex-plugin gedit-plugins
Sudo apt-get-y install wine gtkterm stardict-gnome ghex p7zip p7zip-rar vim-gnome emacs23-gtk exuberant-ctags cscope indent astyle openssh-Server