Install sun-java6-jre process records under Ubuntu12.10. Manually modify the download source, command: root@www.linuxidc.com:/# cd/etc/aptroot@www.linuxidc.com:/etc/apt # cpsources.listsources.list.bakroot@www.linuxidc.com:/etc/apt # vimsources. l
Install sun-java6-jre process records under Ubuntu 12.10.
Manually modify the download source. The command is as follows:
Root @ www.linuxidc.com:/# cd/etc/apt
Root @ www.linuxidc.com:/etc/apt # cp sources. list sources. list. bak
Root @ www.linuxidc.com:/etc/apt # vim sources. list
Last line added: deb http://archive.canonical.com/ubuntu quantal partner
Root @ www.linuxidc.com:/etc/apt # apt-get install sun-java6-jdk
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
The package sun-java6-jdk is a virtual package provided by the following package:
Oracle-java8-installer 8b78-0 ~ Webupd8 ~ 1
Oracle-java6-installer 6u41-0 ~ Webupd8 ~ 1
Oracle-java7-installer 7u15-0 ~ Webupd8 ~ 1
Select one for installation.
E: the package sun-java6-jdk does not have candidates for Installation
Root @ www.linuxidc.com:/etc/apt #
Root @ www.linuxidc.com:/etc/apt # apt-get install oracle-java6-installer
..........
Update-alternatives: using/usr/lib/jvm/java-6-oracle/bin/xjc to provide/usr/bin/xjc (xjc) in automatic mode
Oracle JDK 6 installed
Update-alternatives: using/usr/lib/jvm/java-6-oracle/jre/lib/i386/libnpjp2.so to provide/usr/lib/mozilla/plugins/libnpjp2.so (libnpjp2.so) in automatic mode
Oracle JRE 6 browser plugin installed
Setting gsfonts-x11 (0.22 )...
Root @ www.linuxidc.com:/etc/apt # java
Usage: java [-options] class [args...]
(To execute a class)
Or java [-options]-jar jarfile [args...]
(To execute a jar file)
.....
Root @ www.linuxidc.com:/etc/apt #
Root @ www.linuxidc.com:/etc/apt # java-version
Java version "1.6.0 _ 41"
Java (TM) SE Runtime Environment (build 1.6.0 _ 41-b02)
Java HotSpot (TM) Server VM (build between 14-b01, mixed mode)
Root @ www.linuxidc.com:/etc/apt #
(Sun-java6-jre, sun-java6-plugin sun-java6-fonts are also provided by the software package oracle-java6-installer virtual software packages so the installation of oracle-java6-installer can be)
Reference: x210ii user manual and terminal printing information
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2