Failed to create symbolic link to keytool
Posted
by
mt0s
on Ask Ubuntu
See other posts from Ask Ubuntu
or by mt0s
Published on 2013-10-26T03:26:05Z
Indexed on
2013/10/26
4:10 UTC
Read the original article
Hit count: 935
java
|symbolic-link
Keytool is /usr/bin/keytool
and points to /etc/alternatives/keytool
which in turn points to /usr/lib/jvm/java-6-openjdk-i386/jre/bin/keytool
.
Now I have installed java version 1.7.0_45 so I need to change keytool to the new path : /usr/lib/jvm/jdk1.7.0_45/jre/bin/keytool
I tried deleting the /usr/bin/keytool with rm -rf and then adding a new link like : sudo ln -s /usr/bin/keytool /usr/lib/jvm/jdk1.7.0_45/jre/bin/keytool
but what I get is
ln: failed to create symbolic link `/usr/lib/jvm/jdk1.7.0_45/jre/bin/keytool': File exists
I also tried :
sudo update-alternatives --config keytool
There is only one alternative in link group keytool: /usr/lib/jvm/java-6-openjdk-i386/jre/bin/keytool
Nothing to configure.
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-6-openjdk-i386/jre/bin/keytool because link group keytool is broken.
but doesn't works too.
Any suggestions ? Thank you
© Ask Ubuntu or respective owner