Author Topic: Installing Sun Java  (Read 558 times)

0 Members and 1 Guest are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1616
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Installing Sun Java
« on: February 23, 2013, 02:19:59 pm »
I've removed openJDK and need to install Sun Java, how do I do it, I've tried from Webupd8 http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
But I cant get past the second command. I've also removed the PPA since.
Code: [Select]
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

pooky2483@pooky2483-ubuntu12:~$ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
pooky2483@pooky2483-ubuntu12:~$

Is there an easier way?

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-61-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 118
  • Gender: Male
    • View Profile
    • Awards
Re: Installing Sun Java
« Reply #1 on: February 23, 2013, 02:41:28 pm »
I do not know about installing Sun Java but the update errors could be resolved.
Quote
pooky2483@pooky2483-ubuntu12:~$ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
pooky2483@pooky2483-ubuntu12:~$
It is possible that another installation is still running, in which case you must either interrupt it or wait.
If that is not the case, then your lockfile is around from another installation that was interrupted.
Code: [Select]
sudo -i
rm /var/lib/apt/lists/lock
rm /var/lib/dpkg/lock
apt-get update

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1616
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Installing Sun Java
« Reply #2 on: February 23, 2013, 02:52:56 pm »
done that, what's next? Try the Webupd8 java install again?

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-61-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13181
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing Sun Java
« Reply #3 on: February 23, 2013, 03:00:35 pm »
Make sure ALL package installation applications (Synaptic, Ubuntu Software centre, and Update Manager) are closed.

Now try the WebUpdate instructions again.

You can only use 1 installer at a time .. and apt-get is one of them ;)

[EDIT]

WARNING -

Be sure to DISABLE the JAVA plugin in your browser .. only enable it when it's totally NECESSARY .. Oracle/Sun JAVA has MAJOR security issues, OpenJDK/Icedtea (AFAIK) doesn't.

--
« Last Edit: February 23, 2013, 03:13:11 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1616
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Installing Sun Java
« Reply #4 on: February 23, 2013, 03:07:38 pm »
Thanks for the help SeZo & Mark, it installed OK just need to reboot...

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-61-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13181
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing Sun Java
« Reply #5 on: February 23, 2013, 03:11:13 pm »
See the warning above.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1616
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Installing Sun Java
« Reply #6 on: February 23, 2013, 03:24:58 pm »
Code: [Select]
java -version
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
pooky2483@pooky2483-ubuntu12:~$

I get this warning when it wants run, the other screenshot is telling me it's installed OK

Kubuntu 12.04LTS 64bit|KDE 4.13.2|QT 4.8.6|Linux 3.2.0-61-generic|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13181
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing Sun Java
« Reply #7 on: February 23, 2013, 05:18:11 pm »
There's nothing wrong (as far as I can see).

IIRC, Oracle rather than fixing the security issues have opted to ask the user permission before running anything .. until they can be bothered t fix it.

Don't take this response as "gospel" .. nor should you trust Oracle Java to do that every time .. I'm only responding with a vague memory of reading that somewhere.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal