Official way to install Sublime text editor on for Ubuntu

Step 1: Install the GPG key
wget -qO - |sudo apt-key add -

Step 2: Ensure apt can work with https.
sudo apt-get install apt-transport-https

Step 3: Select the stable release.
echo "deb apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Step 4:
apt get update

Step 5:
sudo apt-get install sublime-text

Step 6: To run execute