Install Sublime Text 3 in Ubuntu 16.04 & Higher The Official Way


The popular cross-platform Sublime Text editor finally offers official Linux apt repository to make it easy to install and receive update in Ubuntu.

Sublime Text is a proprietary source code editor with a Python API. It supports many programming languages and markup languages, and its functionality can be extended by users with plugins.

It’s available to download and use for free, but you’re supposed to buy a license if you plan on using it full-time.

Install Sublime Text 3 via the official apt repository:

1. Open terminal via Ctrl+Alt+T or by searching for “Terminal” from desktop app launcher. When it opens, run command to install the key:

wget -qO - | sudo apt-key add -


2. Then add the apt repository via command:

echo "deb apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

sublime text apt repository

3. Finally check updates and install sublime-text via your system package manager:


or by running commands:

sudo apt-get update

sudo apt-get install sublime-text

Once installed, launch it from your desktop app launcher and enjoy!


To uninstall the editor, either use your system package manager or simply run command:

sudo apt-get remove sublime-text && sudo apt-get autoremove

And the official Sublime Text apt repository can be removed by going to System Settings -> Software & Updates -> Other Software tab.

About ml

ml is a part time stay-at-home dad who've been using Ubuntu Desktop for a few years. He writes in the free time and wishes to share some useful tips with Ubuntu beginners and lovers.


  1. Abdulwahab Opeyemi Nasir

    thanks for the post

  2. Many thanks for the initiative!

  3. Genius it worked perfectly well for my ubuntu 16!
    Thanks very much

  4. Bhabani Mohapatra

    Nice article. Works exactly as it is.

  5. is this to install sublime text 2 or sublime text 3, please clarify

  6. Very nice article! Thank you so much!

  7. Very Nice one

  8. yes! its works….i’m trying for many hours but its nice …..u solved my problem.

  9. worked perfectly thank you for the information

  10. Thank you. Really Help me

  11. It did the job 🙂 Thank you!

  12. Worked. Thanks!!

  13. Recommend.

  14. Thanks! Ubuntu noob here, and it worked perfectly.

  15. Namita Subbaramappa

    crisp and precise… works well

  16. when i tried it, it did not work.. came back with an error
    “E: Failed to fetch cdrom://Xubuntu 16.04.2 LTS _Xenial Xerus_ – Release amd64 (20170215)/dists/xenial/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    “. I did not realize I had to have my Xubuntu 16.04.2 LTS _Xenial Xerus_CD in the drive for it to work.. now I am up and running..
    thank you..

  17. nice article, worked. Thanks.

  18. nice , its helpfull

  19. Perfect .

  20. how can i add sublime text to luncher ?

    • Sivaranjani Mouli

      run sublime text editor…then it will get opened in launcher.
      After that right click that icon.There will be a option named “lock to launcher”.
      click it.that’s all 🙂

  21. Very Helpful in first attempt itself. Thanks.

  22. thanks it works.

  23. Worked . Thanks!

  24. Pedro Paulo Marques

    Funcionou corretamente no Elementary OS 0.4.1. Valeu!!

  25. Mutuyimana Origene


  26. thank you! it really worked and installed sublime text 3. other variants that i’ve tried installed sulbime text 2, not 3. thank you again!

  27. Do I need a license to use it ??

  28. Thank u so much brother for the help as a beginner..

  29. Thanks It worked#PHP DEVELOPER

  30. Excellent guide, thanks!

  31. Thank you, it worked perfectly !

  32. Thanks! Sublime text rocks!

  33. Thank you for this post! Helped me install the newest version of sublime onto my computer. Really helpful!

  34. This works great, the “Sublime Text” on the Ubuntu Software center freezes everytime. Thanks for this post.

  35. Thank you!!
    It also work in ubuntu 18.04 bionic (LTS) bionic beaver!!