How to Install Sublime Text Editor on Ubuntu 22.04?

Jun 30, 2022 . Admin

Hi Guys,

In this post, we will learn How to Install Sublime Text 4 on Ubuntu 22.04 using Terminal?. In this article, we will implement a Install Sublime Text on Ubuntu 22.04 Latest. I would like to show you Sublime text editor for Ubuntu 22.04 LTS installation. I explained simply step by step Install sublime text on ubuntu 22.04 Code Example.

You can use this post for ubuntu 14.04, ubuntu 16.04, ubuntu 18.4, ubuntu 20.04, ubuntu 21 and ubuntu 22.04 versions.

Step 1: Update the sublime repository

Sublime Text using the command line, first, update your Ubuntu package manager by running the below command and followed by the second command to install using single installation command from the snap maintained package manager.

$ sudo apt update
Step 2: Download and install related dependencies

To install from Ubuntu’s Apt repository, first, make sure your “HTTPS” source is supported or not, if not supported, run the below command to enable.

$ sudo apt-get install apt-transport-https
Step 3: Add the Sublime repository

It will open a file, now add the following line on the file by pressing the “i” key on the keyboard and save it by pressing “ESC + : + wq”.

$ deb [signed-by=/usr/share/keyrings/sublimehq-pub.gpg] 
https://download.sublimetext.com/ apt/stable/
Step 4: Install Sublime 4 Text

After saving the file, update the repository again and then install Sublime Text by following commands.

$ sudo apt update
$ sudo apt install sublime-text
#Ubuntu