Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm 15 years old and I've used Windows for years so I'm the BIGGEST Linux newb you'll ever meet. Please don't ask "why don't you just use Windows?" because it's a long story.
Anyways I have Ubuntu and I'm trying to install Java 2 Runtime Environment from the Java website. I've followed the instructions, downloaded the right one, but when I try to open it in Gedit, i get the message "Could not open file....could not detect character coding, please check you are not trying to open a binary file..."
I've tried doing what it says but I have a gut feeling I'm doing something wrong. Can somebody possibly walk me through this? You can also add me at happy_dood@hotmail.com if it might take a while.
#1, It is right to use Penguin. Nobody asks use evil bil's junk.
#2. Can you post a) what exact file you download b) what exact instruction you followed c) post entire error message and your command. d) detailed description of your penguin.
#3. So that other penguins can make better understanding on your situation
I'm trying to install Solaris (32-bit) from java.com
the actual file name is "jre-1_5_0_07-linux-amd64-rpm.bin
I saved it to my desktop and then when I open it (in Getit), It reads,
"Could not open the file /home/charley/Desktop/jr…_0_07-linux-amd64-rpm.bin.
gedit has not been able to detect the character coding.
Please check that you are not trying to open a binary file.
Select a character coding from the menu and try again."
After I downloaded it and opened it, it just automaticaly opened it it Getit. Should I open it in something else?
Also, I tried what you said in the terminal and it said "bash: ./jre-1_5_0_07-linux-amd64-rpm.bin: Permission denied"
I'm trying to install Solaris (32-bit) from java.com
the actual file name is "jre-1_5_0_07-linux-amd64-rpm.bin
Do you have a Solaris 32-bit installation? If you do, you're trying to install an AMD64 (64-bit) program on it. It'll never work.
Quote:
Anyways I have Ubuntu...
Do you have a 64-bit version of Ubuntu? Is there even a 64-bit Ubuntu? If not, it'll never work.
I think you should read some documentation before you do anything else. Read and understand. In the first place that file you downloaded is not meant to be 'opened.' It's meant to be executed, but I'm pretty sure it's the wrong file anyway. Here's a tip ... You can't execute it by double clicking on it.
I believe Ubuntu has a Sun Java installation package in their repositories. I'm sure there is also a line by line explanation of how to get it installed somewhere on their website.
Using Linux is a man's job. Not recommended for kiddies. At 15, I have every reason to believe you're capable of doing it right, but making wild stabs in the dark is not the right way to get started.
I believe Ubuntu has a Sun Java installation package in their repositories. I'm sure there is also a line by line explanation of how to get it installed somewhere on their website.
You'll find information there on how to install JRE on Ubuntu (and how to manage Ubuntu).
Also, the package you downloaded is not meant for your system, as rickh says; first is for 64 bit systems and second is a rpm package (Ubuntu is based on Debian, so it uses .deb packages or just .bin packages)
Quote:
Using Linux is a man's job. Not recommended for kiddies
Come on, don't discourage him ; you'd be surprised to know how fast kids can learn stuff
Thanks to everybody who helped me out earlier and had patience with me.
I took your advice and read all about installing files, the terminal, package manager...etc. I found out what I was doing wrong, but now when I try to install it, this comes up:
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
replace jre-1_5_0_07-linux-amd64.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: jre-1_5_0_07-linux-amd64.rpm
error: Failed dependencies:
glibc >= 2.1.2-11 is needed by jre-1.5.0_07-fcs.x86_64
sh-utils >= 2.0-1 is needed by jre-1.5.0_07-fcs.x86_64
fileutils >= 4.0-8 is needed by jre-1.5.0_07-fcs.x86_64
gawk >= 3.0.4-1 is needed by jre-1.5.0_07-fcs.x86_64
textutils >= 2.0-2 is needed by jre-1.5.0_07-fcs.x86_64
/bin/sh is needed by jre-1.5.0_07-fcs.x86_64
Done.
I can't get certain things to run that requires J2RE so I know something went wrong.
Sorry for the confusion I'm not using Solaris at all...I don't know where I got that from, I didn't really have a clue what I was doing.:P
And I'm using a .bin file.
You appear to be improving slowly, but you still haven't learned to read. In response #7 above, you got a couple links for Ubuntu documentation. The 1st one has a link a little ways down the page that says something like, "Install Sun Java." I glanced at it ... It appears to include two (2) very simple instructions. I think you can manage it.
In the meantime, delete that file on your desktop. It's probably the wrong one anyway.
Also, after I type apt-get install sun-java5.bin, it reads:
E: Couldn't find package sun-java5.bin
I'm not surprised it says "Couldn't find package sun-java5.bin" as the package is called "sun-java5-jre".
You dont need to download the package from sun, you download it from ubuntu and apt-get dose it all for you.
just type
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.