LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   E:unable to locate package (https://www.linuxquestions.org/questions/linux-server-73/e-unable-to-locate-package-4175426461/)

hafiznasrullah 09-10-2012 02:42 AM

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

evo2 09-10-2012 02:58 AM

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.

jsaravana87 09-10-2012 02:59 AM

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

hafiznasrullah 09-10-2012 03:18 AM

when we enter following commands
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

then following error occurs

E:package '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.

jsaravana87 09-10-2012 04:43 AM

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/

hafiznasrullah 09-10-2012 05:10 AM

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.

jsaravana87 09-10-2012 06:00 AM

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

craigevil 09-10-2012 08:42 AM

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


All times are GMT -5. The time now is 09:02 PM.