 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

11th December 2007, 03:32 AM
|
|
Registered User
|
|
Join Date: Jul 2007
Posts: 59

|
|
|
Java install problem- Unofficial Fedora FAQ
I am trying to install Java as per the Unofficial Fedora FAQ.
http://www.fedorafaq.org/#installsoftware
I am on step 5.9. When I run it I get an error.
# yumdownloader --enablerepo=jpackage-nonfree java-1.6.0-sun
Loading "priorities" plugin
Cannot handle specific enablerepo/disablerepo options.
How do I fix this ?
Thanks
|

11th December 2007, 04:24 AM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,238

|
|
Works for me:
Quote:
[root@localhost bob1]# yumdownloader --enablerepo=jpackage-nonfree java-1.6.0-sun
Loading "priorities" plugin
Loading "skip-broken" plugin
46 packages excluded due to repository priority protections
java-1.6.0-sun-1.6.0.3-1j 100% |=========================| 17 kB 00:00
|
Did you set up your repos with his yum.conf (see 2.6)
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

11th December 2007, 04:29 AM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,238

|
|
Just as info, but instead of this plugin, have you tried the 'icedtea' version which works for most things? See the News story about it: http://forums.fedoraforum.org/showthread.php?t=173680
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

11th December 2007, 01:54 PM
|
|
Registered User
|
|
Join Date: Jul 2007
Posts: 59

|
|
|
I did perform step 2.6.
I am not seeing the "Loading skip broken" step. I'll check that out.
I am doing Java development. I'd rather use the Sun version of Java right now.
|

11th December 2007, 02:34 PM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,238

|
|
|
The 'skip-broken' is a plugin that isn't involved in this problem, so ignore that one. Check your /etc/yum.repos.d and make sure you've got jpackage listed as a repo.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

11th December 2007, 02:44 PM
|
|
Registered User
|
|
Join Date: Jul 2007
Posts: 59

|
|
|
Thanks for the tip ! I'll check that out shortly.
|

14th December 2007, 03:37 PM
|
|
Registered User
|
|
Join Date: Oct 2004
Location: Portland Oregon
Age: 37
Posts: 30

