之前從官網下載的是壓縮包,但是無法直接從終端啟動,據說要試着各種路徑之類的,所以去官網找到一個apt安裝方法:
#Install the GPG key: wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - #Ensure apt is set up to work with https sources: sudo apt-get install apt-transport-https #Select the channel to use: #Stable echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list sudo apt-get update sudo apt-get install sublime-text