LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-10-2012, 02:42 AM   #1
hafiznasrullah
LQ Newbie
 
Registered: Sep 2012
Posts: 9

Rep: Reputation: Disabled
E:unable to locate package


When i install java package by typing this commands

sudo apt-get install java-package

then following error occurs

E:unable to locate package.

if anyone know please give me a suitable commands or tell me how to resolve this issue
 
Old 09-10-2012, 02:58 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,583

Rep: Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226
Hi,

it seems you have just made a guess at what the name of the package is. To search for the actual package you are interested in, you can use apt-cache. For example:
Code:
apt-cache search java
Or perhaps replace "java" with "jre" or maybe "jdk" etc.

If none of the above return anything useful please tell us what OS you are using, and what you have in your /etc/apt/sources.list and any files in /etc/apt/sources.list.d/

Evo2.
 
1 members found this post helpful.
Old 09-10-2012, 02:59 AM   #3
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

Rep: Reputation: Disabled
Hi


Try to install sun java ,if u can't find the package add the appropriate repository to install the sun java

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts



To check java is installed already you these command

#java -version
 
Old 09-10-2012, 03:18 AM   #4
hafiznasrullah
LQ Newbie
 
Registered: Sep 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
when we enter following commands
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

then following error occurs

Eackage 'sun-java6-jre' has no installation candidate

if i see the java version through

java -version

java verdion "1.6.0_24"

how we update java version and how to install java packges.
 
Old 09-10-2012, 04:43 AM   #5
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

Rep: Reputation: Disabled
Hi


Try to update repo

#sudo apt-get install python-software-properties
#sudo add-apt-repository ppa:sun-java-community-team/sun-java6
#sudo apt-get update
#sudo apt-get install sun-java6-jdk

Furthur info look after the link



http://stackoverflow.com/questions/3...verick-meerkat

http://www.cyberciti.biz/faq/howto-u...igure-jdk-jre/
 
Old 09-10-2012, 05:10 AM   #6
hafiznasrullah
LQ Newbie
 
Registered: Sep 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
i have an error "line 178 : make-jpkg: command not found" when i enter command

fakeroot make-jpkg jdk-1_5_0_17-linux-i586.bin

tell me which package i have to install for mak-jpkg.
 
Old 09-10-2012, 06:00 AM   #7
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

Rep: Reputation: Disabled
Hi
I could not know why you are getting out the following error.If u could not find sun java repo then you can go ahead with openjdk which could be avialable defaultly on synaptic package manager.To get more help you have to post the version of operating system you are using .




https://www.theportlandcompany.com/2...-ubuntu-10-04/


sudo apt-get install openjdk-6-jdk
 
Old 09-10-2012, 08:42 AM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
If you are running Debian Stable java-package is only in Testing and unstable. it is not in the Stable repos.

Use openjdk6

apt-get install openjdk-6-jre icedtea6-plugin
 
  


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
ubuntu server 12.04 unable to locate package cyrus-sasl fillister Ubuntu 1 09-05-2012 11:29 AM
[SOLVED] E: Unable to locate package nova-comm E: Unable to locate package python-psycopq2 mint12 Linux - Virtualization and Cloud 2 01-05-2012 01:07 PM
[SOLVED] E: Unable to locate package nova-comm mint12 Linux Mint 1 01-05-2012 08:07 AM
Unable to locate package VSFTP LoneWolf69 Linux - Newbie 2 08-22-2011 05:58 PM
[SOLVED] E: Unable to locate package lamis0 Ubuntu 4 03-27-2011 07:33 AM


All times are GMT -5. The time now is 03:40 PM.

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