Unable to run Sublime Text 3 on Ubuntu 18.10

sudo apt-get install libgtk2.0-0

Messing around with adding a PPA instead of installing the same application in Ubuntu Software can cause weird errors immediately and package management problems later on. To install the native Sublime text editor snap package (currently version 3.1.1) in all currently supported versions of Ubuntu open the terminal and type:

sudo snap install sublime-text --classic  

After Sublime text editor is installed it can be opened from the Dash by clicking on the Sublime icon or from the terminal with subl . The Sublime text editor snap package will be updated automatically when updates are available.