There are many ways to install Sublime text editor, but the official way from the official webiste https://www.sublimetext.com/docs/3/linux_repositories.html is what I wanted to set also in here, since I am using that.
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
apt get update
sudo apt-get install sublime-text
Step 6: To run execute