[opensuse] Wrong symlink /etc/alternatives/java after apply security updates (openSUSE 10.3)
Hi, I have installed (using rpms) in my openSUSE 10.3 Java 1.5 and Java 1.6. Yesterday I installed using openSUSE updater two security fixes for Java 1.5 and 1.6. Before doing this, symlink /etc/alternatives/java was pointing to the path of Java 1.6 but after applying the security updates it didn't point to the new version of Java 1.6, it still pointed to the old path. We've been discussing this in the spanish mailing list and seems that more people have the same problem. Is this a bug? Cheers, Raúl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2007-10-18 at 21:52 +0200, Raúl Moratalla wrote:
Hi,
I have installed (using rpms) in my openSUSE 10.3 Java 1.5 and Java 1.6. Yesterday I installed using openSUSE updater two security fixes for Java 1.5 and 1.6.
Before doing this, symlink /etc/alternatives/java was pointing to the path of Java 1.6 but after applying the security updates it didn't point to the new version of Java 1.6, it still pointed to the old path.
We've been discussing this in the spanish mailing list and seems that more people have the same problem. Is this a bug?
I would say so as I have the same problem with the symlinks pointing to the wrong area. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 18 October 2007 04:18:19 pm Kenneth Schneider wrote:
On Thu, 2007-10-18 at 21:52 +0200, Raúl Moratalla wrote:
Hi,
I have installed (using rpms) in my openSUSE 10.3 Java 1.5 and Java 1.6. Yesterday I installed using openSUSE updater two security fixes for Java 1.5 and 1.6.
Before doing this, symlink /etc/alternatives/java was pointing to the path of Java 1.6 but after applying the security updates it didn't point to the new version of Java 1.6, it still pointed to the old path.
We've been discussing this in the spanish mailing list and seems that more people have the same problem. Is this a bug?
I would say so as I have the same problem with the symlinks pointing to the wrong area.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
I had the same problem. I just created a symlink to the new java. Bob Schwedler -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
rschwedler wrote:
On Thursday 18 October 2007 04:18:19 pm Kenneth Schneider wrote:
On Thu, 2007-10-18 at 21:52 +0200, Raúl Moratalla wrote:
Hi,
I have installed (using rpms) in my openSUSE 10.3 Java 1.5 and Java 1.6. Yesterday I installed using openSUSE updater two security fixes for Java 1.5 and 1.6.
Before doing this, symlink /etc/alternatives/java was pointing to the path of Java 1.6 but after applying the security updates it didn't point to the new version of Java 1.6, it still pointed to the old path.
We've been discussing this in the spanish mailing list and seems that more people have the same problem. Is this a bug?
I would say so as I have the same problem with the symlinks pointing to the wrong area.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
I had the same problem. I just created a symlink to the new java.
Bob Schwedler
I had the same problem - eventually, after much googling and ogling, I found that /usr/sbin/update-alternatives is our friend - and if you do not have it, you can acquire it by installing the update-alternatives RPM. -- --Moby They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* Moby
I had the same problem - eventually, after much googling and ogling, I found that /usr/sbin/update-alternatives is our friend - and if you do not have it, you can acquire it by installing the update-alternatives RPM.
and i'ts been around a while, present on my 10.1. Here is a post from
16 Aug 05:
Date: Tue, 16 Aug 2005 16:14:28 +0200
From: Sonja Krause-Harder
This is already done, using /etc/alternatives/, perhaps someone knowledgeable can speak up (SONJA?!?)
No need to shout ;-) A more comfortable solution to switch java environments if more than one jvm package is installed is on my list of things that really should still be done for 10.0. There are two flavours: - - switch java in the current environment: change $PATH so that the preferred java binary directories come first, and set JAVA_HOME and JRE_HOME accordingly - - switch the default system java: adjust all the symlings with update-alternatives. The %post sections of the jvm packages roughly show what needs to be done for that, though it is a bit of a mess. Sonja - -- Sonja Krause-Harder (skh@suse.de) Research & Development SUSE Linux Products GmbH with proper threading, attention to "Subject:" and little "off-topic" (I know, dreaming), the list archives *should* be the first place to look for these types of solutions rather than Joogle :^) btw: The original problem "wrong symlink ..." is incorrect. The symlink was correct; it is necessary to choose which java version to use. Updating one not in use accomplishes nothing but an update, the same as installing another version. It will not be automagically used. Onus is on the USER, not the system or application. - -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn4472 (GNU/Linux) iD8DBQFHF/LqClSjbQz1U5oRAn/KAJ97IA70jdqHh78HtBQntbCTOlHhpwCfY3Iu I3KCYIxXl9/IQ3hSJo/qpE8= =/I0U -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2007-10-18 at 19:57 -0400, Patrick Shanahan wrote:
btw: The original problem "wrong symlink ..." is incorrect. The symlink was correct; it is necessary to choose which java version to use. Updating one not in use accomplishes nothing but an update, the same as installing another version. It will not be automagically used. Onus is on the USER, not the system or application.
No; the OP had two java versions, true, but the symlink was correct, in place. It was after a YOU security update that the symlink dissapeared. The updater should have mantained the same symlink as it found. The question of which java version to use is moot in that case. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHGL/ltTMYHG2NR9URAnBwAJ4xtST0IVwSqpp625Nq3pclNqWcCgCdFUc3 p8bnSVVEzMYkH7PbAVkbNV4= =a86j -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* Carlos E. R.
No; the OP had two java versions, true, but the symlink was correct, in place. It was after a YOU security update that the symlink dissapeared.
should not happen!
The updater should have mantained the same symlink as it found. The question of which java version to use is moot in that case.
Guess I have never crossed that path. My updates seem to work correctly whether for the currently used java version or the un-used version..... My first step to diagnose the problem in that case would have been to have tried "ls -la `which java`" in a console, and then again on the result: 11:18 wahoo:~ > ls -la `which java` rwxrwxrwx 1 root root 22 2006-08-23 19:13 /usr/bin/java -> /etc/alternatives/java 11:18 wahoo:~ > ls -la /etc/alternatives/java lrwxrwxrwx 1 root root 35 2007-03-25 09:39 /etc/alternatives/java -> /usr/lib/jvm/jre-1.5.0-sun/bin/java - -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn4472 (GNU/Linux) iD8DBQFHGMr/ClSjbQz1U5oRAgY8AKCELtQyQOWcVYeSvn/PKjxWBLiJCACcCZKv iHpOSLHCKnk+oMqPzbJQs6g= =w41t -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, Oct 19, 2007 at 11:19:27AM -0400, Patrick Shanahan wrote:
* Carlos E. R.
[10-19-07 10:43]: No; the OP had two java versions, true, but the symlink was correct, in place. It was after a YOU security update that the symlink dissapeared.
should not happen!
The updater should have mantained the same symlink as it found. The question of which java version to use is moot in that case.
Guess I have never crossed that path. My updates seem to work correctly whether for the currently used java version or the un-used version.....
My first step to diagnose the problem in that case would have been to have tried "ls -la `which java`" in a console, and then again on the result:
11:18 wahoo:~ > ls -la `which java` rwxrwxrwx 1 root root 22 2006-08-23 19:13 /usr/bin/java -> /etc/alternatives/java 11:18 wahoo:~ > ls -la /etc/alternatives/java lrwxrwxrwx 1 root root 35 2007-03-25 09:39 /etc/alternatives/java -> /usr/lib/jvm/jre-1.5.0-sun/bin/java
There are several bugs open already and I hope we can release a bugfix early next week. Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-10-19 at 11:19 -0400, Patrick Shanahan wrote:
* Carlos E. R.
[10-19-07 10:43]: No; the OP had two java versions, true, but the symlink was correct, in place. It was after a YOU security update that the symlink dissapeared.
should not happen!
The updater should have mantained the same symlink as it found. The question of which java version to use is moot in that case.
Guess I have never crossed that path. My updates seem to work correctly whether for the currently used java version or the un-used version.....
I have two versions not because I wanted to, but because some programs had dependencies on the old version; so I have to accept having both. Then, when using OOo, sometimes I have to change version to make it work (sun, not sun, whatever). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHGVSatTMYHG2NR9URAnn/AJ0eTn6Gwbtd1s22+AvH9D3XpBxRcACdHq9q dBa+qG0V/56GEovPfJ711yA= =tzN2 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Carlos E. R.
-
Kenneth Schneider
-
Marcus Meissner
-
Moby
-
Patrick Shanahan
-
Raúl Moratalla
-
rschwedler