LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 07-23-2006, 04:39 AM   #1
Java_Code
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Rep: Reputation: 0
bash: rpm: command not found && sudo: alien: command not found


Well, trying to install Java, I discovered that I don't have the rpm command. I sought help and found sudo alien file.rpm would change it to a .deb, and I could then install the deb. Well I soon after found out I don't have the alien command either. Any ideas?

P.S. I searched the Synaptic Package Manager for both alien and rpm, and it came up with nothing.

Last edited by Java_Code; 07-23-2006 at 04:54 AM.
 
Old 07-23-2006, 08:56 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Ubuntu doesn't use rpm, it has the Debian package management. And using alien is always the last resort, or to be more precise, don't use it.
In Synaptic, look for Java and install the packages that suit you. If it doesn't show up, you need to add the repositories that contain Java. But again, stick to Ubuntu repositories.

A good starting point is here.

Last edited by uselpa; 07-23-2006 at 09:00 AM.
 
Old 07-24-2006, 05:23 AM   #3
Java_Code
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Well, the problem with that is I would like to install the JDK as well as the JRE, both versions 1.5.0 build 7, and it would also be helpful to know how to install binary's or RPM's in the future, instead of just using EUbuntu, which also isn't working, perhaps because I'm running Ubuntu 64 bit? I'm running on my windows HDD now, so I don't have the exact error, something about a .list not matching though.
 
Old 07-24-2006, 06:27 AM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
there's a guy here who asked like you too who successfully installed java jre. so you might as well find this as an additional info:
http://www.linuxquestions.org/questi...d.php?t=466752

regards
 
Old 07-24-2006, 12:00 PM   #5
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
I believe if you have the proper repositories enabled, you can install those packages through Synaptic Package Manager or Adept.

Otherwise, just for the future, you need the alien package before you can use it:
Code:
sudo aptitude update && sudo aptitude install alien
Once you have alien installed just do this:
Code:
sudo alien -i nameofpackage.rpm
to install the .rpm file.
 
Old 07-24-2006, 02:23 PM   #6
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
I agree that you'll want to install Java (the JDK and / or JRE) from Ubuntu's repositories. The current version is 1.5.06.

If you'ld choose not to do so, rather install the .bin than the .rpm. Be warned that installing that way doesn't make Sun's java, javac, javaw, etc., default on your system, CLASSPATH will still be wrong, and you have to configure it all yourself ...

Besides, there are loads of "how to install Java on Ubuntu" threads out there -- they're all obsolete since Ubuntu included Java into their repos.

Last edited by robbbert; 07-24-2006 at 02:25 PM.
 
Old 07-27-2006, 09:35 PM   #7
Java_Code
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by robbbert
I agree that you'll want to install Java (the JDK and / or JRE) from Ubuntu's repositories. The current version is 1.5.06.

If you'ld choose not to do so, rather install the .bin than the .rpm. Be warned that installing that way doesn't make Sun's java, javac, javaw, etc., default on your system, CLASSPATH will still be wrong, and you have to configure it all yourself ...

Besides, there are loads of "how to install Java on Ubuntu" threads out there -- they're all obsolete since Ubuntu included Java into their repos.
Ah, you're wrong . We're on build 07 of 1.5 . Well, I forfeited to the rpm battle, and went with the .bins. That was fine, until the $PATH variable came into play, what I didn't know was I had to instantiate the JAVA_PATH and JAVA_HOME variables to the bin folder. It's all fixed now, except I can't get it to plugin to firefox properly. I'll look into it , but help on the plugin would be greatly appreciated.
 
Old 07-28-2006, 12:57 AM   #8
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
On my system, $JAVA_HOME points to the folder above bin...

Anyways, as for the Firefox plugin, there should be a file $JRE_HOME/plugin/i386/ns7/libjavaplugin_oji.so. As root, copy that to /usr/lib/mozilla-firefox/plugins.

There are also some properties in Firefox' "about:config" that start with "java", you might want to have a look at them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 04:58 AM
bash: <command name> command not found smash Programming 5 03-13-2006 09:48 AM
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 05:55 PM
sudo command not working startproc cmd not found Imajica21 Linux - General 2 04-14-2005 02:22 PM
sudo: readme : command not found vishal.thorat Linux - Security 3 07-17-2003 06:56 PM


All times are GMT -5. The time now is 02:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration