How to install Sublime on Ubuntu 22.04

Sublime HQ introduced an open-source cross-platform editor that is known as sublime. It is used to write, edit and execute the codes of various languages. The developers and programmers use this platform to write the source codes of various popular languages. Sublime has a fast speed and friendly user interface.

It provides the top features to its users such as it has fast and efficient navigation. Seeing the importance of Sublime-text, this article elaborates on how to install sublime text on Ubuntu 22.04.

How to install the Sublime on ubuntu 22.04

Sublime is an open-source platform that is used to write and edit the source code of different programming languages. A user can install Sublime on Ubuntu 22.04 using the snap store and adding the official repository of Ubuntu 22.04.

How to install Sublime on Ubuntu 22.04 from Sublime’s repository

Sublime can be installed by adding the Sublime’s repository on your system. You need to follow the below-mentioned steps to add the Sublime repository and then install it on Ubuntu 22.04.

Step 1: Add GPG key

First, add the GPG key to make sure that the sublime repository is imported from an authentic source. To add the GPG key, run the following command in terminal:

The GPG key is added successfully.

Step 2: Import sublime repository

To attain the latest stable version of the application, a user should import the sublime repository. To do this action, execute the given command in the Linux terminal:

$ echo 'deb [signed-by=/usr/share/keyrings/sublimehq.gpg] apt/stable/' | sudo tee /etc/apt/sources.list.d/sublime-text.list

The Sublime repository is imported successfully.

Step 3: Update system’s packages repository

To update the system’s packages repository, run the below mentioned command:

$ sudo apt update

The installed packages are updated successfully.

Step 4: Install Sublime on Ubuntu 22.04

After updating the system’s package successfully, you can install the Sublime on Ubuntu 22.04. To install it, type and execute the command given as follows:

$ sudo apt install sublime-text

The sublime is installed successfully.

How to get started with Sublime on Ubuntu 22.04

When the installation of Sublime on Ubuntu 22.04 is completed, go to the ‘applications’ and search for Sublime in the search bar.

Click on the application button to run the Sublime editor.

The output shows that the editor is open and ready to use.

A user can entertain its amazing features. For example,a user can write and edit a code in the Sublime editor. To write the code, open the new file and save it with a user defined name.

You can easily write and edit a code in the new file and save it according to your choice.

However, you can save the file before writing the code as well.

If the Sublime’s file is saved (before writing code) with “.html” extension then you will be able to fetch the default sample code. And whenever you will start writing the html code, you will be able to add a sample code snippet of HTML as shown below.

This is quite helpful as it will direct you to use a variety of HTML tags.

Apart from this, Sublime editor can also be used as a JavaScript editor, Java editor, C, C++, C#, Python, Ruby and many more languages.

How to remove the Sublime from Ubuntu 22.04

To remove/uninstall the Sublime editor from Ubuntu 22.04, run the following command in the terminal:

$ sudo apt autoremove sublime-text

From the output, it is observed that the sublime-text has been removed from Ubuntu 22.04.


The Sublime editor can be installed by adding the official repository of sublime on Ubuntu 22.04. This article aims to provide an installation and getting started guide of Sublime on Ubuntu 22.04. Sublime can be used to write and edit code of multiple programming languages. The Sublime is a source code text editor that is used to write and edit the codes of different languages.