How to Install Sublime Text Editor on Ubuntu

UbuntuFile SystemOpen Source

Sublime Text is a cross-platform source code editor with a Python application programming interface (API). It natively supports many programming languages and markup languages, and its functionality can be extended by users with plugins, typically community-built and maintained under free-software licenses.

This article describes “How to install Sublime Text Editor on Ubuntu”


  • Editing files side by side.

  • It supported all Platforms.

  • It provides functionality to find and replace with regular expressions.

  • The Command Palette gives fast access to functionality.

  • “Goto Anything,” quick navigation to files, symbols, or lines.

  • Python-based plugin API.

  • Compatible with many language grammars from TextMate.

Installing Sublime

There are two version’s of Sublime Text is available to install, To install Sublime 2, use the following commands –

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

The sample output should be like this –

Sublime Text 2 packages - the .deb will automatically download the latest build from or beta from (Adobe Flash Player installer - style).

More info and feedback:
   More info:
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpsv1jnez9/secring.gpg' created
gpg: keyring `/tmp/tmpsv1jnez9/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server
gpg: /tmp/tmpsv1jnez9/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:                imported: 1 (RSA: 1)

To update package index, use the following command-

$ sudo apt-get update

The sample output should be like this-

Ign stable InRelease
Hit stable Release.gpg
Hit stable Release
Ign trusty InRelease
Get:1 trusty-security InRelease [65.9 kB]
Hit stable/main amd64 Packages
Hit trusty Release.gpg
Hit trusty Release
Hit trusty/main Sources
Get:2 trusty-security/main Sources [109 kB]
Hit trusty/main amd64 Packages
Get:3 trusty InRelease [15.5 kB]
Hit trusty/main i386 Packages
Get:4 trusty-security/restricted Sources [4,035 B]
Hit trusty InRelease
Get:5 trusty-security/universe Sources [34.0 kB]
Ign trusty InRelease
Ign trusty InRelease
Hit trusty InRelease
Get:6 trusty-security/multiverse Sources [2,750 B]
Ign trusty InRelease
Get:7 trusty-security/main amd64 Packages [444 kB]
Ign trusty InRelease
Get:8 trusty/main amd64 Packages [739 B]
Get:9 trusty/main i386 Packages [753 B]
Get:10 trusty/main Translation-en [357 B]
Ign trusty/main Translation-en_IN
Hit trusty/main amd64 Packages
Get:11 trusty-updates InRelease [65.9 kB]
Ign trusty/main Translation-en
Hit trusty/main i386 Packages
Hit trusty/main Translation-en
Get:12 trusty-security/restricted amd64 Packages [13.0 kB]
Hit trusty Release.gpg
Get:13 trusty-security/universe amd64 Packages [125 kB]
Hit trusty/main amd64 Packages
Hit trusty/main i386 Packages
Hit trusty/main Translation-en
Get:14 trusty-security/multiverse amd64 Packages [4,991 B]
Hit trusty Release.gpg
Get:15 trusty-security/main i386 Packages [417 kB]
Get:16 trusty Release.gpg [316 B]
Hit trusty Release

To install Sublime Text Editor, use the follwoing command –

$ sudo apt-get install sublime-text

The sample output should be like this –

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
   gtk2-engines-pixbuf libbs2b0 libopusfile0 libpyside1.2 libqmmp-misc
   libqmmpui0 libshiboken1.2 libsidplayfp libtidy-0.99-0 linux-headers-4.2.0-27
   linux-headers-4.2.0-27-generic linux-image-4.2.0-27-generic
   linux-image-extra-4.2.0-27-generic linux-signed-image-4.2.0-27-generic
   php7.0-opcache python-beautifulsoup python-feedparser python-html2text
   python-magic python-oauth2 python-pyside.qtcore python-pyside.qtgui
   python-pyside.qtnetwork python-pyside.qtwebkit python-pysqlite2 python-regex
   python-sqlalchemy python-sqlalchemy-ext python-support python-unity-singlet
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
0 upgraded, 1 newly

To install sublime 3, use the following commands-

$ sudo add-apt-repository ppa:webupd8team/sublime-text-3
$ sudo apt-get update
$ sudo apt-get install sublime-text-installer

To open sublime, use the following command –

$ subl

The sample output should be like this –

Congratulations! Now, you know “How to Install Sublime Text Editor on Ubuntu ”. We’ll learn more about these types of commands in our next Linux post. Keep reading!

Updated on 22-Jan-2020 07:21:23