updating java from a terminal

James D. Parra Jamesp at MusicReports.com
Fri Aug 8 01:40:08 UTC 2008


"sudo apt-get install sun-java5-jdk",  im assuming you are looking to update
the jdk.  To search for other java packages you can use "aptitude search
sun-java" or "just aptitude search java" for everything related to java.


On Thu, Aug 7, 2008 at 4:29 PM, James D. Parra <Jamesp at musicreports.com>
wrote:

Hello,

I am connecting to a workstation via ssh and I'd like to update the Java
install from 1.4.2 to 1.5. Since there is no GUI, what utility can I use to
perform the update?
<snip>

"sudo apt-get install sun-java5-jdk",  im assuming you are looking to update
the jdk.  To search for other java packages you can use "aptitude search
sun-java" or "just aptitude search java" for everything related to java.
~~~~~~~
Thanks Jim. However, I am getting the following errors. Any to get around
them? 


Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://us.archive.ubuntu.com
breezy/main Packages
(/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_breezy_main_binary-i3
86_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://us.archive.ubuntu.com
breezy/restricted Packages
(/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_breezy_restricted_bin
ary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://us.archive.ubuntu.com
breezy/multiverse Packages
(/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_breezy_multiverse_bin
ary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.ubuntu.com
breezy-security/main Packages
(/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_breezy-security_main_bi
nary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.ubuntu.com
breezy-security/restricted Packages
(/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_breezy-security_restric
ted_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.ubuntu.com
breezy-security/universe Packages
(/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_breezy-security_univers
e_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package sun-java5-jdk

Thank you,

James




More information about the ubuntu-users mailing list