20

When I enter the following command on a terminal session.

$ sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver

It shows me the following message

ln: failed to create symbolic link ‘/usr/bin/utserver’: File exists

sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver failed to create the symbolic link.

What should I do?

MadMike
  • 4,244
  • 8
  • 28
  • 50

3 Answers3

22

You should check if the symbolic link /usr/bin/utserver exists. If it does, you could unlink it:

sudo unlink /usr/bin/utserver

then redo the ln command

sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver

Cheers,

Tung Tran
  • 3,945
0

$ man ln

ln [OPTION]... TARGET

This creates a link to TARGET in the current directory.

sudo rm /usr/bin/utserver
cd /usr/bin/     
sudo ln -s /opt/utorrent-server-v3_0/utserver

Make sure the file /opt/utorrent-server-v3_0/utserver exists. If not use a valid path.

-- UPDATE

Given the information: The link /usr/bin/utserver points to the correct target /opt/utorrent-server-v3_0/utserver

So the symbolic link is already set. Any other errors you may have is nothing to do with ln part.

By the given uname -a you're using 32 bit OS. So you should download and install the 32 bit version of µTorrent Server.

Gayan Weerakutti
  • 3,770
  • 26
  • 38
0

There is nothing to help, the target already exists. You could remove the target and after that create the symbolic link again:

sudo rm /usr/bin/utserver
sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver
Fabby
  • 34,259
A.B.
  • 90,397