Ubuntu10.04LTS installation sun-java6-jdk error solution

Source: Internet
Author: User
Ubuntu10.04LTS installation sun-java6-jdk, error. Readingpackagelists... DoneBuildingdependencytreeReadingstateinformation... DonePackagesun-java6-jdkisnotavailable, buti... Ubuntu 10.04 LTS installation sun-java6-jdk, error.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is only available from another source
E: Package sun-java6-jdk (has no installation candidate)
Said Ubuntu 10.04 has removed the sun-java6-jdk and sun-java6-jre software package
 
Sudo add-apt-repository "deb http://archive.canonical.com/lucid partner"
Sudo apt-get update
Sudo apt-get install sun-java6-jdk
 
The error message is the same:
 
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is only available from another source
E: Package sun-java6-jdk (has no installation candidate)
 
All of these have been done. The source list is also checked .. There is also a http://archive.canonical.com/lucid partner and there are several.
 
Solving ....
 
 
Answer by yourself:
The following prompt appears when updating the apt source sudo apt-get update:
 
 
Ign http://extras.ubuntu.com oneiric/main Translation-en_US
Ign http://archive.canonical.com lucid/partner Translation-en_US.
Ign http://archive.canonical.com lucid/partner Translation-en
Ign http://extras.ubuntu.com oneiric/main Translation-en
Ign http://us.archive.ubuntu.com jaunty/multiverse TranslationIndex
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse TranslationIndex
Ign http://archive.canonical.com natty/partner Co., Translation-en_US.
Ign http://archive.canonical.com natty/partner Translation-en
Hit http://us.archive.ubuntu.com oneiric/main Translation-en
Hit http://us.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://us.archive.ubuntu.com oneiric/universe Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://us.archive.ubuntu.com oneiric-backports/main Translation-en
Hit http://us.archive.ubuntu.com oneiric-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com oneiric-backports/universe Translation-en
The Err http://us.archive.ubuntu.com jaunty/multiverse Sources
404 Not Found [IP: 91.189.92.180 80]
Err http://us.archive.ubuntu.com jaunty/multiverse amd64 Packages
404 Not Found [IP: 91.189.92.180 80]
The Err http://us.archive.ubuntu.com jaunty/multiverse i386 Packages
404 Not Found [IP: 91.189.92.180 80]
The Err http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
404 Not Found [IP: 91.189.92.180 80]
Err http://us.archive.ubuntu.com jaunty-updates/multiverse amd64 Packages
404 Not Found [IP: 91.189.92.180 80]
The Err http://us.archive.ubuntu.com jaunty-updates/multiverse i386 Packages
404 Not Found [IP: 91.189.92.180 80]
Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/source/Sources 404 Not Found [IP: 91.189.92.180 80]
 
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.92.180 80]
 
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.92.180 80]
 
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/source/Sources 404 Not Found [IP: 91.189.92.180 80]
 
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.92.180 80]
 
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.92.180 80]
 
E: Some index files failed to download. They have been ignored, or old ones used instead.
 
But...
Cc @ ubuntu :~ $ Sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is only available from another source
 
E: Package 'sun-java6-jdk 'has no installation candidate
???
 
Then, let's learn what the download is ··
JDK
JDK is the core of the entire Java, including the Java Runtime Environment (Java Runtime Envirnment), a bunch of Java tools and the basic Java Class Library (rt. jar ). No matter what Java application server is actually built into a certain version of JDK. the most popular JDK is the JDK released by Sun. in addition to Sun, many companies and organizations have developed their own JDK, such as JDK developed by IBM and Jrocket of BEA, and JDK developed by GNU. Among them, the JVM (Java Virtual Machine) running efficiency of ibm jdk is much higher than that of Sun JDK. The Jrocket running on the x86 platform is much more efficient on the server than Sun JDK. However, we still need to master Sun JDK first.
JDK generally has three versions: SE (J2SE), standard edition, and standard edition. it is a common version of EE (J2EE), enterpsise edtion, and Enterprise edition, this JDK is used to develop J2EE applications, such as ME (J2EE) and micro edtion. it is mainly used for java development tools (JDK) for Java applications on mobile devices and embedded devices) it is the development environment that many Java experts initially use. Although many programmers have used third-party development tools, JDK is still an important tool for Java development. JDK consists of a standard library and a set of Java utilities that are created, tested, and documented. Its core Java API is some predefined class libraries. developers need to use these classes to access Java functions. Java APIs include some important language structures and basic graphics, networks and files I/O. generally, the non-I/O part of Java APIs is the same for all platforms running Java, while the I/O part is only implemented in the general Java environment.
As a JDK utility, there are seven main tools in the tool library.
◆ Javac: Java compiler, which converts Java source code into bytecode.
◆ Java: Java interpreter, which executes Java application byte code directly from class files.
◆ Appletviewer: applet browser, a Java browser that executes Java applets on HTML files.
◆ Javadoc: generate HTML documents based on Java source code and instructions.
◆ Jdb: Java debugger, which can execute programs one by one, set breakpoints and check variables.
◆ Javah: generate the C process that can call the Java process, or create the header file of the C process that can be called by the Java program.
◆ Javap: Java anti-assembler that displays the accessible functions and data in the compilation class file and the meaning of the byte code.
JRE
JRE (Java Runtime Environment, Java Runtime Environment), a set of environments required to run JAVA programs, including JVM standard implementation and Java core class libraries. Is Sun's product, which includes JavaRuntimeEnvironment and JavaPlug-inJavaRuntimeEnvironment (JRE). It is a Java platform that can run, test, and transmit applications on it. It includes Java virtual machine, Java platform core class, and support files. It does not contain development tools-compilers, debuggers, and other tools. JRE needs auxiliary software -- JavaPlug-in -- to run the applet in the browser. j2RE is Java2 Runtime Environment, that is, Java Runtime Environment, sometimes referred to as JRE. if you only need to run a Java program or Applet, download and install it. If you want to develop Java software on your own, download JDK. JRE is included in JDK. note: Because Microsoft does not fully support Java, do not use the virtual machine that comes with IE to run the Applet. Be sure to install a JRE or JDK.
 
 
Final implementation method
1. add the source:
Deb http://us.archive.ubuntu.com/ubuntu/ hard multiverse.
2. sudo apt-get update
 
3. sudo apt-get install sun-java6-jdk
 
Then the download and installation sun-java6-jdk appears... For a long time, when the download is complete
 


It indicates the operation is successful. Pai_^
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.