I performed all the steps to install sublime 2 on my Ubuntu 14.04 as shown in this link...
but when I try to perform this command
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublimeit gives me an output
ln: failed to create symbolic link ‘/usr/bin/sublime’: File existsand when I try to add Sublime Text to the Unity luncher using this command
sudo sublime /usr/share/applications/sublime.desktopit gives me an output
sudo: sublime: command not foundPlease help me soon. Thank you.
32 Answers
use subl command instead of sublime
Since /usr/bin/sublime already exists, but there is some issue with it, let's get rid of it first:
sudo rm /usr/bin/sublimeNext, we'll create the symlink again:
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublimeFinally, we'll clear the path cache just in case:
hash -rYou should now be able to run
sublime filenameor
sudo sublime filenamewithout issues.
2