» Upgrade to java-1_6_0-sun u3 on openSUSE 10.3: fixing alternatives links
If you upgrade to
java-1_6_0-sun-1.6.0.u3
on openSUSE 10.3, the /etc/alternatives/
links will be broken.
To quickly fix them, just copy/paste the following snippet as in a shell as root:
for f in /etc/alternatives/j*; do ff=$(readlink "$f") case "$ff" in */jvm*|*/share/man/*) update-alternatives --auto "${f##*/}";; *) echo "(skipping $f)";; esac done
8 Comments:
thank you very much, Pascal! :-)
Thanks a lot :-)
Thanks a lot for explanations. Is it really possible to paste many lines by such way in BASH command shell without file script creation?
@dimig
yes, on Suse at least:
Shift-Insert
This comment has been removed by the author.
I'm so thankful that I really felt the need to post this note to the creator of this amazing solution. I was dealing with this annoying issue around a week, and finally when YaST2 updated java to its latest version:
[code]Dixie7:/ # java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)[/code]
Then I applied the snippet and that did the magic!
THANKS A LOOOOOOOOOOOT !!!
After performing that snippet now cannt run this command:
smart --gui
Can you guys run smart with its gui after running the snippet ???
The error returned here is this 1:
Segmentation fault
Thank you! :D
Post a Comment
<< Home