|
|||||||||
| Register | FAQ | Top Statistics | Today's Posts | Donate | Gallery | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
| The Following User Says Thank You to hal4511 For This Useful Post: | ||
|
#2
|
||||
|
||||
|
I should also mention that I have uninstalled openjdk via synaptic ...
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
||||
|
||||
|
Quote:
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' Last edited by kmathern : 02-12-2010 at 10:04 PM. |
|
#7
|
|||
|
|||
|
Quote:
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 |
|
#8
|
||||
|
||||
|
Quote:
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' 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 Code:
echo "deb ftp://ftp.us.debian.org/debian/ sid main non-free">/etc/apt/sources.list.d/java.list The second line: Code:
apt-get update The third line: Code:
apt-get install -t unstable sun-java6-bin sun-java6-jre sun-java6-fonts sun-java6-plugin The fourth line: Code:
rm -f -r /etc/apt/sources.list.d/java.list Last edited by kmathern : 09-02-2009 at 05:42 PM. |
|
#9
|
||||
|
||||
|
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! |
|
#10
|
||||
|
||||
|
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 |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |