LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-23-2005, 02:53 PM   #1
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680

Rep: Reputation: 30
install java in debian


Hello i am trying ti install java in debian 3.1 but i am meeting a few probs along the way i have been following instructions from this site b http://serios.net/content/debian/java/
anyway firstly i am told to get java do this " apt-get install j2re1.4"
the feedback is
Aries:~# apt-get install j2re1.4
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
j2re1.4: Depends: java-common but it is not installable
E: Broken packages

so i tried this to get the problem with java-common fixed.
Aries:~# apt-get build-dep java-common
Reading Package Lists... Done
Building Dependency Tree... Done
E: You must put some 'source' URIs in your sources.list
Aries:~#

so now i am wandering what sources i should be adding to my sources list to fix the problem if any one knows what the source fix is i would love to know.
thanks nige
 
Old 08-23-2005, 03:34 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
What does your sources.list look like?

You can add the following:
#Debian Unofficial packages for Sarge/stable Opera, Java
deb http://ftp.debian-unofficial.org/debian/ sarge main contrib non-free restricted
deb-src http://ftp.debian-unofficial.org/debian/ sarge main contrib non-free restricted

Then run apt-get update. I would open Synaptic and do a search for Java. I installed Java(TM) Plug-in 1.5.0_04-b05 using the above and it works great, even installs the Java plugin for Mozilla/Firefox.
 
Old 08-23-2005, 04:41 PM   #3
rossjman1
Member
 
Registered: Oct 2004
Location: Chicago, IL, USA
Distribution: Debian
Posts: 71

Rep: Reputation: 15
add
Code:
# Blackdown Java
deb ftp://sunsite.dk/mirrors/java-linux/debian/ sarge non-free
to the sources.list before doing
Code:
# apt-get update
# apt-get install j2re1.4
 
Old 08-23-2005, 05:06 PM   #4
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Add this to your source list to get j2se1.4:

#Java (j2se) For Debian
deb http://www.tux.org/pub/java/debian/ testing non-free

Then just install with apt:
# apt-get install j2re1.4
 
Old 08-23-2005, 08:09 PM   #5
cdtcpl
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
I have downloaded the update, how can I get it to work with firefox? Do I need to run any commands or setup?
 
Old 08-23-2005, 10:31 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Check your plugins in Firefox. Open the browser then in the address bar type aboutlugins You should see something like:
Java(TM) Plug-in 1.5.0_04-b05 (Or the1.4.2 depending on whic one you installed)
File name: /usr/lib/sun-j2se5.0-jre/plugin/i386/ns7/libjavaplugin_oji.so
Java(TM) Plug-in 1.5.0_04

You can also go to http://www.java.com/en/download/linux_manual.jsp
and click on verify installation.


If you installed it through apt-get or Synaptic you shouldn't have to do anything. The plugin should have been installed.
 
Old 08-24-2005, 11:11 AM   #7
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680

Original Poster
Rep: Reputation: 30
hello again this is what my sources file looks like.
#nano /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - i386 Binary - Linux Format CD 70a]/ unstable contrib main main/debian-installer
# deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - i386 Binary - Linux Format CD 70b]/ unstable contrib main main/debian-installer
#multimedia
deb ftp://ftp.nerim.net/debian-marillat/ stable main
deb ftp://ftp.nerim.net/debian-marillat/ unstable main
deb ftp://ftp.nerim.net/debian-marillat/ testing main
# deb file:///cdrom/ sarge main
deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - i386 Binary - Linux Format CD 70b]/ unstable contrib main main/debian-installer
deb http://security.debian.org/ testing/updates main contrib
# Blackdown Java
deb ftp://sunsite.dk/mirrors/java-linux/debian/ sarge non-free
#ftp://sunsite.dk/mirrors/java-linux/debian/
#http://ftp.debian-unofficial.org/debian/
#http://ftp.debian-unofficial.org/debian/
#http://www.tux.org/pub/java/debian/
#ftp://ftp.tux.org/java/debian/
#http://ftp.debian-unofficial.org/debian/
#http://http.us.debian.org/debian/
#http://ftp.debian-unofficial.org/debian/
and this is the feedback of "apt-get update"
Aries:/home/master1# apt-get update
Hit http://security.debian.org testing/updates/main Packages
Hit http://security.debian.org testing/updates/main Release
Hit http://security.debian.org testing/updates/contrib Packages
Hit http://security.debian.org testing/updates/contrib Release
Hit ftp://sunsite.dk sarge/non-free Packages
Hit ftp://sunsite.dk sarge/non-free Release
Hit ftp://ftp.nerim.net stable/main Packages
Hit ftp://ftp.nerim.net stable/main Release
Hit ftp://ftp.nerim.net unstable/main Packages
Hit ftp://ftp.nerim.net unstable/main Release
Hit ftp://ftp.nerim.net testing/main Packages
Hit ftp://ftp.nerim.net testing/main Release
Reading Package Lists... Done
so when i run "apt-get install j2re1.4"
i get the same error.
Aries:/home/master1# apt-get install j2re1.4
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
j2re1.4: Depends: java-common but it is not installable
E: Broken packages
Aries:/home/master1#

