I'd suggest re-installing Sublime Text from scratch. I highly recommend using Sublime Text 3, as it has many new features and bug fixes that aren't in ST2, and many plugins available through Package Control are moving to ST3-only versions to take advantage of the additional features. Also, ST3 is available as a .deb
for Ubuntu, making installation a 1-step process.
To install ST3, go to the download page and select Ubuntu 64-bit
or Ubuntu 32-bit
, depending on your system. After downloading, go to your Downloads directory in your terminal and run
sudo dpkg -i sublime-text_build-3059_amd64.deb
or
sudo dpkg -i sublime-text_build-3059_i386.deb
depending on the version you downloaded. It will install everything in /opt/sublime_text
, will place a sublime_text.desktop
file in /usr/share/applications
(and put an icon in the Unity launcher, IIRC), and will also create /usr/bin/subl
for starting Sublime from the command line.
If for some reason you absolutely need to use ST2, then reinstall by following these steps:
- run
sudo rm -r /opt/sublime_text_2
to remove the old directory.
- Go to http://www.sublimetext.com/2 and download either the
Linux 32-bit
or Linux 64-bit
file, depending on your system.
In your terminal, determine the name of the file you downloaded (either Sublime Text 2.0.2.tar.bz2
or Sublime Text 2.0.2x64.tar.bz2
) and run
tar jxvf "Sublime Text 2...tar.bz2"
to unpack the archive and create a directory named Sublime Text 2
.
Run
sudo mv "Sublime Text 2" /opt/sublime_text_2
to move the directory to the proper location and rename it to something without spaces.
Double-check that /usr/local/bin
is in your PATH
by running
echo $PATH
then create a subl
shortcut by running
sudo ln -s /opt/sublime_text_2/sublime_text /usr/local/bin/subl
You should now be able to start Sublime correctly from the command line.
There are 2 Sublime Text PPAs and both install the correct version. You've probably used the Sublime Text 3 PPA but posted the instructions for Sublime Text 2 in your question. I just tried the Sublime Text 2 PPA and it correctly installs Sublime Text 2:
So the instructions for installing Sublime Text 2 you posted in your question are correct as long as you didn't add other PPAs:
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
More information on the Sublime Text 2 PPA.
Or, if you want to install Sublime Text 3:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
More information on the Sublime Text 3 PPA.
Note that you can't install both Sublime Text 2 and 3 using these PPAs - when you install one Sublime Text version, the other one is automatically removed.
Best Answer
https://www.sublimetext.com/buy
Getting rid of the "unregistered" text will cost you 70 USD.
This is not software from Ubuntu itself. This is third party software and the creator of this software is free to choose their license. In this case it costs money.