Go Back   MEPISlovers Forum > How-To's and Scripts > Tips&Tricks
Register FAQTop Statistics Today's Posts Donate Gallery
Gallery
Mepis Art Gallery
My images
Upload an image
View all users images
Post New Thread  Reply
How To Update Java ???

 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-01-2009, 10:19 AM
hal4511's Avatar
hal4511 hal4511 is offline
MEPIS Lover
 
Join Date: Jul 2009
Location: Upstate South Carolina
Gender: Male
Posts: 110
Thanks: 3
Thanked 9 Times in 6 Posts
Rep Power: 14
Reputation: 55
hal4511 is on a distinguished road
Default How To Update Java ???

Question please ... I would like to know if there is a simple way to update Java ??? I'm running version 12 at present of Sun Java ....

apt-get install sun-java6-plugin tells me I have the latest version ... surely there is an easier way than downloading from Suns website.

Any help would be greatly appreciated ...

Thx
Reply With Quote
The Following User Says Thank You to hal4511 For This Useful Post:
  #2  
Old 08-01-2009, 10:28 AM
hal4511's Avatar
hal4511 hal4511 is offline
MEPIS Lover
 
Join Date: Jul 2009
Location: Upstate South Carolina
Gender: Male
Posts: 110
Thanks: 3
Thanked 9 Times in 6 Posts
Rep Power: 14
Reputation: 55
hal4511 is on a distinguished road
Default

I should also mention that I have uninstalled openjdk via synaptic ...
Reply With Quote
  #3  
Old 08-01-2009, 11:09 AM
timkb4cq's Avatar
timkb4cq timkb4cq is online now
MEPIS Guide
 
Join Date: Jul 2006
Posts: 1,293
Thanks: 104
Thanked 955 Times in 574 Posts
Rep Power: 114
Reputation: 5203
timkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond reputetimkb4cq has a reputation beyond repute
Default

I haven't had any trouble with the version in lenny (Java 6-12) , so I don't know how much it will actually help, but the latest sun-java version (Java 6-14) is available in the debian squeeze repositories. It doesn't bring in any other libraries so it should be pretty safe to install. I tested it and it works here

Just add this to the repository list in Synaptic

ftp://ftp.debian.org/debian/
squeeze
non-free


Hit Reload, then upgrade sun-java6.

Disable this repository afterwards just in case.
Reply With Quote
  #4  
Old 08-01-2009, 11:45 AM
hal4511's Avatar
hal4511 hal4511 is offline
MEPIS Lover
 
Join Date: Jul 2009
Location: Upstate South Carolina
Gender: Male
Posts: 110
Thanks: 3
Thanked 9 Times in 6 Posts
Rep Power: 14
Reputation: 55
hal4511 is on a distinguished road
Default

Oh man that did it !!!

Thank You so much .....
__________________
Registered Linux user #494346

Last edited by hal4511 : 08-01-2009 at 12:37 PM. Reason: Success
Reply With Quote
  #5  
Old 09-02-2009, 08:17 AM
hal4511's Avatar
hal4511 hal4511 is offline
MEPIS Lover
 
Join Date: Jul 2009
Location: Upstate South Carolina
Gender: Male
Posts: 110
Thanks: 3
Thanked 9 Times in 6 Posts
Rep Power: 14
Reputation: 55
hal4511 is on a distinguished road
Default

Well I see Java has been updated yet again to to release 16. I don't think the squeeze repository has it yet ... does anyone know where i can find the new update ???


Update I found them in the sid repository .... Thx

Last edited by hal4511 : 09-02-2009 at 08:23 AM.
Reply With Quote
  #6  
Old 09-02-2009, 09:32 AM
kmathern's Avatar
kmathern kmathern is offline
MEPIS Guide
 
Join Date: Jul 2006
Gender: Male
Posts: 3,027
Thanks: 232
Thanked 1,488 Times in 1,107 Posts
Rep Power: 160
Reputation: 8090
kmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond repute
Default

Quote:
Originally Posted by hal4511 View Post
Well I see Java has been updated yet again to to release 16. I don't think the squeeze repository has it yet ... does anyone know where i can find the new update ???


