LinuxQuestions.org
Visit Jeremy's Blog.
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 05-13-2010, 12:21 PM   #1
sblessing
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Rep: Reputation: 0
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
 
Old 05-13-2010, 12:28 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,776

Rep: Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996
Quote:
Originally Posted by sblessing View Post
#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.
 
1 members found this post helpful.
Old 05-14-2010, 12:37 PM   #3
sblessing
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
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
 
Old 05-14-2010, 02:12 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
..

Last edited by knudfl; 05-14-2010 at 02:16 PM.
 
1 members found this post helpful.
Old 05-14-2010, 02:16 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,776

Rep: Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996
I was thinking the same thing, but since the OP never answered about version/distro, I figured I wouldn't ask again.
 
Old 05-14-2010, 03:26 PM   #6
sblessing
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Original Poster
Rep: Reputation: 0
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.

Last edited by sblessing; 05-14-2010 at 04:16 PM.
 
  


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
problem when install sun-java6-jre oakhill Ubuntu 2 01-09-2010 10:57 AM
I can't install sun-java6-jdk sun-java6-bin sun-java6-jre citye Linux - Newbie 2 10-18-2009 04:54 AM
I already have sun-java6-bin and sun-hava6-jre Randymanme Linux - Newbie 17 08-26-2009 02:48 PM
no servlet class on sun-java6 ? abd_bela Programming 1 10-19-2008 06:07 AM
installing sun-java6-jdk dcbc Linux - Software 2 04-02-2008 07:17 AM

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

All times are GMT -5. The time now is 04:50 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