LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2006, 04:56 PM   #1
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Rep: Reputation: 31
apt-get, java, J2re, lime wire, and any other programI want to install


Strange subject, Isn't it?
First i downloaded suse 10.0 eval because of the programs installed in it specially JAVA (i had been through lots of trouble installing it on mandriva)

i wanted to install lime wire but yast package manager refused to do so saying that there is a dependency (j2re) i have to install first... so i installed using the shell using
#rpm --nodeps
and lime wire worked with no problem at all
now i found out what is apt-get and who wonderful it is but every time i want to install a program it gives me the following message
Code:
linux:/home/ahmad # apt-get install wine
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get --fix-broken install' to correct these:
The following packages have unmet dependencies:
  LimeWire-free: Depends: j2re (>= 1.4.1) but it is not installable
E: Unmet dependencies. Try 'apt-get --fix-broken install' with no packages (or specify a solution).
linux:/home/ahmad #
now i want apt-get to discard this failed dependency and to carry on downloading and installing the program i want is that possible or every time i want to install a program i have to uninstall lime wire and then install it back again

Thank You

ps. [apt-get install wine] is only for demonstration
 
Old 07-08-2006, 03:38 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
suse is a rpm based distribution whereas apt-get is the package installer for debian and ubuntu and other debian based distros. i never heard of it working for suse or red hat...(maybe others did)
cheers, j.

Last edited by j-ray; 07-08-2006 at 03:39 AM.
 
Old 07-08-2006, 04:12 AM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally Posted by j-ray
suse is a rpm based distribution whereas apt-get is the package installer for debian and ubuntu and other debian based distros. i never heard of it working for suse or red hat...(maybe others did)
cheers, j.
Apt-get is available in a wide range of distros. It works with Redhat all the way back to Redhat 6.2. I used it extensively with Redhat 9.0.


@AGazzaz

If I was you, I'd remove limewire and java, go to java.sun.com and grab the bin file (not the rpm), then follow this link to get Java installed, then install limewire. Avoid using --nodeps, unless you are sure what you are doing.

I suggest you to remove Java, because you most likely don't have Sun's java installed, but a gcc-java replacement, which is giving a lot of users problems. To make sure whetter or not you've got gcc-java installed, open a terminal and type:

Code:
java -version
If it does not return something like:

Quote:
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)
but ratter a "GCJ version", then that is one source of your problems. Again, use Sun's Java RE/SDK. If you prefer to keep gcj, at least remove the symlinks and install Sun's Java RE anyway.

Now, on the apt-get issue. Did you at least try to run the suggested command?

Quote:
apt-get --fix-broken install
I also assume that you ran "apt-get update" before trying to use apt-get.

Good luck!
 
Old 07-08-2006, 05:22 AM   #4
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
Code:
ahmad@linux:~> java -version
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
ahmad@linux:~>
also the verification on java website works

and on trying the suggested command
Code:
linux:/home/ahmad # apt-get --fix-broken install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  LimeWire-free
0 upgraded, 0 newly installed, 1 removed and 109 not upgraded.
Need to get 0B of archives.
After unpacking 15.6MB disk space will be freed.
Do you want to continue? [Y/n]
that is why I uninstall limewire every time i want to install any program

Quote:
I also assume that you ran "apt-get update" before trying to use apt-get.
yes i used this command after I installed apt-get

now since i have java not gcc and everything is running fine excepy that conflict

now how can i get apt-get to discard limewire's conflict

and i think it is a problem of suse because it is used to remind me of the conflict everytime i start the package manager and i told it to always ignore

is there a way to overcome such problem
Quote:
go to java.sun.com and grab the bin file (not the rpm)
I would also like to ask you why should i download the .bin not the .rpm java

By the way installing the .bin version is the final solution if everything else failed

and thank you for your help
 
Old 07-08-2006, 06:03 AM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Ah cool . Then everything seems to be fine with your Java RE. I usually recommend the bin over the rpm because that gives you more control of where you will install it. I usually keep this kind of applications at /opt. If I later need to, for example, link java plugin with a webbrowser, I can easily do that as well. It is more a matter of personal preference than a technical one I suppose.

Anyway, since your java RE is working, there's no need to change anything. If ain't broken, don't fix it ^^. My suggestion here is to download the non-rpm version of Limewire. Go to the download page and grab the "Other (OS/2, Solaris, Linux)". Not sure if a direct link will work, but:

http://www.limewire.com/LimeWireSoftOther

It is a zip file called "LimeWireOther.zip". Unzip it:

Code:
unzip LimeWireOther.zip
Here is the beautiful of Java. This package should run with any OS (which has Java of course), so I wonder why they created installers for every major OS... heck, even a .rpm. This in my opinion just complicate things. Anyway, rants apart, go the the unziped folder and run the executable jar file:

Code:
cd LimeWireOther
java -jar LimeWire.jar
I just tested this in my WinXP box and no problems here. I bet you won't have any problems either. Just avoid the .rpm for java applications

Let me know if it works.

Regards!

P.S: don't forget to remove the old limewire rpm first with "rpm -e limewire"

Last edited by Mega Man X; 07-08-2006 at 06:05 AM.
 
Old 07-09-2006, 05:54 AM   #6
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
Thank you very much for your help now lime wire and apt-get are working together in peace and aptget is downloading enlightenment as i am writing this reply

I also DO agree about the complication they made by providing lots of packages for lime wire while the JAVA is much easier, may be they have a point that we may know oneday

Thanks again for your help
 
Old 07-09-2006, 06:00 AM   #7
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Congratulations AGazzaz! I knew you would made it ^^. Thank you also for the feedback. You've raised an interesting question: There might be a point for them to create rpm packages for Java applications. I've been coding with Java for over 2 years now and I still can't see how that would make anything easier. For Windows, even if you double-click on a .jar file, if it is executable, it will run automatically, just like any other .exe.

But as you said, they may have a point for that ^^.

Best regards and happy downloading!
 
  


Reply



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
Lime WIre Kylesun Linux - Software 12 07-05-2004 02:54 AM
Help Trying To Install Lime Wire lil213 Linux - Software 4 05-10-2004 11:36 AM
Lime wire iainvt Linux - Software 3 05-10-2004 10:32 AM
Lime Wire won't close trinbellwoods Linux - Software 1 09-22-2003 12:35 AM
installing lime wire Fabachino Linux - Software 8 12-28-2002 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration