When installing Java JDK in Ubuntu10.04, we usually need to add the source of the partner in a third-party source, such as debhttp: // sources (6.21), to the Official Partner source of Ubuntu10.10. In Ubuntu10.10
When installing Java JDK in Ubuntu 10.04, we usually need to add the source of the partner in a third-party source, such:
Deb http://archive.canonical.com/lucid partner
You can also use some PPA to install JDK, and everything becomes easy in Ubuntu 10.10, because Sun Java (6.21) is uploaded to the Official Partner source of Ubuntu 10.10.
How to enable the Official Partner source in Ubuntu 10.10: Open the Software Center, click Edit-software source, and select to activate the partner source in other software (it should be in the first row, http://archive.canonical.com/ubuntu maverick partner) Click Close, choose reload, search for Sun Java6 in the Software Center, and install