Install Java in Ubuntu 10.04

Source: Internet
Author: User

$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk[sudo] password for bobpete:Reading package lists... DoneBuilding dependency treeReading state information... DonePackage sun-java6-bin is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceHowever the following packages replace it:  sun-java6-jreE: Package sun-java6-bin has no installation candidate

The data source cannot be updated.

Finally, find a post.

Http://stackoverflow.com/questions/2270068/cant-install-sun-java6-bin-package-on-ubuntu-hardy-8-04

deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse

Add this to the data source list:/ECT/APT/sources. List

Then update the data source

$ Sudo apt-Get update

Then install

$ Sudo apt-Get install sun-java6-jre sun-java6-jdk

So OK.

At least on my host.

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.