Update I found them in the sid repository .... Thx
I update my sun-java6 from sid also.
I use the command in the code box below, it temporarily adds the sid repo and then removes it when the update is done
Code:
su -c 'echo "deb ftp://ftp.us.debian.org/debian/ sid main non-free">/etc/apt/sources.list.d/java.list && apt-get update && apt-get install -t unstable sun-java6-bin sun-java6-jre sun-java6-fonts sun-java6-plugin && rm -f -r /etc/apt/sources.list.d/java.list'
note: if you receive "E: Dynamic MMap ..." errors, increase the APT::Cache-Limit value in the /etc/apt/apt.conf file

Last edited by kmathern : 02-12-2010 at 10:04 PM.
Reply With Quote
The Following 2 Users Say Thank You to kmathern For This Useful Post:
  #7  
Old 09-02-2009, 10:56 AM
namida12 namida12 is offline
AMD Athlon 11 X4 630
 
Join Date: Apr 2007
Location: Las Vegas, NV
Gender: Male
Posts: 1,770
Thanks: 452
Thanked 359 Times in 278 Posts
Rep Power: 78
Reputation: 2061
namida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud ofnamida12 has much to be proud of
Default

Quote:
Originally Posted by kmathern View Post
I update my sun-java6 from sid also.
I use the command in the code box below, it temporarily adds the sid repo and then removes it when the update is done.
kmathern,

Thanks that was a sweet posting including the code...

Two questions:

1. could you take the time and break down the code you posted with an explanation of the steps, to let me digest a bit more information and to provide a foundation for the newer Users...

2. could we get some more code like this to update to the latest non free flash.

JR
Reply With Quote
  #8  
Old 09-02-2009, 05:03 PM
kmathern's Avatar
kmathern kmathern is offline
MEPIS Guide
 
Join Date: Jul 2006
Gender: Male
Posts: 3,027
Thanks: 232
Thanked 1,488 Times in 1,107 Posts
Rep Power: 160
Reputation: 8090
kmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond repute
Default

Quote:
Originally Posted by namida12 View Post
kmathern,

Thanks that was a sweet posting including the code...

Two questions:

1. could you take the time and break down the code you posted with an explanation of the steps, to let me digest a bit more information and to provide a foundation for the newer Users...

2. could we get some more code like this to update to the latest non free flash.

JR
namida12,

that command I posted
Code:
su -c 'echo "deb ftp://ftp.us.debian.org/debian/ sid main non-free">/etc/apt/sources.list.d/java.list && apt-get update && apt-get install -t unstable sun-java6-bin sun-java6-jre sun-java6-fonts sun-java6-plugin && rm -f -r /etc/apt/sources.list.d/java.list'
would be the same the same as running the following script as root

Code:
#!/bin/sh
echo "deb ftp://ftp.us.debian.org/debian/ sid main non-free">/etc/apt/sources.list.d/java.list
apt-get update
apt-get install -t unstable sun-java6-bin sun-java6-jre sun-java6-fonts sun-java6-plugin
rm -f -r /etc/apt/sources.list.d/java.list
The first line:
Code:
echo "deb ftp://ftp.us.debian.org/debian/ sid main non-free">/etc/apt/sources.list.d/java.list
creates a file named /etc/apt/sources.list.d/java.list which contains the repo entry for the debian sid repo. I added the file to the /etc/apt/sources.list.d directory because doing so I can temporarily add the sid repo to the apt sources without affecting the regular repos in the the /etc/apt/sources.list file.

The second line:
Code:
apt-get update
I'm sure your familiar with, it just updates the repos

The third line:
Code:
apt-get install -t unstable sun-java6-bin sun-java6-jre sun-java6-fonts sun-java6-plugin
installs the sid (unstable) version of the sun-java6 packages, it would be the same as force installing those packages in Synaptic

The fourth line:
Code:
rm -f -r /etc/apt/sources.list.d/java.list
removes the /etc/apt/sources.list.d/java.list file to return the apt sources to their original repos

Last edited by kmathern : 09-02-2009 at 05:42 PM.
Reply With Quote
The Following 10 Users Say Thank You to kmathern For This Useful Post:
  #9  
Old 10-27-2009, 04:25 PM
chatan's Avatar
chatan chatan is online now
MEPIS Guide
 
Join Date: Oct 2008
Location: Okinawa, Japan
Gender: Male
Posts: 508
Thanks: 309
Thanked 263 Times in 169 Posts
Rep Power: 42
Reputation: 1507
chatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud ofchatan has much to be proud of
Thumbs up

