jdk-6u22-linux-x64
#ubuntu-10.10-server-amd64
#ubuntu-10.10-desktop-amd64
[a]
[a-1]
sudo apt-get install aptitude
[a-2]
sudo gedit /etc/apt/sources.list
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
[a-3]
$ sudo apt-get update //get list
$ sudo apt-get dist-upgrade //kernel update
$ sudo apt-get upgrade //update
$ sudo apt-get clean //clear
$ sudo aptitude safe-upgrade
$ sudo aptitude full-upgrade
$ sudo aptitude dist-upgrade //kernel update
[a-4]
sudo aptitude install sun-java6-bin
sudo aptitude install sun-java6-jdk
sudo aptitude install sun-java6-jre
sudo aptitude install sun-java6-plugin
sudo aptitude install sun-java6-fonts
[f]
sudo apt-get purge java-gcj-compat
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
#sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-bin aptitude install sun-java6-fonts sun-java6-plugin
update-java-alternatives -l
sudo update-java-alternatives -s java-6-sun
javac -version
#ubuntu-10.10-server-amd64
#ubuntu-10.10-desktop-amd64
[a]
[a-1]
sudo apt-get install aptitude
[a-2]
sudo gedit /etc/apt/sources.list
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
[a-3]
$ sudo apt-get update //get list
$ sudo apt-get dist-upgrade //kernel update
$ sudo apt-get upgrade //update
$ sudo apt-get clean //clear
$ sudo aptitude safe-upgrade
$ sudo aptitude full-upgrade
$ sudo aptitude dist-upgrade //kernel update
[a-4]
sudo aptitude install sun-java6-bin
sudo aptitude install sun-java6-jdk
sudo aptitude install sun-java6-jre
sudo aptitude install sun-java6-plugin
sudo aptitude install sun-java6-fonts
[f]
sudo apt-get purge java-gcj-compat
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
#sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-bin aptitude install sun-java6-fonts sun-java6-plugin
update-java-alternatives -l
sudo update-java-alternatives -s java-6-sun
javac -version
沒有留言:
張貼留言