Installing Java in Ubuntu 9.10
November 4, 2009 35 Comments
As I did upgrade my operating system to Ubuntu 9.10, i found that the installation of Java became little easer. Previously in 9.04, I had to edit sources.list but this time directly update of the repository works.
For installation, Just i have to update my repository by
$ sudo apt-get update
Then I mapped the dependencies
$ sudo apt-get -f install
And just we need to install Java with following command
$ sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin
(And to accept the configuration window, press TAB key to move the control)
Thanks this worked when i tried it but actually fixed a TON of other problems!!!
Nice Post, btw do you know any good usenet archives and or mailing list archives site for unix / linux / bsd
Sorry guru, i don’t have idea about it.
Nice,Simple,Works and most important Easy
Thanks very much
Welcome to you all..
Hi….
According to me, You have the Ubuntu install disc, so pop in your spare hard drive (if you do not know how to do this, make a quick detour to the PC Mech Forums and you will have it done in no time) and put the install disc in your CD drive and lets get started.
This is very easy process…
After installation, enjoy to use it…
Thanks alot this worked for me !!
Thanks, it worked!
But, why, again is it even this hard to find/do. It should be in the add-software. Well, it is but says “not in this data” – hmm, english please
Come on linux, get with it, windows is lighter in 7, more to compete against.
Hello Pete,
actually to get it in add-software plz try after updating the Repository.. For that you can take help from my previous post “Installing Java 6 in Ubuntu 9.04” where i had given some instruction to update repository. I think it will work..
Thank You for your comment..
Worked like a charm. Thank you.
Thanks heaps !!! It worked.
Failed: I am pretty much a newbie, started ubuntu in 9.04… here is the error
The following packages have unmet dependencies:
sun-java6-jdk: Depends: sun-java6-bin (= 6-15-1) but it is not going to be installed
sun-java6-jre: Depends: sun-java6-bin (= 6-15-1) but it is not going to be installed or
ia32-sun-java6-bin (= 6-15-1) but it is not installable
sun-java6-plugin: Depends: sun-java6-bin (= 6-15-1) but it is not going to be installed
E: Broken packages
Sun had instructions that worked here:
http://www.java.com/en/download/help/5000010500.xml#rpm
Thank you Jim, for suggestion. But i think if you had follow my installing java 6 in ubuntu-9.04 blog, It might had help you.
it did not work again/……………………….
What error are u getting and at which stage?
This brings me to an idea:…
Sometimes it’s really that simple, isn’t it? I feel a little stupid for not thinking of this myself/earlier, though.
Great idea, thanks for this tip!
Hi there.
Thank you for a great post. It was very helpfull.
Anyone reading this post should bookmark this guys contents.
I have a new PC and needed some installation help so i went over to http://www .InstallSoftware. com but they did not provide me with the in depth
info this guy did. he kicks all the bigger sites’ butts.
Thanks Again
I’m using ubuntu off a CD for now. Is it possible to download java in this condition?
I’m not a computer person, I just know the basics. I tried the top commands on terminal but it doesn’t do anything. Says “couldn’t find package sun-java6-jdk”
Do you know wat I’m missing?
How did you do it?? Please tell me. Thanks.
I do not understand clearly about what you are asking to do. If it is about the following commands, open terminal then copy and paste(ctrl+shift+v) all those command to your terminal one by one and press enter. I hope you will get it.
I meant how can I do it while only using Ubuntu off a CD. This is what happens after I put all the commands in:
ubuntu@ubuntu:~$ sudo apt-get update
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ – Release i386 (20091028.5) karmic/main Translation-en_US
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ – Release i386 (20091028.5) karmic/restricted Translation-en_US
Hit http://archive.ubuntu.com karmic Release.gpg
Ign http://archive.ubuntu.com karmic/main Translation-en_US
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Ign http://archive.ubuntu.com karmic/restricted Translation-en_US
Hit http://archive.ubuntu.com karmic-updates Release.gpg
Ign http://archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/restricted Translation-en_US
Hit http://archive.ubuntu.com karmic Release
Hit http://security.ubuntu.com karmic-security Release
Hit http://archive.canonical.com karmic Release
Hit http://archive.ubuntu.com karmic-updates Release
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://archive.canonical.com karmic/partner Packages
Hit http://archive.ubuntu.com karmic/main Packages
Hit http://archive.ubuntu.com karmic/restricted Packages
Hit http://archive.ubuntu.com karmic/main Sources
Hit http://archive.ubuntu.com karmic/restricted Sources
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://archive.ubuntu.com karmic-updates/main Packages
Hit http://archive.ubuntu.com karmic-updates/restricted Packages
Hit http://archive.ubuntu.com karmic-updates/main Sources
Hit http://archive.ubuntu.com karmic-updates/restricted Sources
Reading package lists… Done
ubuntu@ubuntu:~$ sudo apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 246 not upgraded.
ubuntu@ubuntu:~$ sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin
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
Step 2 and 3 dont seem to work.
i hope, solution on http://newyork.ubuntuforums.org/showthread.php?p=7634547 may work for you.
Never mind I got it. You had to go to System-Adminstration-Software sources-check multiverse-then go to package manager-then look for java. It was pretty easy most packages you need ar in the Synaptic Package Manager.
that’s good.. i am sure your experience will help others..
Nevermind. It worked 🙂
Prashant, can u guide me how to install java if no internet connection.
hello use.. please try out by disc once… in the same post acai berry had commented me for that… i hope that may work you.
thanks man thanks for sharin rate it 101 this post
i want to install the java 6 in the ubuntu 9.10.
i installed the ubuntu 9.10 from cd and now i want install tje jdk and jre but i am not able to do it
so if u can please solve this then send information to my e=mail id:blvprasad91@gmail.com
hello prasad,
Just follow the steps i have published in this post.. If you are finding any difficulty on following any of the step please do write me where you faced what problem..
That was amazingly simple! Days and days of trying to put it on 10.04! Thanks!
you are welcome jamie..