Official way to install Sublime text editor on for Ubuntu

Step 1: Install the GPG key
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg |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 https://download.sublimetext.com/ 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
$>subl