|
|
This might be TMI but here is what I did to reproduce the error.
I followed the instructions from: http://www.fedorafaq.org/f7/#java
---------------------------------------------------------------------------------------------------------------------------------
[stonebrooks@localhost ~]$ su
Password:
[root@localhost stonebrooks]# yum -y install yum-priorities
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package yum-priorities.noarch 0:1.1.8-1.fc7 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
yum-priorities noarch 1.1.8-1.fc7 updates 8.1 k
Transaction Summary
================================================== ===========================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 8.1 k
Downloading Packages:
(1/1): yum-priorities-1.1 100% |=========================| 8.1 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yum-priorities ######################### [1/1]
Installed: yum-priorities.noarch 0:1.1.8-1.fc7
Complete!
[root@localhost stonebrooks]# rpm -Uvh http://www.fedorafaq.org/f7/yum http://rpm.livna.org/livna-release-7.rpm
Retrieving http://www.fedorafaq.org/f7/yum
Retrieving http://rpm.livna.org/livna-release-7.rpm
warning: /var/tmp/rpm-xfer.kpZERw: Header V3 DSA signature: NOKEY, key ID a109b1ec
Preparing... ########################################### [100%]
1:livna-release ########################################### [ 50%]
2:yum-fedorafaq ########################################### [100%]
[root@localhost stonebrooks]# yum install yum-utils jpackage-utils rpm-build
Loading "priorities" plugin
atrpms 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 203 kB 00:02
atrpms : ################################################## 1009/1009
adobe 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 1.3 kB 00:00
adobe : ################################################## 2/2
planetcore 100% |=========================| 1.9 kB 00:00
primary.xml.gz 100% |=========================| 62 kB 00:00
planetcore: ################################################## 79/79
livna 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 154 kB 00:01
kde-redhat-all 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 105 kB 00:01
kde-redhat: ################################################## 436/436
kde-redhat 100% |=========================| 1.1 kB 00:00
primary.xml.gz 100% |=========================| 4.1 kB 00:00
kde-redhat: ################################################## 12/12
planetccrma 100% |=========================| 1.9 kB 00:00
primary.xml.gz 100% |=========================| 133 kB 00:01
planetccrm: ################################################## 569/569
freshrpms 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 92 kB 00:01
385 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
Package jpackage-utils - 1.7.3-1jpp.3.fc7.noarch is already installed.
Resolving Dependencies
--> Running transaction check
---> Package rpm-build.i386 0:4.4.2.2-2.fc7 set to be updated
--> Processing Dependency: elfutils >= 0.128 for package: rpm-build
---> Package yum-utils.noarch 0:1.1.8-1.fc7 set to be updated
--> Running transaction check
---> Package elfutils.i386 0:0.131-1.fc7 set to be updated
--> Processing Dependency: elfutils-libs-i386 = 0.131-1.fc7 for package: elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.127) for package: elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.122) for package: elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.130) for package: elfutils
--> Processing Dependency: libdw.so.1 for package: elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.126) for package: elfutils
--> Running transaction check
---> Package elfutils-libs.i386 0:0.131-1.fc7 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
rpm-build i386 4.4.2.2-2.fc7 updates 295 k
yum-utils noarch 1.1.8-1.fc7 updates 48 k
Installing for dependencies:
elfutils i386 0.131-1.fc7 updates 212 k
elfutils-libs i386 0.131-1.fc7 updates 120 k
Transaction Summary
================================================== ===========================
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 674 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): elfutils-libs-0.13 100% |=========================| 120 kB 00:01
(2/4): elfutils-0.131-1.f 100% |=========================| 212 kB 00:02
(3/4): yum-utils-1.1.8-1. 100% |=========================| 48 kB 00:00
(4/4): rpm-build-4.4.2.2- 100% |=========================| 295 kB 00:03
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yum-utils ######################### [1/4]
Installing: elfutils-libs ######################### [2/4]
Installing: elfutils ######################### [3/4]
Installing: rpm-build ######################### [4/4]
Installed: rpm-build.i386 0:4.4.2.2-2.fc7 yum-utils.noarch 0:1.1.8-1.fc7
Dependency Installed: elfutils.i386 0:0.131-1.fc7 elfutils-libs.i386 0:0.131-1.fc7
Complete!
[root@localhost stonebrooks]# mv Desktop/jdk*bin /usr/src/redhat/SOURCES/
[root@localhost stonebrooks]# yumdownloader --enablerepo=jpackage-nonfree java-1.6.0-sun
Loading "priorities" plugin
jpackage-nonfree 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 4.9 kB 00:00
jpackage-n: ################################################## 21/21
385 packages excluded due to repository priority protections
No Match for argument java-1.6.0-sun
Nothing to download
[root@localhost stonebrooks]# setarch i586 rpmbuild --rebuild java-1.6.0-sun*nosrc.rpm
error: cannot open java-1.6.0-sun*nosrc.rpm: No such file or directory
[root@localhost stonebrooks]# yumdownloader --enablerepo=jpackage-nonfree java-1.6.0-sun
Loading "priorities" plugin
fedora 100% |=========================| 2.1 kB 00:00
http://mirror.nuvio.com/pub/fedora/l...ta/repomd.xml: [Errno 14] HTTP Error 503: Service Temporarily Unavailable
Trying other mirror.
updates 100% |=========================| 2.3 kB 00:00
385 packages excluded due to repository priority protections
No Match for argument java-1.6.0-sun
Nothing to download
[root@localhost stonebrooks]# yumdownloader --enablerepo=jpackage-nonfree java-1.6.0-sun
Loading "priorities" plugin
385 packages excluded due to repository priority protections
No Match for argument java-1.6.0-sun
Nothing to download
[root@localhost stonebrooks]# cat /etc/yum.repos.d
cat: /etc/yum.repos.d: Is a directory
[root@localhost stonebrooks]# cd /etc/yum.repos.d
[root@localhost yum.repos.d]# ls
adobe-linux-i386.repo fedora-updates-testing.repo livna.repo
atrpms.repo freshrpms.repo livna-testing.repo
fedora-development.repo jpackage.repo planetccrma.repo
fedora.repo kde-redhat.repo rpmforge.repo
fedora-updates.repo livna-devel.repo
[root@localhost yum.repos.d]#
 yeah, I know I didn't pay a lot of attention to the messages that it gave me.
|

14th December 2007, 04:01 PM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,238

