help installing jre-6u21-linux-i586-rpm on ubuntu

Asked by James Leu on 2010-07-26

 Hi i tried installing sun java's jre-6u21-linux-i586-rpm.bin and seems i'm doing something wrong or the instructions that java has is wrong.
I keep getting errors !

help me please !


Question information

English Edit question
Ubuntu sun-java6 Edit question
No assignee Edit question
Last query:
Last reply:

You don't use RPM. RPM is for other distros like Manriva and RedHat. Ubuntu uses DEB files. The file you have is useless to you and also unnecessary. Use this guide and you will get java:

wojox (wojox) said : #2

You can also try this

E. Mark Mitchell (bbanzai123) said : #3

I seem to be suffering the same issue, but your second link appears to be dead, and your first link... when I try the "get update" command (the second step), I get

E: Malformed line 54 in source list /etc/apt/sources.list (dist parse)

Which stops everything from that point forward. Suggestions?

Can you give the output of:

head -n 54 /etc/apt/sources.list | tail -n 1


Please be sure to install a deb related file, not a rpm file, rpm are for Fedora and RedHat distribution derivate...
Please copy here the entire content of the /etc/apt/sources.list file.

Ubuntu already has java in the partner repo. If you enable it in software centre you can close it, then run:

sudo apt-get update; sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

And you will have sun java....

Can you help with this problem?

Provide an answer of your own, or ask James Leu for more information if necessary.

To post a message you must log in.