I ran kmathern's command on both 32 and 64 bit machines today and it updated to latest java version (Version 6 Update 16) no problem.
So Thanks!
Reply With Quote
  #10  
Old 10-29-2009, 05:30 PM
JBoman's Avatar
JBoman JBoman is offline
MEPIS Guide
 
Join Date: Jul 2006
Gender: Male
Posts: 385
Thanks: 114
Thanked 90 Times in 46 Posts
Rep Power: 59
Reputation: 602
JBoman is a glorious beacon of lightJBoman is a glorious beacon of lightJBoman is a glorious beacon of lightJBoman is a glorious beacon of lightJBoman is a glorious beacon of lightJBoman is a glorious beacon of light
Default

kmathern,
When I ran it it ended with the following...
Need to get 35.5MB of archives.
After this operation, 101MB of additional disk space will be used.
Get:1 ftp://ftp.us.debian.org sid/non-free sun-java6-jre 6-16-1 [6428kB]
Get:2 ftp://ftp.us.debian.org sid/non-free sun-java6-bin 6-16-1 [29.1MB]
Get:3 ftp://ftp.us.debian.org sid/non-free sun-java6-fonts 6-16-1 [1846B]
Get:4 ftp://ftp.us.debian.org sid/non-free sun-java6-plugin 6-16-1 [1770B]
Fetched 35.5MB in 1min17s (457kB/s)
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
/bin/sh: /usr/sbin/dpkg-preconfigure: /usr/bin/perl: bad interpreter: No such file or directory
Selecting previously deselected package sun-java6-jre.
(Reading database ... 130064 files and directories currently installed.)
Unpacking sun-java6-jre (from .../sun-java6-jre_6-16-1_all.deb) ...
/usr/share/debconf/confmodule: /usr/share/debconf/frontend: /usr/bin/perl: bad interpreter: No such file or directory
/usr/share/debconf/confmodule: line 17: /usr/share/debconf/frontend: Success
dpkg: error processing /var/cache/apt/archives/sun-java6-jre_6-16-1_all.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Selecting previously deselected package sun-java6-bin.
Unpacking sun-java6-bin (from .../sun-java6-bin_6-16-1_i386.deb) ...
/usr/share/debconf/confmodule: /usr/share/debconf/frontend: /usr/bin/perl: bad interpreter: No such file or directory
/usr/share/debconf/confmodule: line 17: /usr/share/debconf/frontend: Success
dpkg: error processing /var/cache/apt/archives/sun-java6-bin_6-16-1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
/var/lib/dpkg/tmp.ci/postrm: /usr/sbin/update-mime: /usr/bin/perl: bad interpreter: No such file or directory
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 126
Selecting previously deselected package sun-java6-fonts.
Unpacking sun-java6-fonts (from .../sun-java6-fonts_6-16-1_all.deb) ...
Selecting previously deselected package sun-java6-plugin.
Unpacking sun-java6-plugin (from .../sun-java6-plugin_6-16-1_i386.deb) ...
Errors were encountered while processing:
/var/cache/apt/archives/sun-java6-jre_6-16-1_all.deb
/var/cache/apt/archives/sun-java6-bin_6-16-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

So what's all that mean ?, Thanks, JBoman
__________________
MEPIS 8.5.10-rc3_32 AMD 2.6 ghz Soyo Dragon2 w/2GB kernel 2.6.32.10 CableNet. fan of > SBLinux.org & forum & arachnoid.com
Reply With Quote
Post New Thread  Reply

  MEPISlovers Forum > How-To's and Scripts > Tips&Tricks


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java update depends on Firefox Max_David Betas-RCs Only 2 02-13-2009 01:00 AM
Updating Java w/Synaptic SpecialwhenLit Newbies 6 03-12-2008 01:44 PM
To update or not to update, that's the question Eadwine Rose Newbies 112 05-06-2007 06:05 AM
Solved - Updating KlamAV in SM 6.0 fails, howto update KlamAV - ClamAV Nix Hard Betas-RCs Only 5 01-13-2007 08:46 PM
Java 1.5.0.08 Update and Swiftfox Acesabe Regulars 2 08-24-2006 05:47 PM


All times are GMT -4. The time now is 09:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2010 MEPISlovers.org