|
|
|
Interesting! I checked the jpackage repository and with yum and I'm finding java-1.5.0 but not 1.6.0:
[root@localhost bob1]# yum --enablerepo=jpackage-nonfree search java-1.5.0
Loading "allowdowngrade" plugin
Loading "priorities" plugin
Loading "skip-broken" plugin
46 packages excluded due to repository priority protections
java-1.5.0-gcj-javadoc.i386 : API documentation for libgcj
java-1.5.0-sun-compat.i586 : JPackage Java compatibility package for Sun's JDK
java-1.5.0-ibm.i386 : IBM Java Runtime Environment
java-1.5.0-ibm-jce-policy.noarch : JCE unlimited strength jurisdiction policy files
java-1.5.0-gcj-src.i386 : Source files for libgcj
java-1.5.0-sun.i586 : Java Runtime Environment for java-1.5.0-sun
java-1.5.0-gcj.i386 : JPackage runtime compatibility layer for GCJ
java-1.5.0-gcj.i386 : JPackage runtime compatibility layer for GCJ
java-1.5.0-gcj-devel.i386 : JPackage development compatibility layer for GCJ
java-1.5.0-sun-jce-policy.noarch : JCE unlimited strength jurisdiction policy files
java-1.5.0-bea.i686 : BEA WebLogic JRockit JRE
java-1.5.0-sun-manual.noarch : Java 2 SDK, Standard Edition documentation
[root@localhost bob1]# yum --enablerepo=jpackage-nonfree search java1.6.0
Loading "allowdowngrade" plugin
Loading "priorities" plugin
Loading "skip-broken" plugin
46 packages excluded due to repository priority protections
No Matches found
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

14th December 2007, 04:05 PM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,238

|
|
|
I shot Max a message about the thread and possible glitch. Let's see what he can tell us.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

14th December 2007, 05:58 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: San Jose, CA
Posts: 323

|
|
|
Note that if you're using an old version of my yum configuration, it has the wrong JPackage URLs.
-Max
|

15th December 2007, 03:00 AM
|
 |
Registered User
|
|
Join Date: Jun 2005
Location: kennewick,wa,usa
Age: 56
Posts: 37

|
|
|
What is your overall goal?
Java? Tomcat? or JRE?
What distro are you running?
If your running fc8. Good luck.
I used fc7 and install the binary JDK with Netbeans then
I set the classpath in /etc/profile.
I installed fc8 and renstalled fc7 due to the Java problem with fc8.
Let me know if you need help.
__________________
Without diversity there can be no evolution.
cw :)
|

21st December 2007, 02:38 AM
|
|
Registered User
|
|
Join Date: Mar 2006
Location: Charleston, SC
Age: 26
Posts: 18

|
|
Quote:
|
Originally Posted by Avatraxiom
Note that if you're using an old version of my yum configuration, it has the wrong JPackage URLs.
-Max
|
I'm using the version that is on the FAQ and I'm having the same problem as the other guy here.
|

23rd December 2007, 08:41 PM
|
 |
Registered User
|
|
Join Date: Nov 2006
Posts: 68

|
|
Hm, I'm having the exact same problem. I'm working in Fedora 7 (I can't upgrade to 8 because of the upgrade hang bug, still looking for a way to fix that). I followed all the steps in the FAQ and I'm still getting
Code:
No Match for argument java-1.6.0-sun
I'm getting desperate, but no luck with any of
Code:
java-1.6.0-sun
java-1.6.0
java-1.5.0-sun
java-1.5.0
Any ideas?
__________________
I can't believe it's not a hyperlink! :p
|

26th December 2007, 06:08 PM
|
|
Registered User
|
|
Join Date: Nov 2004
Posts: 46

|
|
|
This F8 Java how-to worked for me
|

28th December 2007, 10:18 AM
|
|
Registered User
|
|
Join Date: Aug 2005
Location: New Orleans, LA
Posts: 49

|
|
I've been using this method to give GCJ and Iced tea the boot for quite a while and it still works great.
http://stanton-finley.net/fedora_cor...otes.html#Java
__________________
“I don’t have pet peeves, I have major psychotic f****** hatreds!”
-George Carlin-
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 02:55 (Sunday, 26-05-2013)
|
|
 |
 |
 |
 |
|
|