LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   E: Couldn't find package sun-java6-jdk (https://www.linuxquestions.org/questions/linux-software-2/e-couldnt-find-package-sun-java6-jdk-807625/)

sblessing 05-13-2010 12:21 PM

E: Couldn't find package sun-java6-jdk
 
#uuname -a
Linux 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:17:42 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

# apt-get update
Reading Package Lists... Done
Building Dependency Tree... Done

# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.

# apt-get install sun-java6-jdk
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package sun-java6-jdk

# apt-get install aptitude
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package aptitude

TB0ne 05-13-2010 12:28 PM

Quote:

Originally Posted by sblessing (Post 3967215)
#uuname -a
Linux 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:17:42 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

# apt-get update
Reading Package Lists... Done
Building Dependency Tree... Done

# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.

# apt-get install sun-java6-jdk
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package sun-java6-jdk

# apt-get install aptitude
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package aptitude

Is there a question in here somewhere??

If you're needing to install Sun's Java, you download it from the Java website, and install it according to the instructions. Otherwise, post useful information, like version/distro of Linux, what you're wanting to do, and what your question is.

sblessing 05-14-2010 12:37 PM

Quote:

Originally Posted by TB0ne (Post 3967223)
Is there a question in here somewhere??

If you're needing to install Sun's Java, you download it from the Java website, and install it according to the instructions. Otherwise, post useful information, like version/distro of Linux, what you're wanting to do, and what your question is.

The problem is the "apt-get install". E.g., I can't install aptitude as well as shown below.

# apt-get install aptitude
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package aptitude

My /etc/apt/sources.list.d/os.lis =>
# Name: Operating system and updates

### Red Hat Enterprise Linux
#repomd http://yam rhel$(VERSION)as-$(ARCH)/os
#repomd http://yam rhel$(VERSION)as-$(ARCH)/updates
#repomd http://mirror.centos.org centos/$(VERSION)/apt/os
#repomd http://mirror.centos.org centos/$(VERSION)/apt/updates
#rpm http://yam rhel$(VERSION)as-$(ARCH) os updates
#rpm http://mirror.centos.org centos/$(VERSION)/apt os updates

### Fedora Core Linux
#repomd http://ayo.freshrpms.net fedora/linux/$(VERSION)/$(ARCH)/core
#repomd http://ayo.freshrpms.net fedora/linux/$(VERSION)/$(ARCH)/updates
#rpm http://ayo.freshrpms.net fedora/linux/$(VERSION)/$(ARCH) core updates

### Red Hat Linux
#repomd http://ayo.freshrpms.net redhat/$(VERSION)/$(ARCH)/os
#repomd http://ayo.freshrpms.net redhat/$(VERSION)/$(ARCH)/updates
#rpm http://ayo.freshrpms.net redhat/$(VERSION)/$(ARCH) os updates

knudfl 05-14-2010 02:12 PM

Quote:

#repomd http://mirror.centos.org centos/$(VERSION)/apt/os
#repomd http://mirror.centos.org centos/$(VERSION)/apt/updates
Following that link , I am not finding any "apt"
Even if you have installed "apt for rpm", I don't know, if it will work.
One thing is sure : There is no 'aptitude' for EL5 / CentOS5.
Aptitude is a pure Debian / Ubuntu tool.
Try another package to test 'apt'.

The usual install command for EL5 etc. is 'yum'
Please read 'man yum'.

"sun-java6-jdk" : Scientific Linux SL54 / SLC5 has java for EL5:
http://ftp.scientificlinux.org/linux...ates/security/
.... Scientific Linux is a copy of RHEL like CentOS.
( # 'yum install jdk' , if the repo has been set up.)

jdk-1.6.0_20-fcs.x86_64.rpm :
http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm

Install with # rpm -Uvh jdk-1.6.0_20-fcs.x86_64.rpm
..

TB0ne 05-14-2010 02:16 PM

I was thinking the same thing, but since the OP never answered about version/distro, I figured I wouldn't ask again.

sblessing 05-14-2010 03:26 PM

Following steps posted at http://blogs.gurulabs.com/dax/2009/0...va-appl-1.html works regarding the java 1.6.0 jdk installation.

1. Back on your 64bit system run: yum install java-1.6.0-sun java-1.6.0-sun-plugin.x86_64
On a 32bit system run: yum install java-1.6.0-sun java-1.6.0-sun-plugin
2. Optionally, if you want the JDK and not just the JRE (because you plan on compiling Java software), then run: yum install java-1.6.0-sun-devel

The reason for "apt-get install aptitude" not working is unknown.


All times are GMT -5. The time now is 06:13 PM.