Hi I am bran new to this website so sorry if this was already asked but I looked and I couldn't find it so I want to know how I can install java on Linux like the topic description said I am using Google chrome (I don't know if that makes a difference) and I am also using Ubuntu I am the biggest noob ever I didn't even know how to install Linux on my computer my brother had to so the more information you can give me the better.
Welcome Bran :)
Try this:
Open the Terminal and type this:
Code:
sudo apt-get install sun-java6-jre sun-java6-plugin
Thanks but it didn't work after I typed in my password in terminal this it what it said
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre 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-jre has no installation candidate
also sorry for me not replying sooner I thought I would get a email when I got a reply but I never did
try:
sudo apt-get install sun-java6-jre
or log into root first:
su -
password
apt-get install sun-java6-jre
wat version of ubuntu are you running?
for ubuntu 10.04 try this
source:
The first step is to add the necessary repositories to the /etc/apt/sources.list file. So open that file up with your favorite text editor and add the following line to the bottom of that file:
to get that done do the following: sudo nano /etc/apt/sources.list
deb
http://archive.canonical.com/ lucid partner
Now to update apt, issue the command:
sudo apt-get update
Once apt has completed its update, you are ready to install. The actual installation command is:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
I am using ubuntu 10.04 and I got up to where I have to update the thing after I put the text in I copy and pasted the command you gave me but nothing happens
You are doing something wrong then. I'll try and take you step by step:
1. sudo nano /etc/apt/sources.list
2. add the following line at the bottom of this file(you can select it with the mouse and copy/past it): deb
http://archive.canonical.com/ lucid partner
3. press ctrl+o to save
4. sudo apt-get update or sudo aptitude update
5. sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Then you're done
Thank you so much it installed perfectly you were such a big help I cannot thank you enough if there is a rep or thanks thing on the website please tell me you deserve it.
no problem, glad it works now :)