Install Sublime in Ubuntu

Sublime is a fantastic editor for everyone who writes code. It has replaced my favorite code editor, TextMate

Installing in Windows and Mac is pretty easy. Installation on linux is simple, but not easy for those not familure with the terminal. Here is how to go about doing it.



First Open a terminal on your ubuntu machine. Its under applications if you are running a version prior to 11.04. If you are using the unify interface (11.04 and newer unify is default). Click on the Ubuntu icon in the top left and search for Terminal.


Type in this command. What it does is add the private sublime repository to your repository database. For those who may not know, a repository is like an app store. It contains a collection of thousands of apps. Ubuntu ships with the Official repository with the big names in linux software. Webupd8team is not in the official repo so we are adding it here.

Be careful entering commands if you have never done it before. We need to run this command as root which is the super user. Root can do a lot more damage than the standard user. Don’t worry though, just enter these commands then close the terminal when you are done.


        sudo add-apt-repository ppa:webupd8team/sublime-text-2


Wait for it to finish then update repositories with the update command.


        sudo apt-get update


Now install sublime



        sudo apt-get install sublime-text-2


Sublime will now appear under Programming




You will need to do one extra step to install Sublime on backtrack.

You must first install the python apt repo. If you don’t, you will get an error when trying to add the repository.

To prevent this run this line before adding the repository.


apt-get install python-software-properties



Now you can go ahead and add the repository


add-apt-repository pap:webupda8team/sublime-text-2



To install; type in this command. Make sure to update your repos first.


apt-get update

apt-get install sublime-text-2


Sublime will now appear under Programming


You could additionally start sublime from the terminal by entering the name of the program.






About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

4 Responses to Install Sublime in Ubuntu

  1. Lauren says:

    Thanks! I just reformatted to Ubuntu and tried a few other ways to install sublime, this worked flawlessly.

  2. Lars says:

    Thanks for this description! The package seems to be renamed, now write instead of sudo apt-get install sublime-text-2 the shorter sudo apt-get install sublime-text

  3. Pingback: Confluence: Quality Assurance

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: