Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7701245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:56:18+00:00 2026-05-31T22:56:18+00:00

EDIT I added this note to explain why I keep this question here. I

  • 0

EDIT

I added this note to explain why I keep this question here. I added “Android” as keyword and I’d like to know whether someone else has tried to download the code and how it is possible to work around this problem.
I fear that if I ask Ubuntu they would suggest me to use OpenJDK but the question is: did someone use that SDK to build Android code?

ORIGINAL

Sometime ago I downloaded the android source code on Ubuntu 10 64bit.
I had problems but at the end I managed to get everything working.
Now I’m trying to do it again on a fresh install of the same Ubuntu version but I’m having a problem.

Although I followed the instruction here I keep having the error:

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

Googling gives you a lot of results that all give you the same solution:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"   
sudo apt-get update
sudo apt-get install sun-java6-jdk

I did it but it didn’t work.

I’m running Ubuntu on a VM under VMWare.

I have also tried to add another source:

sudo add-apt-repository “deb-src http://archive.canonical.com/ubuntu lucid partner

but it didn’t help

Maybe the answer is here:

Answer in SuperUser

but it is weird that on the Android portal there isn’t any mention of it

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:56:19+00:00Added an answer on May 31, 2026 at 10:56 pm

    The problem is that you should now download JDK manually. Somewhere I found these steps and it worked fine in my case:

    1. Download Java SE 6 JDK for Linux x86 self-extracting binary (if you work with 32bit platform)
    2. From the download folder, make the file executable chmod a+x jdk-6u<version>-linux-i586.bin
    3. Move the file to the jvm folder sudo mv jdk-6u<version>-linux-i586.bin /usr/lib/jvm/
    4. Change to the jvm folder and run the self-extracting binary cd /usr/lib/jvm
    5. sudo ./jdk-6u<version>-linux-i586.bin
    6. Everything will be extracted to a new jdk1.6 folder and you
      can delete the .bin file now.
    7. Make a symbolic link to the new java binary in the alternatives
      folder. sudo ln -s -b /usr/lib/jvm/jdk1.6<version>/jre/bin/java
      /etc/alternatives/java
    8. Append in your ~/.bashrc

      JAVA_HOME=/usr/lib/jvm/jdk1.6.<version>/
      

      PATH=$PATH:$JAVA_HOME/bin

    9. Double-check the version java -version

    Remember that you can work only with JDK v6 version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: You can get the full source here: http://pastebin.com/m26693 Edit again: I added some
I would like to automate the following svn command. Note this command produces the
Maybe someone can explain this behavior. Sometimes I will do an SVN update, and
Edit: Added code (Exception on line 095, 5th time it's hit.) public DataTable ParseBarcodes(String[]
EDIT: I added in where I create new instance of the class Process as
EDIT : Accepted answer points out what my issue was. I added another answer
I have a piece of code: EDIT: The _penParams are initialized as the added
RoomInfoActivity.java: http://pastebin.com/L9fFsFeH (note: this is the 3rd activity launched by the same application, not
Title edit: capitalization fixed and 'for python' added. Is there a better or more
edit: I have added a few new lines of code to the beginning for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.