PDA

View Full Version : [SOLVED] Can't update Oracle JDK 7 Ubuntu 12.04 LTS



Kreaninw
May 18th, 2012, 04:13 PM
I can't update Oracle JDK 7 on Ubuntu 12.04 LTS.

http://img705.imageshack.us/img705/530/screenshotfrom201205182.png (http://imageshack.us/photo/my-images/705/screenshotfrom201205182.png/)

Uploaded with ImageShack.us (http://imageshack.us)

http://img406.imageshack.us/img406/530/screenshotfrom201205182.png (http://imageshack.us/photo/my-images/406/screenshotfrom201205182.png/)

Uploaded with ImageShack.us (http://imageshack.us)

Hey, thanks to QIII (http://ubuntuforums.org/member.php?u=628170) and darkod (http://ubuntuforums.org/member.php?u=946366). The problem solved.

QIII
May 18th, 2012, 04:24 PM
What happens if you choose to update?

Those messages are informational. Mine updates normally via the command line.

If choosing to update does or does not work, please let me know. It looks like I may want to make some more updates to the Community Java Wiki.

Kreaninw
May 18th, 2012, 04:50 PM
What happens if you choose to update?

Those messages are informational. Mine updates normally via the command line.

If choosing to update does or does not work, please let me know. It looks like I may want to make some more updates to the Community Java Wiki.

When I clicked install update button, it's always show the pop-up window like the image I showed in the first post. ](*,)

And how can I update it via command-line and why software updater just doesn't work? Thanks

darkod
May 18th, 2012, 04:59 PM
Run in terminal:
sudo apt-get update
sudo apt-get upgrade

QIII
May 18th, 2012, 05:01 PM
I will look in to the graphical update method and contact webupd8.

You can do command line updates as follows:


sudo apt-get update


sudo apt-get dist-upgrade

darkod
May 18th, 2012, 05:05 PM
sudo apt-get dist-upgrade

Isn't dist-upgrade to upgrade the ubuntu version? Aren't we talking only about JDK here?

QIII
May 18th, 2012, 05:44 PM
Isn't dist-upgrade to upgrade the ubuntu version? Aren't we talking only about JDK here?

I use dist-upgrade exclusively, primarily to catch dependency resolutions.

I saw this update go by.

However, I'll check to be sure.

In any case, upgrade should work so it wouldn't be a problem.

Psidawg
May 24th, 2012, 07:12 PM
Here is how I did it


sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-jdk7-installer

EDIT: I seen this was solved but the solutions provided above did not work for me. So I added the one that worked for me for others who may come across this thread.