in synaptic i did a search for java found it but it would not install it because it said it needs "java-common"
any more help going
 
Old 08-24-2005, 11:32 AM   #8
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680

Original Poster
Rep: Reputation: 30
i would just like to add if i do " apt-get install java-common"
i get this error.
Aries:/home/master1# apt-get install java-common
Reading Package Lists... Done
Building Dependency Tree... Done
Package java-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package java-common has no installation candidate
Aries:/home/master1#

what does it mean when it says referred to by another package?
thanks nige
 
Old 08-24-2005, 11:44 AM   #9
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
You are leaving off the directories for apt to look in "main" "contrib" "non-free", also I don't see Stable, Testing, Unstable in yur list.
Get rid of the Security updates for testing or at least comment them out. And unless you are using the cds for updates I would comment them out. Try cleaning up your list so it is a little more organized.

#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free

#Debian Unofficial packages for Sarge/stable Opera, Java
deb http://ftp.debian-unofficial.org/debian/ sarge main contrib non-free restricted
deb-src http://ftp.debian-unofficial.org/debian/ sarge main contrib non-free restricted

# Testing Etch
deb http://http.us.debian.org/debian/ testing main contrib non-free
# Testing Sources
deb-src http://http.us.debian.org/debian/ testing main contrib non-free

# Unstable Sid
deb http://http.us.debian.org/debian/ unstable main contrib non-free
# Unstable Sources
deb-src http://http.us.debian.org/debian/ unstable main contrib non-free

# Debian experimental
# deb ftp://ftp.debian.org/debian/ ../project/experimental main
# deb http://http.us.debian.org/debian/ ../project/experimental main contrib non-free

#Debian KDE 3.4 Team updates
# deb http://pkg-kde.alioth.debian.org/kde-3.4.1/ ./

#Chris Marillat's mplayer,acroread.realplayer,various packages
deb ftp://ftp.nerim.net/debian-marillat/ etch main
deb ftp://ftp.nerim.net/debian-marillat/ sid main
deb-src ftp://ftp.nerim.net/debian-marillat/ sid main
 
Old 08-25-2005, 02:00 AM   #10
juanjavier_xxx
Member
 
Registered: Aug 2004
Location: Madrid, Spain
Distribution: Debian stable.
Posts: 186

Rep: Reputation: 31
Quote:
Originally posted by Xian
Add this to your source list:

#Java (j2se) For Debian
deb http://www.tux.org/pub/java/debian/ testing non-free

And then:
# apt-get install j2re1.4
---That was exactly what did work for me. Should work almost with no doubt.

Hope it helps...
 
Old 08-25-2005, 02:05 PM   #11
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680

Original Poster
Rep: Reputation: 30
craigevil just like to say thanks iv copied your source list i have not had chance yet to have a go installing java but will soon thanks to everybody else as well.Ill let u know what happens
 
  


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
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
trying to install java on debian ahprophet Linux - Software 1 01-10-2005 01:47 PM
Java and Debian Jaster Debian 11 12-22-2004 02:49 AM
Java (jre/sdk) debian install Zaskar Debian 6 04-01-2004 06:32 PM
Java on Debian AfterBurn Linux - Software 1 01-22-2004 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:51 AM.

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