updating java from a terminal

Jim Rosser jarosser06 at gmail.com
Fri Aug 8 01:59:26 UTC 2008


Run "sudo apt-get update" and see if you get any problems, it looks like it
cant find the Ubuntu servers to download the packages, you also might look
at upgrading since breezy is fairly old.  I dont know if your trying to
update your whole system to the latest or just Java but you can also use
"sudo apt-get upgrade" and that will upgrade all of your out of date
packages on that system.


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

> "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
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>



-- 
Jim Rosser
Winchester Designs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080807/b886b4f8/attachment.html>


More information about the ubuntu-users mailing list