Question:

Ubuntu linux. How do I install .bin packages?

by  |  earlier

0 LIKES UnLike

I dowloaded the JDK from Sun. It came as a .bin package. I changed the file permission with "chmod 755 filename". I tried to execute the file but I can't. What could be the problem?

 Tags:

   Report

2 ANSWERS


  1. Which rant should I subject you to first?

    Okay, I'm on Debian, not Ubuntu but...

    Open your terminal, type "apt-cache search jdk" and you should get a list including sun-java6-jdk.    When you see that, do a "sudo apt-get install sun-java6-jdk".  Always use the distro repositories for installing packages.  While Debian and Ubuntu remain very closely related (I dumped Gnome partly because that Update Manager was shipped upstream and I HATE Update-Manager).  Some changes in vanilla linux are made for any distro.  Programs might be placed in different directories (there is generally a reason for it).  I'm writing this on Firefox 3.0.1.  If I were to do what I said, I'd be using IceWeasel 2.0.0.16.  I got so fed up with the Firefox 2 memory demands I jumped during the betas.  Vanilla Firefox crashes occasionally on this machine but it still works better than IceWeasel.

    That's the exception which proves the rule.  Don't use the Vanilla Sun Java.  Use the Ubuntu Repositories Java.  Check update manager or use apt  to get it.

    That said, the vanilla sun JDK may work if you run it as root and copy the name of the package exactly.  Remember, UNIX and UNIX-derived systems like GNU/Linux are case sensitive.

    EDIT:  Another reason for using the Ubuntu repositories.  It just occurred to me that sometimes a program won't run if you don't have the dependencies for it.  With apt or Update-manager or whatever you can be sure the first thing the system will do is query what the dependencies are and tell you before it installs them.  Thus use Ubuntu's version.  Not Sun's.

    I guess I'll leave it there.


  2. Mount it to a new CD-R with infra-recorder..select 'Actions' >burn image > browse for ISO file

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.